|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjess.Value
jess.FuncallValue
public class FuncallValue
A class to represent a Jess function call stored in a Value. It is 'self-resolving' using Context. Use this subclass of Value when you want to create a Value that represents a function call (for example, when you are creating a jess.Funcall containing nested function calls.)
(C) 2013 Sandia Corporation
Funcall,
Serialized Form| Constructor Summary | |
|---|---|
FuncallValue(Funcall f)
|
|
| Method Summary | |
|---|---|
Value |
copy()
|
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 double. |
int |
intValue(Context c)
Returns the contents of this value, as an int. |
java.lang.Object |
javaObjectValue(Context c)
Returns the contents of this value, as a Java object. |
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 |
symbolValue(Context c)
Returns the contents of this value, as a symbol. |
java.lang.String |
variableValue(Context c)
Returns the contents of this value, as a String (a variable name). |
| Methods inherited from class jess.Value |
|---|
atomValue, equals, equals, equalsStar, externalAddressValue, funcallValue, functionValue, hashCode, isLexeme, isLiteral, isNumeric, isVariable, 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
JessException| Method Detail |
|---|
public Value resolveValue(Context c)
throws JessException
Value
resolveValue in class Valuec - 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.
JessException - if something goes wrong during value resolutionVariable,
Funcall
public final java.lang.Object javaObjectValue(Context c)
throws JessException
Value
javaObjectValue in class Valuec - the execution context used to resolve the value
JessException - if this value does not contain a Java object
public final Fact factValue(Context c)
throws JessException
Value
factValue in class Valuec - the execution context used to resolve the value
JessException - if this value does not contain a fact
public final ValueVector listValue(Context c)
throws JessException
Value
listValue in class Valuec - the execution context used to resolve the value
JessException - if this value does not contain a list
public final int intValue(Context c)
throws JessException
Value
intValue in class Valuec - the execution context used to resolve the value
JessException - if this value does not contain any kind of number
public final double floatValue(Context c)
throws JessException
Value
floatValue in class Valuec - the execution context used to resolve the value
JessException - if this value does not contain any kind of number.
public final double numericValue(Context c)
throws JessException
Value
numericValue in class Valuec - the execution context used to resolve the value
JessException - if this value does not contain any kind of number
public final java.lang.String symbolValue(Context c)
throws JessException
Value
symbolValue in class Valuec - the execution context used to resolve the value
JessException - if this value does not contain any kind of String
public final java.lang.String variableValue(Context c)
throws JessException
Value
variableValue in class Valuec - the execution context used to resolve the value
JessException - if this value does not contain a variable.
public final java.lang.String stringValue(Context c)
throws JessException
Value
stringValue in class Valuec - the execution context used to resolve the value
JessException - if this value does not contain any kind of String.
public Value copy()
throws JessException
JessException
|
© 2013 Sandia Corporation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||