|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jess.Value | +--jess.FuncallValue
A class to represent a Jess function call stored in a Value. It is 'self-resolving' using Context
(C) 1998 E.J. Friedman-Hill and the Sandia Corporation
Constructor Summary | |
FuncallValue(Funcall f)
|
Method Summary | |
java.lang.String |
atomValue(Context c)
Returns the contents of this value, as an atom |
java.lang.Object |
externalAddressValue(Context c)
Returns the contents of this value, as an external adress object |
Fact |
factValue(Context c)
Returns the contents of this value, as a fact |
double |
floatValue(Context c)
Returns the contents of this value, as a number |
int |
intValue(Context c)
Returns the contents of this value, as an int |
ValueVector |
listValue(Context c)
Returns the contents of this value, as a list |
double |
numericValue(Context c)
Returns the contents of this value, as a number |
Value |
resolveValue(Context c)
Given an evaluation context, return the "true value" of this Value. |
java.lang.String |
stringValue(Context c)
Returns the contents of this value, as a String |
java.lang.String |
variableValue(Context c)
Returns the contents of this value, as a String (a variable name) |
Methods inherited from class jess.Value |
equals, equals, equalsStar, funcallValue, hashCode, longValue, toString, toStringWithParens, type |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public FuncallValue(Funcall f) throws JessException
value
- type
- JessException
- Method Detail |
public Value resolveValue(Context c) throws JessException
Value
resolveValue
in class Value
jess.Value
c
- An execution context. You can pass null if you are sure
that you're not calling this method on a subclass that uses the
argument.Variable
,
Funcall
public final java.lang.Object externalAddressValue(Context c) throws JessException
Value
externalAddressValue
in class Value
jess.Value
JessException
- If this value does not contain an objectpublic final Fact factValue(Context c) throws JessException
Value
factValue
in class Value
jess.Value
JessException
- If this value does not contain a factpublic final ValueVector listValue(Context c) throws JessException
Value
listValue
in class Value
jess.Value
JessException
- If this value does not contain a listpublic final int intValue(Context c) throws JessException
Value
intValue
in class Value
jess.Value
JessException
- If this value does not contain any kind of numberpublic final double floatValue(Context c) throws JessException
Value
floatValue
in class Value
jess.Value
JessException
- If this value does not contain any kind of numberpublic final double numericValue(Context c) throws JessException
Value
numericValue
in class Value
jess.Value
JessException
- If this value does not contain any kind of numberpublic final java.lang.String atomValue(Context c) throws JessException
Value
atomValue
in class Value
jess.Value
JessException
- If this value does not contain any kind of Stringpublic final java.lang.String variableValue(Context c) throws JessException
Value
variableValue
in class Value
jess.Value
JessException
- If this value does not contain a variablepublic final java.lang.String stringValue(Context c) throws JessException
Value
stringValue
in class Value
jess.Value
JessException
- If this value does not contain any kind of String
|
© 1997 E.J. Friedman-Hill and Sandia Corporation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |