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, wait
applyYamlPrimitive, isInterestedIn
public PlanInterpreter.PlanInterpreterAdapter()
public boolean applyMapBefore(PlanInterpretationNode node, java.util.Map<java.lang.Object,java.lang.Object> mapIn)
PlanInterpreter
PlanInterpretationNode#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 PlanInterpreter
public 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)
PlanInterpreter
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.
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 PlanInterpreter
public void applyMapAfter(PlanInterpretationNode node, java.util.Map<java.lang.Object,java.lang.Object> mapIn, java.util.Map<java.lang.Object,java.lang.Object> mapOut)
PlanInterpreter
PlanInterpreter.applyMapEntry(PlanInterpretationNode, Map, Map, PlanInterpretationNode, PlanInterpretationNode)
.
mapOut can be modified yet further.applyMapAfter
in interface PlanInterpreter
public boolean applyListBefore(PlanInterpretationNode node, java.util.List<java.lang.Object> listIn)
PlanInterpreter
PlanInterpreter.applyMapBefore(PlanInterpretationNode, Map)
but for listsapplyListBefore
in interface PlanInterpreter
public boolean applyListEntry(PlanInterpretationNode node, java.util.List<java.lang.Object> listIn, java.util.List<java.lang.Object> listOut, PlanInterpretationNode value)
PlanInterpreter
applyListEntry
in interface PlanInterpreter
public void applyListAfter(PlanInterpretationNode node, java.util.List<java.lang.Object> listIn, java.util.List<java.lang.Object> listOut)
PlanInterpreter
PlanInterpreter.applyMapAfter(PlanInterpretationNode, Map, Map)
but for listsapplyListAfter
in interface PlanInterpreter