Class AbstractNode

java.lang.Object
spoon.pattern.internal.node.AbstractNode
All Implemented Interfaces:
Matchers, RootNode
Direct Known Subclasses:
ConstantNode, ElementNode, ForEachNode, ListOfNodes, MapEntryNode, ParameterNode, StringNode, SwitchNode

public abstract class AbstractNode extends Object implements RootNode
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
  • Constructor Details

    • AbstractNode

      public AbstractNode()
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • isSimplifyGenerated

      public boolean isSimplifyGenerated()
      Specified by:
      isSimplifyGenerated in interface RootNode
      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 interface RootNode
      Parameters:
      simplifyGenerated - true if generated result of this RootNode has to be evaluated to apply simplifications.