com.bc.jexp
Class Term.Op
java.lang.Object
com.bc.jexp.Term
com.bc.jexp.Term.Op
- Direct Known Subclasses:
- Term.Binary, Term.Cond, Term.Unary
- Enclosing class:
- Term
public abstract static class Term.Op
- extends Term
An abstract operation.
| 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 |
|
Method Summary |
Term[] |
getArgs()
|
Term[] |
getChildren()
Returns an array of terms which are children of this term. |
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 |
evalB, evalD, evalI, evalS, isB, isD, isI, isN, toB, toB, toD, toI, toI, toS, toS, toS |
name
protected final String name
type
protected final int type
args
protected final Term[] args
Term.Op
protected Term.Op(String name,
int type,
Term[] args)
getRetType
public int getRetType()
- Description copied from class:
Term
- Gets the term's "natural" return type.
- Specified by:
getRetType in class Term
- Returns:
- the type, should always be one of the
TYPE_X constants
defined in this class.
getArgs
public Term[] getArgs()
getChildren
public Term[] getChildren()
- Description copied from class:
Term
- Returns an array of terms which are children of this term.
- Overrides:
getChildren in class Term
- Returns:
- an array of terms, never
null but can be empty
toString
public String toString()
- Description copied from class:
Term
- Returns a string representation of this term which
can be used for debugging.
- Specified by:
toString in class Term
Copyright © 2002-2013 Brockmann Consult GmbH. All Rights Reserved.