|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jess.ValueVector | +--jess.Funcall
A class for parsing, assembling, and interpreting function calls.
(C) 1998 E.J. Friedman-Hill and the Sandia Corporation
Field Summary | |
static Value |
EOF
The object representing end-of-file |
static Value |
FALSE
The object representing the value FALSE |
static Value |
NIL
The object representing the value NIL |
static Value |
NILLIST
An object representing an empty list. |
static Value |
TRUE
The object representing the value TRUE |
Constructor Summary | |
Funcall(java.lang.String name,
Rete engine)
Create a Funcall given the name. |
Method Summary | |
Funcall |
arg(Value v)
Calls add(v), then returns this object |
java.lang.Object |
clone()
Copies a Funcall |
Funcall |
cloneInto(Funcall vv)
Makes the argument into a copy of this Funcall. |
Value |
execute(Context context)
Execute a funcall in a particular context. |
java.lang.String |
toString()
Formats a Funcall as a String |
java.lang.String |
toStringWithParens()
Return a String version of this ValueVector, with parentheses around all ValueVectors. |
Methods inherited from class jess.ValueVector |
add, addAll, cloneInto, copy, equals, get, set, setLength, size |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static Value TRUE
public static Value FALSE
public static Value NIL
public static Value NILLIST
public static Value EOF
Constructor Detail |
public Funcall(java.lang.String name, Rete engine) throws JessException
name
- The name of the functionengine
- The Rete engine where the function is definedJessException
- If something goes wrong.Method Detail |
public java.lang.String toString()
toString
in class ValueVector
public java.lang.String toStringWithParens()
ValueVector
toStringWithParens
in class ValueVector
jess.ValueVector
public java.lang.Object clone()
clone
in class ValueVector
public Funcall cloneInto(Funcall vv)
vv
- The FUncall into which the copy should be madepublic final Value execute(Context context) throws JessException
vv
- The Funcall to executecontext
- An execution context for the functionJessException
- If something goes wrongpublic Funcall arg(Value v)
a
- ValueValueVector.add(jess.Value)
|
© 1997 E.J. Friedman-Hill and Sandia Corporation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |