Class UReturn
java.lang.Object
com.sun.source.util.SimpleTreeVisitor<Choice<Unifier>,Unifier>
com.google.errorprone.refaster.UTree<com.sun.tools.javac.tree.JCTree.JCStatement>
com.google.errorprone.refaster.UReturn
- All Implemented Interfaces:
com.google.common.base.Function<UStatement.UnifierWithUnconsumedStatements,
,Choice<UStatement.UnifierWithUnconsumedStatements>> Unifiable<com.sun.source.tree.Tree>
,UStatement
,com.sun.source.tree.ReturnTree
,com.sun.source.tree.StatementTree
,com.sun.source.tree.Tree
,com.sun.source.tree.TreeVisitor<Choice<Unifier>,
,Unifier> Serializable
,Function<UStatement.UnifierWithUnconsumedStatements,
Choice<UStatement.UnifierWithUnconsumedStatements>>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.sun.source.tree.Tree
com.sun.source.tree.Tree.Kind
Nested classes/interfaces inherited from interface com.google.errorprone.refaster.UStatement
UStatement.UnifierWithUnconsumedStatements
-
Field Summary
Fields inherited from class com.sun.source.util.SimpleTreeVisitor
DEFAULT_VALUE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<R,
D> R accept
(com.sun.source.tree.TreeVisitor<R, D> visitor, D data) static UReturn
create
(UExpression expression) abstract @Nullable UExpression
com.sun.source.tree.Tree.Kind
getKind()
com.sun.tools.javac.tree.JCTree.JCReturn
com.sun.tools.javac.util.List
<com.sun.tools.javac.tree.JCTree.JCStatement> inlineStatements
(Inliner inliner) visitReturn
(com.sun.source.tree.ReturnTree ret, @Nullable Unifier unifier) Methods inherited from class com.google.errorprone.refaster.UTree
defaultAction, unify
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, 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.google.common.base.Function
equals
-
Constructor Details
-
UReturn
public UReturn()
-
-
Method Details
-
create
-
getExpression
- Specified by:
getExpression
in interfacecom.sun.source.tree.ReturnTree
-
accept
public <R,D> R accept(com.sun.source.tree.TreeVisitor<R, D> visitor, D data) - Specified by:
accept
in interfacecom.sun.source.tree.Tree
-
getKind
public com.sun.source.tree.Tree.Kind getKind()- Specified by:
getKind
in interfacecom.sun.source.tree.Tree
-
inline
public com.sun.tools.javac.tree.JCTree.JCReturn inline(Inliner inliner) throws CouldNotResolveImportException - Throws:
CouldNotResolveImportException
-
visitReturn
-
inlineStatements
public com.sun.tools.javac.util.List<com.sun.tools.javac.tree.JCTree.JCStatement> inlineStatements(Inliner inliner) throws CouldNotResolveImportException - Specified by:
inlineStatements
in interfaceUStatement
- Throws:
CouldNotResolveImportException
-
apply
public Choice<UStatement.UnifierWithUnconsumedStatements> apply(UStatement.UnifierWithUnconsumedStatements state) - Specified by:
apply
in interfacecom.google.common.base.Function<UStatement.UnifierWithUnconsumedStatements,
Choice<UStatement.UnifierWithUnconsumedStatements>> - Specified by:
apply
in interfaceFunction<UStatement.UnifierWithUnconsumedStatements,
Choice<UStatement.UnifierWithUnconsumedStatements>>
-