public abstract class TermNode extends Expression
Modifier and Type | Field and Description |
---|---|
protected String |
name |
protected boolean |
negate |
parent
Modifier and Type | Method and Description |
---|---|
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.
|
void |
setName(String s)
Sets the name of the term.
|
void |
setNegate(boolean b) |
checkBeforeAccept, eval, getFunctionNames, getParent, getVariableNames, isDescendent, toString
protected String name
protected boolean negate
public TermNode(String name, boolean negate)
public boolean getNegate()
public void setNegate(boolean b)
public String getName()
public void setName(String s)
IllegalArgumentException
- If the name is null or invalid.Copyright © 2016. All rights reserved.