Package spoon.pattern.internal.node
Class AbstractNode
java.lang.Object
spoon.pattern.internal.node.AbstractNode
- Direct Known Subclasses:
ConstantNode
,ElementNode
,ForEachNode
,ListOfNodes
,MapEntryNode
,ParameterNode
,StringNode
,SwitchNode
Represents a parameterized Pattern ValueResolver, which can be used
- to generate a zero, one or more copies of model using provided parameters
- to match zero, one or more instances of model and deliver a matching parameters
-
Field Summary
Fields inherited from interface spoon.pattern.internal.node.RootNode
MATCH_ALL, MATCH_PART
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
setSimplifyGenerated(boolean simplifyGenerated)
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface spoon.pattern.internal.node.RootNode
forEachParameterInfo, generateTargets, matchAllWith, matchTargets, replaceNode
-
Constructor Details
-
AbstractNode
public AbstractNode()
-
-
Method Details
-
toString
-
isSimplifyGenerated
public boolean isSimplifyGenerated()- Specified by:
isSimplifyGenerated
in interfaceRootNode
- Returns:
- true if generated result has to be evaluated to apply simplifications. e.g. ("a" + "b") id simplified to "ab"
-
setSimplifyGenerated
public void setSimplifyGenerated(boolean simplifyGenerated)- Specified by:
setSimplifyGenerated
in interfaceRootNode
- Parameters:
simplifyGenerated
- true if generated result of thisRootNode
has to be evaluated to apply simplifications.
-