Class UTree<T extends com.sun.tools.javac.tree.JCTree>
- Type Parameters:
T
- The type this tree inlines to.
- All Implemented Interfaces:
Unifiable<com.sun.source.tree.Tree>
,com.sun.source.tree.Tree
,com.sun.source.tree.TreeVisitor<Choice<Unifier>,
,Unifier> Serializable
- Direct Known Subclasses:
UExpression
,UReturn
,UVariableDecl
public abstract class UTree<T extends com.sun.tools.javac.tree.JCTree>
extends com.sun.source.util.SimpleTreeVisitor<Choice<Unifier>,Unifier>
implements Unifiable<com.sun.source.tree.Tree>, com.sun.source.tree.Tree
A serializable representation of a template syntax tree which can be unified with a target AST
and inlined based on a set of substitutions.
- Author:
- Louis Wasserman (lowasser@google.com)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.sun.source.tree.Tree
com.sun.source.tree.Tree.Kind
-
Field Summary
Fields inherited from class com.sun.source.util.SimpleTreeVisitor
DEFAULT_VALUE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefaultAction
(com.sun.source.tree.Tree node, Unifier unifier) Returns all valid unification paths (if any) from thisUnifier
that unify this withtarget
.Methods inherited from class com.sun.source.util.SimpleTreeVisitor
visit, visit, visitAnnotatedType, visitAnnotation, visitAnyPattern, visitArrayAccess, visitArrayType, visitAssert, visitAssignment, visitBinary, visitBindingPattern, visitBlock, visitBreak, visitCase, visitCatch, visitClass, visitCompilationUnit, visitCompoundAssignment, visitConditionalExpression, visitConstantCaseLabel, visitContinue, visitDeconstructionPattern, visitDefaultCaseLabel, visitDoWhileLoop, visitEmptyStatement, visitEnhancedForLoop, visitErroneous, visitExports, visitExpressionStatement, visitForLoop, visitIdentifier, visitIf, visitImport, visitInstanceOf, visitIntersectionType, visitLabeledStatement, visitLambdaExpression, visitLiteral, visitMemberReference, visitMemberSelect, visitMethod, visitMethodInvocation, visitModifiers, visitModule, visitNewArray, visitNewClass, visitOpens, visitOther, visitPackage, visitParameterizedType, visitParenthesized, visitPatternCaseLabel, visitPrimitiveType, visitProvides, visitRequires, visitReturn, visitSwitch, visitSwitchExpression, visitSynchronized, visitThrow, visitTry, visitTypeCast, visitTypeParameter, visitUnary, visitUnionType, visitUses, visitVariable, visitWhileLoop, visitWildcard, visitYield
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.sun.source.tree.Tree
accept, getKind
-
Constructor Details
-
UTree
public UTree()
-
-
Method Details
-
unify
Description copied from interface:Unifiable
Returns all valid unification paths (if any) from thisUnifier
that unify this withtarget
. -
defaultAction
-
inline
- Throws:
CouldNotResolveImportException
-