|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bc.jexp.Term
com.bc.jexp.Term.Call
public static final class Term.Call
A call of a (or reference to a) .
Function
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.bc.jexp.Term |
|---|
Term.Add, Term.AndB, Term.AndI, Term.Assign, Term.Binary, Term.BinaryB, Term.BinaryI, Term.BinaryN, Term.Call, Term.Cond, Term.ConstB, Term.ConstD, Term.ConstI, Term.ConstS, Term.Div, Term.EqB, Term.EqD, Term.EqI, Term.GeD, Term.GeI, Term.GtD, Term.GtI, Term.LeD, Term.LeI, Term.LtD, Term.LtI, Term.Mod, Term.Mul, Term.Neg, Term.NEqB, Term.NEqD, Term.NEqI, Term.NotB, Term.NotI, Term.Op, Term.OrB, Term.OrI, Term.Ref, Term.Sub, Term.Unary, Term.UnaryB, Term.UnaryI, Term.UnaryN, Term.XOrI |
| Field Summary | |
|---|---|
protected Term[] |
args
|
protected Function |
function
|
| Fields inherited from class com.bc.jexp.Term |
|---|
TYPE_B, TYPE_D, TYPE_I, TYPE_S |
| Constructor Summary | |
|---|---|
Term.Call(Function function,
List<Term> args)
|
|
Term.Call(Function function,
Term[] args)
|
|
| Method Summary | |
|---|---|
boolean |
evalB(EvalEnv env)
Evaluates this term to a boolean value. |
double |
evalD(EvalEnv env)
Evaluates this term to a double value. |
int |
evalI(EvalEnv env)
Evaluates this term to an int value. |
Term[] |
getArgs()
|
Term[] |
getChildren()
Returns an array of terms which are children of this term. |
Function |
getFunction()
|
int |
getRetType()
Gets the term's "natural" return type. |
String |
toString()
Returns a string representation of this term which can be used for debugging. |
| Methods inherited from class com.bc.jexp.Term |
|---|
evalS, isB, isD, isI, isN, toB, toB, toD, toI, toI, toS, toS, toS |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final Function function
protected final Term[] args
| Constructor Detail |
|---|
public Term.Call(Function function,
List<Term> args)
public Term.Call(Function function,
Term[] args)
| Method Detail |
|---|
public int getRetType()
Term
getRetType in class TermTYPE_X constants
defined in this class.public Function getFunction()
public Term[] getArgs()
public boolean evalB(EvalEnv env)
Termboolean value.
evalB in class Termenv - the application dependant environment.
boolean valuepublic int evalI(EvalEnv env)
Termint value.
evalI in class Termenv - the application dependant environment.
int valuepublic double evalD(EvalEnv env)
Termdouble value.
evalD in class Termenv - the application dependant environment.
double valuepublic Term[] getChildren()
Term
getChildren in class Termnull but can be emptypublic String toString()
Term
toString in class Term
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||