Class TreeContext

java.lang.Object
org.codehaus.groovy.macro.matcher.TreeContext

public class TreeContext
extends java.lang.Object
  • Method Details

    • getUserdata

      public java.util.Map<?,​java.util.List<?>> getUserdata()
    • putUserdata

      public void putUserdata​(java.lang.Object key, java.lang.Object value)
    • getUserdata

      public java.util.List<?> getUserdata​(java.lang.Object key)
    • getUserdata

      public java.util.List<?> getUserdata​(java.lang.Object key, boolean searchParent)
    • getParent

      public TreeContext getParent()
    • getNode

      public ASTNode getNode()
    • fork

      public TreeContext fork​(ASTNode node)
    • matches

      public boolean matches​(ASTNodePredicate predicate)
    • matches

      public boolean matches​(@DelegatesTo(value=ASTNode.class,strategy=1) Closure<java.lang.Boolean> predicate)
    • getSiblings

      public java.util.List<TreeContext> getSiblings()
    • getOnPopHandlers

      public java.util.List<TreeContextAction> getOnPopHandlers()
    • afterVisit

      public void afterVisit​(TreeContextAction action)
    • afterVisit

      public void afterVisit​(@DelegatesTo(value=TreeContext.class,strategy=1) Closure<?> action)
    • setReplacement

      public void setReplacement​(Expression replacement)
    • getReplacement

      public Expression getReplacement()
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object