vec_math
Class BooleanNode
java.lang.Object
vec_math.Node<String>
vec_math.StringNode
vec_math.BooleanNode
- All Implemented Interfaces:
- Serializable
public class BooleanNode
- extends StringNode
A helper class taylored for using boolean variables.
- See Also:
- Serialized Form
|
Method Summary |
protected boolean |
isVariable(String arg)
Test if the argument is a variable or a constant in the boolean context. |
| Methods inherited from class vec_math.Node |
equals, getLevel, getParent, getParseSource, getSub, getSubAt, getSubNodeNumber, getTie, getValue, isFinal, isParsed, isRoot, parse, parse, setParse, setParseSource, setSub, setTie, setValue, toString, traceVariable |
BooleanNode
public BooleanNode(String root)
- Constructs a new top-level boolean node. Parsing a string expression
will always start with a call to this constructor, therefore the valid
operators are also set here.
BooleanNode
public BooleanNode(StringNode parent,
String root,
int level)
- Constructs a daugther node. This constructor is called repeatedly
during parsing.
isVariable
protected boolean isVariable(String arg)
- Test if the argument is a variable or a constant in the boolean context.
- Overrides:
isVariable in class StringNode