- java.lang.Object
- 
- jdk.nashorn.api.tree.SimpleTreeVisitorES5_1<R,P>
- 
- jdk.nashorn.api.tree.SimpleTreeVisitorES6<R,P>
 
 
- 
- Type Parameters:
- R- the return type of this visitor's methods. Use- Voidfor visitors that do not need to return results.
- P- the type of the additional parameter to this visitor's methods. Use- Voidfor visitors that do not need an additional parameter.
 - All Implemented Interfaces:
- TreeVisitor<R,P>
 
 @Deprecated(since="11", forRemoval=true) public class SimpleTreeVisitorES6<R,P> extends SimpleTreeVisitorES5_1<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 6.The visit methods corresponding to ES 6 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 SummaryConstructors Constructor Description SimpleTreeVisitorES6()Deprecated, for removal: This API element is subject to removal in a future version.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description RvisitClassDeclaration(ClassDeclarationTree node, P p)Deprecated, for removal: This API element is subject to removal in a future version.Visit class statement tree.RvisitClassExpression(ClassExpressionTree node, P p)Deprecated, for removal: This API element is subject to removal in a future version.Visit class expression tree.RvisitExportEntry(ExportEntryTree node, P p)Deprecated, for removal: This API element is subject to removal in a future version.Visit Module ExportEntry tree.RvisitForOfLoop(ForOfLoopTree node, P p)Deprecated, for removal: This API element is subject to removal in a future version.Visit for..of statement tree.RvisitImportEntry(ImportEntryTree node, P p)Deprecated, for removal: This API element is subject to removal in a future version.Visit Module ImportEntry tree.RvisitModule(ModuleTree node, P p)Deprecated, for removal: This API element is subject to removal in a future version.Visit Module tree.RvisitSpread(SpreadTree node, P p)Deprecated, for removal: This API element is subject to removal in a future version.Visit 'spread' expression tree.RvisitTemplateLiteral(TemplateLiteralTree node, P p)Deprecated, for removal: This API element is subject to removal in a future version.Visit template literal tree.RvisitYield(YieldTree node, P p)Deprecated, for removal: This API element is subject to removal in a future version.Visit 'yield' expression tree.- 
Methods declared in class jdk.nashorn.api.tree.SimpleTreeVisitorES5_1visitUnknown
 - 
Methods declared in class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods declared in interface jdk.nashorn.api.tree.TreeVisitorvisitArrayAccess, visitArrayLiteral, visitAssignment, visitBinary, visitBlock, visitBreak, visitCase, visitCatch, visitCompilationUnit, visitCompoundAssignment, visitConditionalExpression, visitContinue, visitDebugger, visitDoWhileLoop, visitEmptyStatement, visitErroneous, visitExpressionStatement, visitForInLoop, visitForLoop, visitFunctionCall, visitFunctionDeclaration, visitFunctionExpression, visitIdentifier, visitIf, visitInstanceOf, visitLabeledStatement, visitLiteral, visitMemberSelect, visitNew, visitObjectLiteral, visitParenthesized, visitProperty, visitRegExpLiteral, visitReturn, visitSwitch, visitThrow, visitTry, visitUnary, visitVariable, visitWhileLoop, visitWith
 
- 
 
- 
- 
- 
Method Detail- 
visitModulepublic R visitModule(ModuleTree node, P p) Deprecated, for removal: This API element is subject to removal in a future version.Visit Module tree.- Specified by:
- visitModulein interface- TreeVisitor<R,P>
- Overrides:
- visitModulein class- SimpleTreeVisitorES5_1<R,P>
- Parameters:
- node- node being visited
- p- extra parameter passed to the visitor
- Returns:
- value from the visitor
 
 - 
visitExportEntrypublic R visitExportEntry(ExportEntryTree node, P p) Deprecated, for removal: This API element is subject to removal in a future version.Visit Module ExportEntry tree.- Specified by:
- visitExportEntryin interface- TreeVisitor<R,P>
- Overrides:
- visitExportEntryin class- SimpleTreeVisitorES5_1<R,P>
- Parameters:
- node- node being visited
- p- extra parameter passed to the visitor
- Returns:
- value from the visitor
 
 - 
visitImportEntrypublic R visitImportEntry(ImportEntryTree node, P p) Deprecated, for removal: This API element is subject to removal in a future version.Visit Module ImportEntry tree.- Specified by:
- visitImportEntryin interface- TreeVisitor<R,P>
- Overrides:
- visitImportEntryin class- SimpleTreeVisitorES5_1<R,P>
- Parameters:
- node- node being visited
- p- extra parameter passed to the visitor
- Returns:
- value from the visitor
 
 - 
visitClassDeclarationpublic R visitClassDeclaration(ClassDeclarationTree node, P p) Deprecated, for removal: This API element is subject to removal in a future version.Visit class statement tree.- Specified by:
- visitClassDeclarationin interface- TreeVisitor<R,P>
- Overrides:
- visitClassDeclarationin class- SimpleTreeVisitorES5_1<R,P>
- Parameters:
- node- node being visited
- p- extra parameter passed to the visitor
- Returns:
- value from the visitor
 
 - 
visitClassExpressionpublic R visitClassExpression(ClassExpressionTree node, P p) Deprecated, for removal: This API element is subject to removal in a future version.Visit class expression tree.- Specified by:
- visitClassExpressionin interface- TreeVisitor<R,P>
- Overrides:
- visitClassExpressionin class- SimpleTreeVisitorES5_1<R,P>
- Parameters:
- node- node being visited
- p- extra parameter passed to the visitor
- Returns:
- value from the visitor
 
 - 
visitForOfLooppublic R visitForOfLoop(ForOfLoopTree node, P p) Deprecated, for removal: This API element is subject to removal in a future version.Visit for..of statement tree.- Specified by:
- visitForOfLoopin interface- TreeVisitor<R,P>
- Overrides:
- visitForOfLoopin class- SimpleTreeVisitorES5_1<R,P>
- Parameters:
- node- node being visited
- p- extra parameter passed to the visitor
- Returns:
- value from the visitor
 
 - 
visitYieldpublic R visitYield(YieldTree node, P p) Deprecated, for removal: This API element is subject to removal in a future version.Visit 'yield' expression tree.- Specified by:
- visitYieldin interface- TreeVisitor<R,P>
- Overrides:
- visitYieldin class- SimpleTreeVisitorES5_1<R,P>
- Parameters:
- node- node being visited
- p- extra parameter passed to the visitor
- Returns:
- value from the visitor
 
 - 
visitSpreadpublic R visitSpread(SpreadTree node, P p) Deprecated, for removal: This API element is subject to removal in a future version.Visit 'spread' expression tree.- Specified by:
- visitSpreadin interface- TreeVisitor<R,P>
- Overrides:
- visitSpreadin class- SimpleTreeVisitorES5_1<R,P>
- Parameters:
- node- node being visited
- p- extra parameter passed to the visitor
- Returns:
- value from the visitor
 
 - 
visitTemplateLiteralpublic R visitTemplateLiteral(TemplateLiteralTree node, P p) Deprecated, for removal: This API element is subject to removal in a future version.Visit template literal tree.- Specified by:
- visitTemplateLiteralin interface- TreeVisitor<R,P>
- Overrides:
- visitTemplateLiteralin class- SimpleTreeVisitorES5_1<R,P>
- Parameters:
- node- node being visited
- p- extra parameter passed to the visitor
- Returns:
- value from the visitor
 
 
- 
 
-