Class ASTRewriteAnalyzer
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionASTRewriteAnalyzer(char[] content, LineInformation lineInfo, String lineDelim, org.eclipse.text.edits.TextEdit rootEdit, RewriteEventStore eventStore, NodeInfoStore nodeInfos, List comments, Map options, TargetSourceRangeComputer extendedSourceRangeComputer, RecoveryScannerData recoveryScannerData)
Constructor for ASTRewriteAnalyzer. -
Method Summary
Modifier and TypeMethodDescriptionstatic ASTVisitor
getAnalyzerVisitor(char[] content2, LineInformation lineInfo2, String lineDelim, org.eclipse.text.edits.TextEdit result, RewriteEventStore eventStore2, NodeInfoStore nodeStore, List comments, Map options, TargetSourceRangeComputer xsrComputer, RecoveryScannerData recoveryScannerData)
void
Visits the given AST node following the type-specific visit (afterendVisit
).void
Visits the given AST node prior to the type-specific visit (beforevisit
).protected int
retrieveRightBracketEndPosition(int offset, int count, boolean isLeftRead)
This method is used to retrieve the position of the right bracket.protected int
rewriteExtraDimensionsInfo(ASTNode node, int pos, ChildListPropertyDescriptor property)
boolean
visit(AnnotationTypeDeclaration node)
Visits the given type-specific AST node.boolean
Visits the given type-specific AST node.boolean
visit(AnonymousClassDeclaration node)
Visits the given type-specific AST node.boolean
visit(ArrayAccess node)
Visits the given type-specific AST node.boolean
visit(ArrayCreation node)
Visits the given type-specific AST node.boolean
visit(ArrayInitializer node)
Visits the given type-specific AST node.boolean
Visits the given type-specific AST node.boolean
visit(AssertStatement node)
Visits the given type-specific AST node.boolean
visit(Assignment node)
Visits the given type-specific AST node.boolean
Visits the given type-specific AST node.boolean
visit(BooleanLiteral node)
Visits the given type-specific AST node.boolean
visit(BreakStatement node)
Visits the given type-specific AST node.boolean
visit(CaseDefaultExpression node)
Visits the given type-specific AST node.boolean
visit(CastExpression node)
Visits the given type-specific AST node.boolean
visit(CatchClause node)
Visits the given type-specific AST node.boolean
visit(CharacterLiteral node)
Visits the given type-specific AST node.boolean
visit(ClassInstanceCreation node)
Visits the given type-specific AST node.boolean
visit(CompilationUnit node)
Visits the given type-specific AST node.boolean
visit(ConditionalExpression node)
Visits the given type-specific AST node.boolean
visit(ConstructorInvocation node)
Visits the given type-specific AST node.boolean
visit(ContinueStatement node)
Visits the given type-specific AST node.boolean
visit(CreationReference node)
Visits the given type-specific AST node.boolean
Visits the given type-specific AST node.boolean
visit(DoStatement node)
Visits the given type-specific AST node.boolean
visit(EmptyStatement node)
Visits the given type-specific AST node.boolean
visit(EnhancedForStatement node)
Visits the given type-specific AST node.boolean
visit(EnumConstantDeclaration node)
Visits the given type-specific AST node.boolean
visit(EnumDeclaration node)
Visits the given type-specific AST node.boolean
visit(ExportsDirective node)
Visits the given type-specific AST node.boolean
visit(ExpressionMethodReference node)
Visits the given type-specific AST node.boolean
visit(ExpressionStatement node)
Visits the given type-specific AST node.boolean
visit(FieldAccess node)
Visits the given type-specific AST node.boolean
visit(FieldDeclaration node)
Visits the given type-specific AST node.boolean
visit(ForStatement node)
Visits the given type-specific AST node.boolean
visit(GuardedPattern node)
Visits the given type-specific AST node.boolean
visit(IfStatement node)
Visits the given type-specific AST node.boolean
visit(ImportDeclaration node)
Visits the given type-specific AST node.boolean
visit(InfixExpression node)
Visits the given type-specific AST node.boolean
visit(Initializer node)
Visits the given type-specific AST node.boolean
visit(InstanceofExpression node)
Visits the given type-specific AST node.boolean
visit(IntersectionType node)
Visits the given type-specific AST node.boolean
Visits the given AST node.boolean
visit(LabeledStatement node)
Visits the given type-specific AST node.boolean
visit(LambdaExpression node)
Visits the given type-specific AST node.boolean
visit(MarkerAnnotation node)
Visits the given type-specific AST node.boolean
Visits the given type-specific AST node.boolean
visit(MemberValuePair node)
Visits the given type-specific AST node.boolean
visit(MethodDeclaration node)
Visits the given type-specific AST node.boolean
visit(MethodInvocation node)
Visits the given type-specific AST node.boolean
Visits the given type-specific AST node.boolean
visit(MethodRefParameter node)
Visits the given type-specific AST node.boolean
Visits the given type-specific AST node.boolean
visit(ModuleDeclaration node)
Visits the given type-specific AST node.boolean
visit(ModuleModifier node)
Visits the given type-specific AST node.boolean
visit(NameQualifiedType node)
Visits the given type-specific AST node.boolean
visit(NormalAnnotation node)
Visits the given type-specific AST node.boolean
visit(NullLiteral node)
Visits the given type-specific AST node.boolean
visit(NullPattern node)
Visits the given type-specific AST node.boolean
visit(NumberLiteral node)
Visits the given type-specific AST node.boolean
visit(PackageDeclaration node)
Visits the given type-specific AST node.boolean
visit(ParameterizedType node)
Visits the given type-specific AST node.boolean
visit(ParenthesizedExpression node)
Visits the given type-specific AST node.boolean
visit(PatternInstanceofExpression node)
Visits the given type-specific AST node.boolean
visit(PostfixExpression node)
Visits the given type-specific AST node.boolean
visit(PrefixExpression node)
Visits the given type-specific AST node.boolean
visit(PrimitiveType node)
Visits the given type-specific AST node.boolean
visit(ProvidesDirective node)
Visits the given type-specific AST node.boolean
visit(QualifiedName node)
Visits the given type-specific AST node.boolean
visit(QualifiedType node)
Visits the given type-specific AST node.boolean
visit(RecordDeclaration node)
Visits the given type-specific AST node.boolean
visit(RequiresDirective node)
Visits the given type-specific AST node.boolean
visit(ReturnStatement node)
Visits the given type-specific AST node.boolean
visit(SimpleName node)
Visits the given type-specific AST node.boolean
visit(SimpleType node)
Visits the given type-specific AST node.boolean
visit(SingleMemberAnnotation node)
Visits the given type-specific AST node.boolean
visit(SingleVariableDeclaration node)
Visits the given type-specific AST node.boolean
visit(StringLiteral node)
Visits the given type-specific AST node.boolean
visit(SuperConstructorInvocation node)
Visits the given type-specific AST node.boolean
visit(SuperFieldAccess node)
Visits the given type-specific AST node.boolean
visit(SuperMethodInvocation node)
Visits the given type-specific AST node.boolean
visit(SuperMethodReference node)
Visits the given type-specific AST node.boolean
visit(SwitchCase node)
Visits the given type-specific AST node.boolean
visit(SwitchExpression node)
Visits the given type-specific AST node.boolean
visit(SwitchStatement node)
Visits the given type-specific AST node.boolean
visit(SynchronizedStatement node)
Visits the given type-specific AST node.boolean
visit(TagElement node)
Visits the given type-specific AST node.boolean
Visits the given type-specific AST node.boolean
visit(TextElement node)
Visits the given type-specific AST node.boolean
visit(ThisExpression node)
Visits the given type-specific AST node.boolean
visit(ThrowStatement node)
Visits the given type-specific AST node.boolean
visit(TryStatement node)
Visits the given type-specific AST node.boolean
visit(TypeDeclaration node)
Visits the given type-specific AST node.boolean
visit(TypeDeclarationStatement node)
Visits the given type-specific AST node.boolean
visit(TypeLiteral node)
Visits the given type-specific AST node.boolean
visit(TypeMethodReference node)
Visits the given type-specific AST node.boolean
visit(TypeParameter node)
Visits the given type-specific AST node.boolean
visit(TypePattern node)
Visits the given type-specific AST node.boolean
Visits the given type-specific AST node.boolean
visit(UsesDirective node)
Visits the given type-specific AST node.boolean
Visits the given type-specific AST node.boolean
visit(VariableDeclarationFragment node)
Visits the given type-specific AST node.boolean
Visits the given type-specific AST node.boolean
visit(WhileStatement node)
Visits the given type-specific AST node.boolean
visit(WildcardType node)
Visits the given type-specific AST node.boolean
visit(YieldStatement node)
Visits the given type-specific AST node.Methods inherited from class org.aspectj.org.eclipse.jdt.core.dom.ASTVisitor
endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, preVisit2, visit, visit, visit, visit, visit, visit
-
Constructor Details
-
ASTRewriteAnalyzer
public ASTRewriteAnalyzer(char[] content, LineInformation lineInfo, String lineDelim, org.eclipse.text.edits.TextEdit rootEdit, RewriteEventStore eventStore, NodeInfoStore nodeInfos, List comments, Map options, TargetSourceRangeComputer extendedSourceRangeComputer, RecoveryScannerData recoveryScannerData)Constructor for ASTRewriteAnalyzer.The given options cannot be null.
- Parameters:
content
- the content of the compilation unit to rewrite.lineInfo
- line information for the content of the compilation unit to rewrite.rootEdit
- the edit to add all generated edits toeventStore
- the event store containing the description of changesnodeInfos
- annotations to nodes, such as if a node is a string placeholder or a copy targetcomments
- list of comments of the compilation unit to rewrite (elements of typeComment
) ornull
.options
- the current jdt.core options (formatting/compliance)extendedSourceRangeComputer
- the source range computer to userecoveryScannerData
- internal data used byRecoveryScanner
-
-
Method Details
-
getAnalyzerVisitor
public static ASTVisitor getAnalyzerVisitor(char[] content2, LineInformation lineInfo2, String lineDelim, org.eclipse.text.edits.TextEdit result, RewriteEventStore eventStore2, NodeInfoStore nodeStore, List comments, Map options, TargetSourceRangeComputer xsrComputer, RecoveryScannerData recoveryScannerData) -
rewriteExtraDimensionsInfo
protected int rewriteExtraDimensionsInfo(ASTNode node, int pos, ChildListPropertyDescriptor property) -
postVisit
Description copied from class:ASTVisitor
Visits the given AST node following the type-specific visit (afterendVisit
).The default implementation does nothing. Subclasses may reimplement.
- Overrides:
postVisit
in classASTVisitor
- Parameters:
node
- the node to visit
-
preVisit
Description copied from class:ASTVisitor
Visits the given AST node prior to the type-specific visit (beforevisit
).The default implementation does nothing. Subclasses may reimplement.
- Overrides:
preVisit
in classASTVisitor
- Parameters:
node
- the node to visit- See Also:
ASTVisitor.preVisit2(ASTNode)
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may re-implement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may re-implement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
retrieveRightBracketEndPosition
protected int retrieveRightBracketEndPosition(int offset, int count, boolean isLeftRead) throws org.eclipse.core.runtime.CoreExceptionThis method is used to retrieve the position of the right bracket.- Returns:
- int the dimension found, -1 if none
- Throws:
org.eclipse.core.runtime.CoreException
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may re-implement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may re-implement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given AST node.Unlike other node types, the boolean returned by the default implementation is controlled by a constructor-supplied parameter
ASTVisitor(boolean)
which isfalse
by default. Subclasses may reimplement.- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped- See Also:
ASTVisitor()
,ASTVisitor(boolean)
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may re-implement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may re-implement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and returns true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may re-implement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and returns true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-