public class PredicateNode extends Node
BNARY_OPERATOR, CLOSE, CONSTANT, OPEN, type, UNARY_OPERATOR, UNKNOWN, VARIABLE| Constructor and Description |
|---|
PredicateNode() |
PredicateNode(Node p) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Node n) |
void |
addAll(ArrayList<Node> ns) |
boolean |
evaluate(StateRunnable si) |
double |
evaluateFloat(Node n,
StateRunnable si) |
Node |
first() |
void |
gatherPreceeding() |
ArrayList<Node> |
getChildren() |
void |
remove(Node n) |
void |
replaceSymbols(HashMap<String,String> map) |
void |
supplantByChild() |
String |
toString() |
deparent, detachNext, detachPrevious, dispose, isClose, isOpen, linkNext, next, parent, previous, replaceChild, replaceNext, replacePrevious, replaceWith, setParent, siblingsToStringpublic PredicateNode()
public PredicateNode(Node p)
public boolean evaluate(StateRunnable si) throws ContentError, ConnectionError, RuntimeError
ContentErrorConnectionErrorRuntimeErrorpublic void add(Node n)
public Node first()
public void gatherPreceeding()
throws ParseError
ParseErrorpublic double evaluateFloat(Node n, StateRunnable si) throws ContentError, ConnectionError, RuntimeError
ContentErrorConnectionErrorRuntimeErrorpublic void supplantByChild()
throws ParseError
ParseErrorpublic void replaceSymbols(HashMap<String,String> map)
replaceSymbols in class NodeCopyright © 2019. All rights reserved.