R - the return type of this visitor's methods. Use Void for visitors that do not need to return results.P - the type of the additional parameter to this visitor's
methods. Use Void for visitors that do not need an
additional parameter.TreeVisitor<R,P>public class SimpleTreeVisitorES6<R,P> extends SimpleTreeVisitorES5_1<R,P>
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, visitUnknown
is called instead which throws UnknownTreeException.
Methods in this class may be overridden subject to their
general contract. Note that annotating methods in concrete
subclasses with @Override will help
ensure that methods are overridden as intended.
| Constructor | Description |
|---|---|
SimpleTreeVisitorES6() |
| Modifier and Type | Method | Description |
|---|---|---|
R |
visitClassDeclaration(ClassDeclarationTree node,
P p) |
Visit class statement tree.
|
R |
visitClassExpression(ClassExpressionTree node,
P p) |
Visit class expression tree.
|
R |
visitCompilationUnit(CompilationUnitTree node,
P r) |
Visit compilation unit tree.
|
R |
visitExportEntry(ExportEntryTree node,
P p) |
Visit Module ExportEntry tree.
|
R |
visitForOfLoop(ForOfLoopTree node,
P p) |
Visit for..of statement tree.
|
R |
visitImportEntry(ImportEntryTree node,
P p) |
Visit Module ImportEntry tree.
|
R |
visitModule(ModuleTree node,
P p) |
Visit Module tree.
|
R |
visitSpread(SpreadTree node,
P p) |
Visit 'spread' expression tree.
|
R |
visitTemplateLiteral(TemplateLiteralTree node,
P p) |
Visit template literal tree.
|
R |
visitVariable(VariableTree node,
P r) |
Visit variable declaration tree.
|
R |
visitYield(YieldTree node,
P p) |
Visit 'yield' expression tree.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvisitArrayAccess, visitArrayLiteral, visitAssignment, visitBinary, visitBlock, visitBreak, visitCase, visitCatch, 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, visitUnknown, visitWhileLoop, visitWithpublic R visitCompilationUnit(CompilationUnitTree node, P r)
TreeVisitorvisitCompilationUnit in interface TreeVisitor<R,P>visitCompilationUnit in class SimpleTreeVisitorES5_1<R,P>node - node being visitedr - extra parameter passed to the visitorpublic R visitModule(ModuleTree node, P p)
visitModule in interface TreeVisitor<R,P>visitModule in class SimpleTreeVisitorES5_1<R,P>node - node being visitedp - extra parameter passed to the visitorpublic R visitExportEntry(ExportEntryTree node, P p)
visitExportEntry in interface TreeVisitor<R,P>visitExportEntry in class SimpleTreeVisitorES5_1<R,P>node - node being visitedp - extra parameter passed to the visitorpublic R visitImportEntry(ImportEntryTree node, P p)
visitImportEntry in interface TreeVisitor<R,P>visitImportEntry in class SimpleTreeVisitorES5_1<R,P>node - node being visitedp - extra parameter passed to the visitorpublic R visitClassDeclaration(ClassDeclarationTree node, P p)
visitClassDeclaration in interface TreeVisitor<R,P>visitClassDeclaration in class SimpleTreeVisitorES5_1<R,P>node - node being visitedp - extra parameter passed to the visitorpublic R visitClassExpression(ClassExpressionTree node, P p)
visitClassExpression in interface TreeVisitor<R,P>visitClassExpression in class SimpleTreeVisitorES5_1<R,P>node - node being visitedp - extra parameter passed to the visitorpublic R visitForOfLoop(ForOfLoopTree node, P p)
visitForOfLoop in interface TreeVisitor<R,P>visitForOfLoop in class SimpleTreeVisitorES5_1<R,P>node - node being visitedp - extra parameter passed to the visitorpublic R visitYield(YieldTree node, P p)
visitYield in interface TreeVisitor<R,P>visitYield in class SimpleTreeVisitorES5_1<R,P>node - node being visitedp - extra parameter passed to the visitorpublic R visitSpread(SpreadTree node, P p)
visitSpread in interface TreeVisitor<R,P>visitSpread in class SimpleTreeVisitorES5_1<R,P>node - node being visitedp - extra parameter passed to the visitorpublic R visitTemplateLiteral(TemplateLiteralTree node, P p)
visitTemplateLiteral in interface TreeVisitor<R,P>visitTemplateLiteral in class SimpleTreeVisitorES5_1<R,P>node - node being visitedp - extra parameter passed to the visitorpublic R visitVariable(VariableTree node, P r)
TreeVisitorvisitVariable in interface TreeVisitor<R,P>visitVariable in class SimpleTreeVisitorES5_1<R,P>node - node being visitedr - extra parameter passed to the visitor Submit a bug or feature
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 2014, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-Debian+0-9b155-1