public abstract static class PlanInterpreter.PlanInterpreterAdapter extends java.lang.Object implements PlanInterpreter
PlanInterpreter.PlanInterpreterAdapter| Constructor and Description |
|---|
PlanInterpreter.PlanInterpreterAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
applyListAfter(PlanInterpretationNode node,
java.util.List<java.lang.Object> listIn,
java.util.List<java.lang.Object> listOut)
as
PlanInterpreter.applyMapAfter(PlanInterpretationNode, Map, Map) but for lists |
boolean |
applyListBefore(PlanInterpretationNode node,
java.util.List<java.lang.Object> listIn)
as
PlanInterpreter.applyMapBefore(PlanInterpretationNode, Map) but for lists |
boolean |
applyListEntry(PlanInterpretationNode node,
java.util.List<java.lang.Object> listIn,
java.util.List<java.lang.Object> listOut,
PlanInterpretationNode value)
as {@link #applyMapEntry(PlanInterpretationNode, Map, Map, PlanInterpretationNode, PlanInterpretationNode) but for lists
|
void |
applyMapAfter(PlanInterpretationNode node,
java.util.Map<java.lang.Object,java.lang.Object> mapIn,
java.util.Map<java.lang.Object,java.lang.Object> mapOut)
invoked at a Map node in a YAML tree, after all entries have been passed to all interpreters'
PlanInterpreter.applyMapEntry(PlanInterpretationNode, Map, Map, PlanInterpretationNode, PlanInterpretationNode). |
boolean |
applyMapBefore(PlanInterpretationNode node,
java.util.Map<java.lang.Object,java.lang.Object> mapIn)
invoked at a Map node in a YAML tree, before any conversion to mapOut.
|
boolean |
applyMapEntry(PlanInterpretationNode node,
java.util.Map<java.lang.Object,java.lang.Object> mapIn,
java.util.Map<java.lang.Object,java.lang.Object> mapOut,
PlanInterpretationNode key,
PlanInterpretationNode value)
invoked at a Map node in a YAML tree, after
PlanInterpreter.applyMapBefore(PlanInterpretationNode, Map),
and after recursing into the value and then key arguments supplied here,
but before inserting it into the mapOut for this node. |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplyYamlPrimitive, isInterestedInpublic PlanInterpreter.PlanInterpreterAdapter()
public boolean applyMapBefore(PlanInterpretationNode node, java.util.Map<java.lang.Object,java.lang.Object> mapIn)
PlanInterpreterPlanInterpretationNode#get(), but it is mutable,
and any mutations are passed to subsequent interpreters and used for recursion.
the return value indicates whether to recurse into the item.
if any interpreters return false, the node is not recursed.
(callers may use PlanInterpretationNode.setNewValue(Object) to set a custom return value.)
applyMapBefore in interface PlanInterpreterpublic boolean applyMapEntry(PlanInterpretationNode node, java.util.Map<java.lang.Object,java.lang.Object> mapIn, java.util.Map<java.lang.Object,java.lang.Object> mapOut, PlanInterpretationNode key, PlanInterpretationNode value)
PlanInterpreterPlanInterpreter.applyMapBefore(PlanInterpretationNode, Map),
and after recursing into the value and then key arguments supplied here,
but before inserting it into the mapOut for this node.
the return value indicates whether to add this key-value to the mapOut. if any interpreters return false, the entry is not added. (callers may modify mapOut to add/change values, or may modify key/value directly.)
applyMapEntry in interface PlanInterpreterpublic void applyMapAfter(PlanInterpretationNode node, java.util.Map<java.lang.Object,java.lang.Object> mapIn, java.util.Map<java.lang.Object,java.lang.Object> mapOut)
PlanInterpreterPlanInterpreter.applyMapEntry(PlanInterpretationNode, Map, Map, PlanInterpretationNode, PlanInterpretationNode).
mapOut can be modified yet further.applyMapAfter in interface PlanInterpreterpublic boolean applyListBefore(PlanInterpretationNode node, java.util.List<java.lang.Object> listIn)
PlanInterpreterPlanInterpreter.applyMapBefore(PlanInterpretationNode, Map) but for listsapplyListBefore in interface PlanInterpreterpublic boolean applyListEntry(PlanInterpretationNode node, java.util.List<java.lang.Object> listIn, java.util.List<java.lang.Object> listOut, PlanInterpretationNode value)
PlanInterpreterapplyListEntry in interface PlanInterpreterpublic void applyListAfter(PlanInterpretationNode node, java.util.List<java.lang.Object> listIn, java.util.List<java.lang.Object> listOut)
PlanInterpreterPlanInterpreter.applyMapAfter(PlanInterpretationNode, Map, Map) but for listsapplyListAfter in interface PlanInterpreter