[Java] Class TreeContext
- org.codehaus.groovy.macro.matcher.TreeContext
public class TreeContext
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
public void |
afterVisit(TreeContextAction action) | |
public void |
afterVisit(Closure<?> action) | |
public Object |
doCall(Object key) | |
public TreeContext |
fork(ASTNode node) | |
public ASTNode |
getNode() | |
public List<TreeContextAction> |
getOnPopHandlers() | |
public TreeContext |
getParent() | |
public Expression |
getReplacement() | |
public List<TreeContext> |
getSiblings() | |
public Map<?, List<?>> |
getUserdata() | |
public List<?> |
getUserdata(Object key) | |
public List<?> |
getUserdata(Object key, boolean searchParent) | |
public boolean |
matches(ASTNodePredicate predicate) | |
public boolean |
matches(Closure<Boolean> predicate) | |
public void |
putUserdata(Object key, Object value) | |
public void |
setReplacement(Expression replacement) | |
public String |
toString() |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class Object | wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Method Detail
public void afterVisit(TreeContextAction action)
public void afterVisit(@DelegatesTo(value=TreeContext.class, strategy=Closure.DELEGATE_FIRST) Closure<?> action)
public Object doCall(Object key)
public TreeContext fork(ASTNode node)
public ASTNode getNode()
public List<TreeContextAction> getOnPopHandlers()
public TreeContext getParent()
public Expression getReplacement()
public List<TreeContext> getSiblings()
public Map<?, List<?>> getUserdata()
public List<?> getUserdata(Object key)
public List<?> getUserdata(Object key, boolean searchParent)
public boolean matches(ASTNodePredicate predicate)
public boolean matches(@DelegatesTo(value=ASTNode.class, strategy=Closure.DELEGATE_FIRST) Closure<Boolean> predicate)
public void putUserdata(Object key, Object value)
public void setReplacement(Expression replacement)
@Override public String toString()
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/org/codehaus/groovy/macro/matcher/TreeContext.html