public class PlanInterpretationNode
extends java.lang.Object
PlanInterpreter
instances, doing the recursive workModifier and Type | Class and Description |
---|---|
static class |
PlanInterpretationNode.Role |
Constructor and Description |
---|
PlanInterpretationNode(PlanInterpretationContext context)
creates a root node with
apply() called |
Modifier and Type | Method and Description |
---|---|
PlanInterpretationNode |
exclude()
indicates that a node should no longer be translated
|
PlanInterpretationContext |
getContext() |
java.lang.Object |
getNewValue() |
java.lang.Object |
getOriginalValue() |
PlanInterpretationNode |
getParent() |
PlanInterpretationNode.Role |
getRoleInParent() |
void |
immutable() |
boolean |
isChanged() |
boolean |
isExcluded() |
boolean |
matchesLiteral(java.lang.String target)
convenience for interpreters, tests if nodes are not excluded, and if not:
for string nodes, true iff the current value equals the given target;
for nodes which are currently maps or lists,
true iff not excluded and the value contains such an entry (key, in the case of map)
|
boolean |
matchesPrefix(java.lang.String prefix)
convenience for interpreters, tests if nodes are not excluded, and if not:
for string nodes, true iff the current value starts with the given prefix;
for nodes which are currently maps or lists,
true iff not excluded and the value contains such an entry (key, in the case of map)
|
PlanInterpretationNode |
setNewValue(java.lang.Object newItem) |
public PlanInterpretationNode(PlanInterpretationContext context)
apply()
calledpublic PlanInterpretationContext getContext()
public PlanInterpretationNode getParent()
public PlanInterpretationNode.Role getRoleInParent()
public boolean matchesLiteral(java.lang.String target)
public boolean matchesPrefix(java.lang.String prefix)
public java.lang.Object getOriginalValue()
public java.lang.Object getNewValue()
public boolean isChanged()
public boolean isExcluded()
public PlanInterpretationNode exclude()
public PlanInterpretationNode setNewValue(java.lang.Object newItem)
public void immutable()