Package org.openrewrite.polyglot
Class PolyglotTree<T extends Tree>
- java.lang.Object
-
- org.openrewrite.polyglot.PolyglotTree<T>
-
-
Constructor Summary
Constructors Constructor Description PolyglotTree(T delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.UUIDgetId()An id that can be used to identify a particular AST element, even after transformations have taken place on itjava.lang.ObjectgetMember(java.lang.String key)java.lang.ObjectgetMemberKeys()booleanhasMember(java.lang.String key)<P> booleanisAcceptable(TreeVisitor<?,P> v, P p)Checks the supplied argument to see if the supplied visitor and its context would be valid arguments to accept().voidputMember(java.lang.String key, org.graalvm.polyglot.Value value)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openrewrite.Tree
accept, getJacksonPolymorphicTypeTag, isScope, print, print, print, print, printer, printTrimmed, printTrimmed, printTrimmed
-
-
-
-
Constructor Detail
-
PolyglotTree
public PolyglotTree(T delegate)
-
-
Method Detail
-
getId
public java.util.UUID getId()
Description copied from interface:TreeAn id that can be used to identify a particular AST element, even after transformations have taken place on it
-
isAcceptable
public <P> boolean isAcceptable(TreeVisitor<?,P> v, P p)
Description copied from interface:TreeChecks the supplied argument to see if the supplied visitor and its context would be valid arguments to accept(). Typically this involves checking that the visitor is of a type that operates on this kind of tree. e.g.: A Java Tree implementation would return true for JavaVisitors and false for MavenVisitors- Specified by:
isAcceptablein interfaceTree- Type Parameters:
P- the visitor's context argument- Returns:
- 'true' if the arguments to this function would be valid arguments to accept()
-
getMember
public java.lang.Object getMember(java.lang.String key)
- Specified by:
getMemberin interfaceorg.graalvm.polyglot.proxy.ProxyObject
-
getMemberKeys
public java.lang.Object getMemberKeys()
- Specified by:
getMemberKeysin interfaceorg.graalvm.polyglot.proxy.ProxyObject
-
hasMember
public boolean hasMember(java.lang.String key)
- Specified by:
hasMemberin interfaceorg.graalvm.polyglot.proxy.ProxyObject
-
putMember
public void putMember(java.lang.String key, org.graalvm.polyglot.Value value)- Specified by:
putMemberin interfaceorg.graalvm.polyglot.proxy.ProxyObject
-
-