- java.lang.Object
-
- jdk.nashorn.api.tree.SimpleTreeVisitorES5_1<R,P>
-
- Type Parameters:
R- the return type of this visitor's methods. UseVoidfor visitors that do not need to return results.P- the type of the additional parameter to this visitor's methods. UseVoidfor visitors that do not need an additional parameter.
- All Implemented Interfaces:
TreeVisitor<R,P>
- Direct Known Subclasses:
SimpleTreeVisitorES6
@Deprecated(since="11", forRemoval=true) public class SimpleTreeVisitorES5_1<R,P> extends Object implements TreeVisitor<R,P>
Deprecated, for removal: This API element is subject to removal in a future version.Nashorn JavaScript script engine and APIs, and the jjs tool are deprecated with the intent to remove them in a future release.A simple implementation of the TreeVisitor for ECMAScript edition 5.1.The visit methods corresponding to ES 5.1 language constructs walk the "components" of the given tree by calling accept method passing the current visitor and the additional parameter.
For constructs introduced in later versions,
visitUnknownis called instead which throwsUnknownTreeException.Methods in this class may be overridden subject to their general contract. Note that annotating methods in concrete subclasses with
@Overridewill help ensure that methods are overridden as intended.
-
-
Constructor Summary
Constructors Constructor Description SimpleTreeVisitorES5_1()Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description RvisitArrayAccess(ArrayAccessTree node, P r)Deprecated, for removal: This API element is subject to removal in a future version.Visit array access expression tree.RvisitArrayLiteral(ArrayLiteralTree node, P r)Deprecated, for removal: This API element is subject to removal in a future version.Visit array literal expression tree.RvisitAssignment(AssignmentTree node, P r)Deprecated, for removal: This API element is subject to removal in a future version.Visit assignment tree.RvisitBinary(BinaryTree node, P r)Deprecated, for removal: This API element is subject to removal in a future version.Visit binary expression tree.RvisitBlock(BlockTree node, P r)Deprecated, for removal: This API element is subject to removal in a future version.Visit block statement tree.RvisitBreak(BreakTree node, P r)Deprecated, for removal: This API element is subject to removal in a future version.Visit break statement tree.RvisitCase(CaseTree node, P r)Deprecated, for removal: This API element is subject to removal in a future version.Visit case statement tree.RvisitCatch(CatchTree node, P r)Deprecated, for removal: This API element is subject to removal in a future version.Visit catch block statement tree.RvisitClassDeclaration(ClassDeclarationTree node, P p)Deprecated, for removal: This API element is subject to removal in a future version.Visits aClassDeclarationTreetree by callingvisitUnknown.RvisitClassExpression(ClassExpressionTree node, P p)Deprecated, for removal: This API element is subject to removal in a future version.Visits aClassExpressionTreetree by callingvisitUnknown.RvisitCompilationUnit(CompilationUnitTree node, P r)Deprecated, for removal: This API element is subject to removal in a future version.Visit compilation unit tree.RvisitCompoundAssignment(CompoundAssignmentTree node, P r)Deprecated, for removal: This API element is subject to removal in a future version.Visit compound assignment tree.RvisitConditionalExpression(ConditionalExpressionTree node, P r)Deprecated, for removal: This API element is subject to removal in a future version.Visit conditional expression tree.RvisitContinue(ContinueTree node, P r)Deprecated, for removal: This API element is subject to removal in a future version.Visit continue statement tree.RvisitDebugger(DebuggerTree node, P r)Deprecated, for removal: This API element is subject to removal in a future version.Visit debugger statement tree.RvisitDoWhileLoop(DoWhileLoopTree node, P r)Deprecated, for removal: This API element is subject to removal in a future version.Visit do-while statement tree.RvisitEmptyStatement(EmptyStatementTree node, P r)Deprecated, for removal: This API element is subject to removal in a future version.Visit an empty statement tree.RvisitErroneous(ErroneousTree node, P r)Deprecated, for removal: This API element is subject to removal in a future version.Visit error expression tree.RvisitExportEntry(ExportEntryTree node, P p)Deprecated, for removal: This API element is subject to removal in a future version.Visits anExportEntryTreetree by callingvisitUnknown.RvisitExpressionStatement(ExpressionStatementTree node, P r)Deprecated, for removal: This API element is subject to removal in a future version.Visit expression statement tree.RvisitForInLoop(ForInLoopTree node, P r)Deprecated, for removal: This API element is subject to removal in a future version.Visit for..in statement tree.RvisitForLoop(ForLoopTree node, P r)Deprecated, for removal: This API element is subject to removal in a future version.Visit 'for' statement tree.RvisitForOfLoop(ForOfLoopTree node, P p)Deprecated, for removal: This API element is subject to removal in a future version.Visits aForOfLoopTreetree by callingvisitUnknown.RvisitFunctionCall(FunctionCallTree node, P r)Deprecated, for removal: This API element is subject to removal in a future version.Visit function call expression tree.RvisitFunctionDeclaration(FunctionDeclarationTree node, P r)Deprecated, for removal: This API element is subject to removal in a future version.Visit function declaration tree.RvisitFunctionExpression(FunctionExpressionTree node, P r)Deprecated, for removal: This API element is subject to removal in a future version.Visit function expression tree.RvisitIdentifier(IdentifierTree node, P r)Deprecated, for removal: This API element is subject to removal in a future version.Visit identifier tree.RvisitIf(IfTree node, P r)Deprecated, for removal: This API element is subject to removal in a future version.Visit 'if' statement tree.RvisitImportEntry(ImportEntryTree node, P p)Deprecated, for removal: This API element is subject to removal in a future version.Visits anImportEntryTreetree by callingvisitUnknown.RvisitInstanceOf(InstanceOfTree node, P r)Deprecated, for removal: This API element is subject to removal in a future version.Visit 'instanceof' expression tree.RvisitLabeledStatement(LabeledStatementTree node, P r)Deprecated, for removal: This API element is subject to removal in a future version.Visit labeled statement tree.RvisitLiteral(LiteralTree node, P r)Deprecated, for removal: This API element is subject to removal in a future version.Visit literal expression tree.RvisitMemberSelect(MemberSelectTree node, P r)Deprecated, for removal: This API element is subject to removal in a future version.Visit member select expression tree.RvisitModule(ModuleTree node, P p)Deprecated, for removal: This API element is subject to removal in a future version.Visits aModuleTreetree by callingvisitUnknown.RvisitNew(NewTree node, P r)Deprecated, for removal: This API element is subject to removal in a future version.Visit 'new' expression tree.RvisitObjectLiteral(ObjectLiteralTree node, P r)Deprecated, for removal: This API element is subject to removal in a future version.Visit object literal tree.RvisitParenthesized(ParenthesizedTree node, P r)Deprecated, for removal: This API element is subject to removal in a future version.Visit parenthesized expression tree.RvisitProperty(PropertyTree node, P r)Deprecated, for removal: This API element is subject to removal in a future version.Visit a property of an object literal expression tree.RvisitRegExpLiteral(RegExpLiteralTree node, P r)Deprecated, for removal: This API element is subject to removal in a future version.Visit regular expression literal tree.RvisitReturn(ReturnTree node, P r)Deprecated, for removal: This API element is subject to removal in a future version.Visit return statement tree.RvisitSpread(SpreadTree node, P p)Deprecated, for removal: This API element is subject to removal in a future version.Visits aSpreadTreetree by callingvisitUnknown.RvisitSwitch(SwitchTree node, P r)Deprecated, for removal: This API element is subject to removal in a future version.Visit 'switch' statement tree.RvisitTemplateLiteral(TemplateLiteralTree node, P p)Deprecated, for removal: This API element is subject to removal in a future version.Visits aTemplateLiteralTreetree by callingvisitUnknown.RvisitThrow(ThrowTree node, P r)Deprecated, for removal: This API element is subject to removal in a future version.Visit 'throw' expression tree.RvisitTry(TryTree node, P r)Deprecated, for removal: This API element is subject to removal in a future version.Visit 'try' statement tree.RvisitUnary(UnaryTree node, P r)Deprecated, for removal: This API element is subject to removal in a future version.Visit unary expression tree.RvisitUnknown(Tree node, P p)Deprecated, for removal: This API element is subject to removal in a future version.Visit unknown expression/statement tree.RvisitVariable(VariableTree node, P r)Deprecated, for removal: This API element is subject to removal in a future version.Visit variable declaration tree.RvisitWhileLoop(WhileLoopTree node, P r)Deprecated, for removal: This API element is subject to removal in a future version.Visit 'while' statement tree.RvisitWith(WithTree node, P r)Deprecated, for removal: This API element is subject to removal in a future version.Visit 'with' statement tree.RvisitYield(YieldTree node, P p)Deprecated, for removal: This API element is subject to removal in a future version.Visits aYieldTreetree by callingvisitUnknown.
-
-
-
Method Detail
-
visitAssignment
public R visitAssignment(AssignmentTree node, P r)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TreeVisitorVisit assignment tree.- Specified by:
visitAssignmentin interfaceTreeVisitor<R,P>- Parameters:
node- node being visitedr- extra parameter passed to the visitor- Returns:
- value from the visitor
-
visitCompoundAssignment
public R visitCompoundAssignment(CompoundAssignmentTree node, P r)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TreeVisitorVisit compound assignment tree.- Specified by:
visitCompoundAssignmentin interfaceTreeVisitor<R,P>- Parameters:
node- node being visitedr- extra parameter passed to the visitor- Returns:
- value from the visitor
-
visitModule
public R visitModule(ModuleTree node, P p)
Deprecated, for removal: This API element is subject to removal in a future version.Visits aModuleTreetree by callingvisitUnknown.- Specified by:
visitModulein interfaceTreeVisitor<R,P>- Parameters:
node- node being visitedp- extra parameter passed to the visitor- Returns:
- the result of
visitUnknown
-
visitExportEntry
public R visitExportEntry(ExportEntryTree node, P p)
Deprecated, for removal: This API element is subject to removal in a future version.Visits anExportEntryTreetree by callingvisitUnknown.- Specified by:
visitExportEntryin interfaceTreeVisitor<R,P>- Parameters:
node- node being visitedp- extra parameter passed to the visitor- Returns:
- the result of
visitUnknown
-
visitImportEntry
public R visitImportEntry(ImportEntryTree node, P p)
Deprecated, for removal: This API element is subject to removal in a future version.Visits anImportEntryTreetree by callingvisitUnknown.- Specified by:
visitImportEntryin interfaceTreeVisitor<R,P>- Parameters:
node- node being visitedp- extra parameter passed to the visitor- Returns:
- the result of
visitUnknown
-
visitBinary
public R visitBinary(BinaryTree node, P r)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TreeVisitorVisit binary expression tree.- Specified by:
visitBinaryin interfaceTreeVisitor<R,P>- Parameters:
node- node being visitedr- extra parameter passed to the visitor- Returns:
- value from the visitor
-
visitBlock
public R visitBlock(BlockTree node, P r)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TreeVisitorVisit block statement tree.- Specified by:
visitBlockin interfaceTreeVisitor<R,P>- Parameters:
node- node being visitedr- extra parameter passed to the visitor- Returns:
- value from the visitor
-
visitBreak
public R visitBreak(BreakTree node, P r)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TreeVisitorVisit break statement tree.- Specified by:
visitBreakin interfaceTreeVisitor<R,P>- Parameters:
node- node being visitedr- extra parameter passed to the visitor- Returns:
- value from the visitor
-
visitCase
public R visitCase(CaseTree node, P r)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TreeVisitorVisit case statement tree.- Specified by:
visitCasein interfaceTreeVisitor<R,P>- Parameters:
node- node being visitedr- extra parameter passed to the visitor- Returns:
- value from the visitor
-
visitCatch
public R visitCatch(CatchTree node, P r)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TreeVisitorVisit catch block statement tree.- Specified by:
visitCatchin interfaceTreeVisitor<R,P>- Parameters:
node- node being visitedr- extra parameter passed to the visitor- Returns:
- value from the visitor
-
visitClassDeclaration
public R visitClassDeclaration(ClassDeclarationTree node, P p)
Deprecated, for removal: This API element is subject to removal in a future version.Visits aClassDeclarationTreetree by callingvisitUnknown.- Specified by:
visitClassDeclarationin interfaceTreeVisitor<R,P>- Parameters:
node- node being visitedp- extra parameter passed to the visitor- Returns:
- the result of
visitUnknown
-
visitClassExpression
public R visitClassExpression(ClassExpressionTree node, P p)
Deprecated, for removal: This API element is subject to removal in a future version.Visits aClassExpressionTreetree by callingvisitUnknown.- Specified by:
visitClassExpressionin interfaceTreeVisitor<R,P>- Parameters:
node- node being visitedp- extra parameter passed to the visitor- Returns:
- the result of
visitUnknown
-
visitConditionalExpression
public R visitConditionalExpression(ConditionalExpressionTree node, P r)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TreeVisitorVisit conditional expression tree.- Specified by:
visitConditionalExpressionin interfaceTreeVisitor<R,P>- Parameters:
node- node being visitedr- extra parameter passed to the visitor- Returns:
- value from the visitor
-
visitContinue
public R visitContinue(ContinueTree node, P r)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TreeVisitorVisit continue statement tree.- Specified by:
visitContinuein interfaceTreeVisitor<R,P>- Parameters:
node- node being visitedr- extra parameter passed to the visitor- Returns:
- value from the visitor
-
visitDebugger
public R visitDebugger(DebuggerTree node, P r)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TreeVisitorVisit debugger statement tree.- Specified by:
visitDebuggerin interfaceTreeVisitor<R,P>- Parameters:
node- node being visitedr- extra parameter passed to the visitor- Returns:
- value from the visitor
-
visitDoWhileLoop
public R visitDoWhileLoop(DoWhileLoopTree node, P r)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TreeVisitorVisit do-while statement tree.- Specified by:
visitDoWhileLoopin interfaceTreeVisitor<R,P>- Parameters:
node- node being visitedr- extra parameter passed to the visitor- Returns:
- value from the visitor
-
visitErroneous
public R visitErroneous(ErroneousTree node, P r)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TreeVisitorVisit error expression tree.- Specified by:
visitErroneousin interfaceTreeVisitor<R,P>- Parameters:
node- node being visitedr- extra parameter passed to the visitor- Returns:
- value from the visitor
-
visitExpressionStatement
public R visitExpressionStatement(ExpressionStatementTree node, P r)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TreeVisitorVisit expression statement tree.- Specified by:
visitExpressionStatementin interfaceTreeVisitor<R,P>- Parameters:
node- node being visitedr- extra parameter passed to the visitor- Returns:
- value from the visitor
-
visitForLoop
public R visitForLoop(ForLoopTree node, P r)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TreeVisitorVisit 'for' statement tree.- Specified by:
visitForLoopin interfaceTreeVisitor<R,P>- Parameters:
node- node being visitedr- extra parameter passed to the visitor- Returns:
- value from the visitor
-
visitForInLoop
public R visitForInLoop(ForInLoopTree node, P r)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TreeVisitorVisit for..in statement tree.- Specified by:
visitForInLoopin interfaceTreeVisitor<R,P>- Parameters:
node- node being visitedr- extra parameter passed to the visitor- Returns:
- value from the visitor
-
visitForOfLoop
public R visitForOfLoop(ForOfLoopTree node, P p)
Deprecated, for removal: This API element is subject to removal in a future version.Visits aForOfLoopTreetree by callingvisitUnknown.- Specified by:
visitForOfLoopin interfaceTreeVisitor<R,P>- Parameters:
node- node being visitedp- extra parameter passed to the visitor- Returns:
- the result of
visitUnknown
-
visitFunctionCall
public R visitFunctionCall(FunctionCallTree node, P r)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TreeVisitorVisit function call expression tree.- Specified by:
visitFunctionCallin interfaceTreeVisitor<R,P>- Parameters:
node- node being visitedr- extra parameter passed to the visitor- Returns:
- value from the visitor
-
visitFunctionDeclaration
public R visitFunctionDeclaration(FunctionDeclarationTree node, P r)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TreeVisitorVisit function declaration tree.- Specified by:
visitFunctionDeclarationin interfaceTreeVisitor<R,P>- Parameters:
node- node being visitedr- extra parameter passed to the visitor- Returns:
- value from the visitor
-
visitFunctionExpression
public R visitFunctionExpression(FunctionExpressionTree node, P r)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TreeVisitorVisit function expression tree.- Specified by:
visitFunctionExpressionin interfaceTreeVisitor<R,P>- Parameters:
node- node being visitedr- extra parameter passed to the visitor- Returns:
- value from the visitor
-
visitIdentifier
public R visitIdentifier(IdentifierTree node, P r)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TreeVisitorVisit identifier tree.- Specified by:
visitIdentifierin interfaceTreeVisitor<R,P>- Parameters:
node- node being visitedr- extra parameter passed to the visitor- Returns:
- value from the visitor
-
visitIf
public R visitIf(IfTree node, P r)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TreeVisitorVisit 'if' statement tree.- Specified by:
visitIfin interfaceTreeVisitor<R,P>- Parameters:
node- node being visitedr- extra parameter passed to the visitor- Returns:
- value from the visitor
-
visitArrayAccess
public R visitArrayAccess(ArrayAccessTree node, P r)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TreeVisitorVisit array access expression tree.- Specified by:
visitArrayAccessin interfaceTreeVisitor<R,P>- Parameters:
node- node being visitedr- extra parameter passed to the visitor- Returns:
- value from the visitor
-
visitArrayLiteral
public R visitArrayLiteral(ArrayLiteralTree node, P r)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TreeVisitorVisit array literal expression tree.- Specified by:
visitArrayLiteralin interfaceTreeVisitor<R,P>- Parameters:
node- node being visitedr- extra parameter passed to the visitor- Returns:
- value from the visitor
-
visitLabeledStatement
public R visitLabeledStatement(LabeledStatementTree node, P r)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TreeVisitorVisit labeled statement tree.- Specified by:
visitLabeledStatementin interfaceTreeVisitor<R,P>- Parameters:
node- node being visitedr- extra parameter passed to the visitor- Returns:
- value from the visitor
-
visitLiteral
public R visitLiteral(LiteralTree node, P r)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TreeVisitorVisit literal expression tree.- Specified by:
visitLiteralin interfaceTreeVisitor<R,P>- Parameters:
node- node being visitedr- extra parameter passed to the visitor- Returns:
- value from the visitor
-
visitParenthesized
public R visitParenthesized(ParenthesizedTree node, P r)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TreeVisitorVisit parenthesized expression tree.- Specified by:
visitParenthesizedin interfaceTreeVisitor<R,P>- Parameters:
node- node being visitedr- extra parameter passed to the visitor- Returns:
- value from the visitor
-
visitReturn
public R visitReturn(ReturnTree node, P r)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TreeVisitorVisit return statement tree.- Specified by:
visitReturnin interfaceTreeVisitor<R,P>- Parameters:
node- node being visitedr- extra parameter passed to the visitor- Returns:
- value from the visitor
-
visitMemberSelect
public R visitMemberSelect(MemberSelectTree node, P r)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TreeVisitorVisit member select expression tree.- Specified by:
visitMemberSelectin interfaceTreeVisitor<R,P>- Parameters:
node- node being visitedr- extra parameter passed to the visitor- Returns:
- value from the visitor
-
visitNew
public R visitNew(NewTree node, P r)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TreeVisitorVisit 'new' expression tree.- Specified by:
visitNewin interfaceTreeVisitor<R,P>- Parameters:
node- node being visitedr- extra parameter passed to the visitor- Returns:
- value from the visitor
-
visitObjectLiteral
public R visitObjectLiteral(ObjectLiteralTree node, P r)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TreeVisitorVisit object literal tree.- Specified by:
visitObjectLiteralin interfaceTreeVisitor<R,P>- Parameters:
node- node being visitedr- extra parameter passed to the visitor- Returns:
- value from the visitor
-
visitProperty
public R visitProperty(PropertyTree node, P r)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TreeVisitorVisit a property of an object literal expression tree.- Specified by:
visitPropertyin interfaceTreeVisitor<R,P>- Parameters:
node- node being visitedr- extra parameter passed to the visitor- Returns:
- value from the visitor
-
visitRegExpLiteral
public R visitRegExpLiteral(RegExpLiteralTree node, P r)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TreeVisitorVisit regular expression literal tree.- Specified by:
visitRegExpLiteralin interfaceTreeVisitor<R,P>- Parameters:
node- node being visitedr- extra parameter passed to the visitor- Returns:
- value from the visitor
-
visitTemplateLiteral
public R visitTemplateLiteral(TemplateLiteralTree node, P p)
Deprecated, for removal: This API element is subject to removal in a future version.Visits aTemplateLiteralTreetree by callingvisitUnknown.- Specified by:
visitTemplateLiteralin interfaceTreeVisitor<R,P>- Parameters:
node- node being visitedp- extra parameter passed to the visitor- Returns:
- the result of
visitUnknown
-
visitEmptyStatement
public R visitEmptyStatement(EmptyStatementTree node, P r)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TreeVisitorVisit an empty statement tree.- Specified by:
visitEmptyStatementin interfaceTreeVisitor<R,P>- Parameters:
node- node being visitedr- extra parameter passed to the visitor- Returns:
- value from the visitor
-
visitSpread
public R visitSpread(SpreadTree node, P p)
Deprecated, for removal: This API element is subject to removal in a future version.Visits aSpreadTreetree by callingvisitUnknown.- Specified by:
visitSpreadin interfaceTreeVisitor<R,P>- Parameters:
node- node being visitedp- extra parameter passed to the visitor- Returns:
- the result of
visitUnknown
-
visitSwitch
public R visitSwitch(SwitchTree node, P r)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TreeVisitorVisit 'switch' statement tree.- Specified by:
visitSwitchin interfaceTreeVisitor<R,P>- Parameters:
node- node being visitedr- extra parameter passed to the visitor- Returns:
- value from the visitor
-
visitThrow
public R visitThrow(ThrowTree node, P r)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TreeVisitorVisit 'throw' expression tree.- Specified by:
visitThrowin interfaceTreeVisitor<R,P>- Parameters:
node- node being visitedr- extra parameter passed to the visitor- Returns:
- value from the visitor
-
visitCompilationUnit
public R visitCompilationUnit(CompilationUnitTree node, P r)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TreeVisitorVisit compilation unit tree.- Specified by:
visitCompilationUnitin interfaceTreeVisitor<R,P>- Parameters:
node- node being visitedr- extra parameter passed to the visitor- Returns:
- value from the visitor
-
visitTry
public R visitTry(TryTree node, P r)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TreeVisitorVisit 'try' statement tree.- Specified by:
visitTryin interfaceTreeVisitor<R,P>- Parameters:
node- node being visitedr- extra parameter passed to the visitor- Returns:
- value from the visitor
-
visitInstanceOf
public R visitInstanceOf(InstanceOfTree node, P r)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TreeVisitorVisit 'instanceof' expression tree.- Specified by:
visitInstanceOfin interfaceTreeVisitor<R,P>- Parameters:
node- node being visitedr- extra parameter passed to the visitor- Returns:
- value from the visitor
-
visitUnary
public R visitUnary(UnaryTree node, P r)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TreeVisitorVisit unary expression tree.- Specified by:
visitUnaryin interfaceTreeVisitor<R,P>- Parameters:
node- node being visitedr- extra parameter passed to the visitor- Returns:
- value from the visitor
-
visitVariable
public R visitVariable(VariableTree node, P r)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TreeVisitorVisit variable declaration tree.- Specified by:
visitVariablein interfaceTreeVisitor<R,P>- Parameters:
node- node being visitedr- extra parameter passed to the visitor- Returns:
- value from the visitor
-
visitWhileLoop
public R visitWhileLoop(WhileLoopTree node, P r)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TreeVisitorVisit 'while' statement tree.- Specified by:
visitWhileLoopin interfaceTreeVisitor<R,P>- Parameters:
node- node being visitedr- extra parameter passed to the visitor- Returns:
- value from the visitor
-
visitWith
public R visitWith(WithTree node, P r)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TreeVisitorVisit 'with' statement tree.- Specified by:
visitWithin interfaceTreeVisitor<R,P>- Parameters:
node- node being visitedr- extra parameter passed to the visitor- Returns:
- value from the visitor
-
visitYield
public R visitYield(YieldTree node, P p)
Deprecated, for removal: This API element is subject to removal in a future version.Visits aYieldTreetree by callingvisitUnknown.- Specified by:
visitYieldin interfaceTreeVisitor<R,P>- Parameters:
node- node being visitedp- extra parameter passed to the visitor- Returns:
- the result of
visitUnknown
-
visitUnknown
public R visitUnknown(Tree node, P p)
Deprecated, for removal: This API element is subject to removal in a future version.Visit unknown expression/statement tree. This fallback will be called if new Tree subtypes are introduced in future. A specific implementation may throw {unknown tree exception if the visitor implementation was for an older language version.- Specified by:
visitUnknownin interfaceTreeVisitor<R,P>- Parameters:
node- node being visitedp- extra parameter passed to the visitor- Returns:
- abnormal return by throwing exception always
- Throws:
UnknownTreeException- a visitor implementation may optionally throw this exception
-
-