public abstract class TermNode extends Expression
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
name |
protected boolean |
negate |
parent| Constructor and Description |
|---|
TermNode(java.lang.String name,
boolean negate) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
Returns the name of the term.
|
boolean |
getNegate()
Returns true if the term should negate the result before returning it in the eval method.
|
private static boolean |
isValidName(java.lang.String s) |
void |
setName(java.lang.String s)
Sets the name of the term.
|
void |
setNegate(boolean b) |
checkBeforeAccept, eval, getFunctionNames, getParent, getVariableNames, isDescendent, toStringpublic boolean getNegate()
public void setNegate(boolean b)
public java.lang.String getName()
public void setName(java.lang.String s)
java.lang.IllegalArgumentException - If the name is null or invalid.private static boolean isValidName(java.lang.String s)