Class NaiveASTFlattener
Example usage:
NaiveASTFlattener p = new NaiveASTFlattener();
node.accept(p);
String result = p.getResult();
Call the reset method to clear the previous result before reusing an
existing instance.- Since:
- 2.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringBuilderThe string buffer into which the serialized representation of the AST is written. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the string accumulated in the visit.voidreset()Resets this printer so that it can be used again.booleanVisits the given type-specific AST node.booleanVisits the given type-specific AST node.booleanVisits the given type-specific AST node.booleanvisit(ArrayAccess node) Visits the given type-specific AST node.booleanvisit(ArrayCreation node) Visits the given type-specific AST node.booleanvisit(ArrayInitializer node) Visits the given type-specific AST node.booleanVisits the given type-specific AST node.booleanvisit(AssertStatement node) Visits the given type-specific AST node.booleanvisit(Assignment node) Visits the given type-specific AST node.booleanVisits the given type-specific AST node.booleanvisit(BlockComment node) Visits the given type-specific AST node.booleanvisit(BooleanLiteral node) Visits the given type-specific AST node.booleanvisit(BreakStatement node) Visits the given type-specific AST node.booleanvisit(CaseDefaultExpression node) Visits the given type-specific AST node.booleanvisit(CastExpression node) Visits the given type-specific AST node.booleanvisit(CatchClause node) Visits the given type-specific AST node.booleanvisit(CharacterLiteral node) Visits the given type-specific AST node.booleanvisit(ClassInstanceCreation node) Visits the given type-specific AST node.booleanvisit(CompilationUnit node) Visits the given type-specific AST node.booleanvisit(ConditionalExpression node) Visits the given type-specific AST node.booleanvisit(ConstructorInvocation node) Visits the given type-specific AST node.booleanvisit(ContinueStatement node) Visits the given type-specific AST node.booleanvisit(CreationReference node) Visits the given type-specific AST node.booleanVisits the given type-specific AST node.booleanvisit(DoStatement node) Visits the given type-specific AST node.booleanvisit(EitherOrMultiPattern node) Visits the given type-specific AST node.booleanvisit(EmptyStatement node) Visits the given type-specific AST node.booleanvisit(EnhancedForStatement node) Visits the given type-specific AST node.booleanvisit(EnumConstantDeclaration node) Visits the given type-specific AST node.booleanvisit(EnumDeclaration node) Visits the given type-specific AST node.booleanvisit(ExportsDirective node) Visits the given type-specific AST node.booleanVisits the given type-specific AST node.booleanvisit(ExpressionStatement node) Visits the given type-specific AST node.booleanvisit(FieldAccess node) Visits the given type-specific AST node.booleanvisit(FieldDeclaration node) Visits the given type-specific AST node.booleanvisit(ForStatement node) Visits the given type-specific AST node.booleanvisit(GuardedPattern node) Visits the given type-specific AST node.booleanvisit(IfStatement node) Visits the given type-specific AST node.booleanvisit(ImplicitTypeDeclaration node) Visits the given type-specific AST node.booleanvisit(ImportDeclaration node) Visits the given type-specific AST node.booleanvisit(InfixExpression node) Visits the given type-specific AST node.booleanvisit(Initializer node) Visits the given type-specific AST node.booleanvisit(InstanceofExpression node) Visits the given type-specific AST node.booleanvisit(IntersectionType node) Visits the given type-specific AST node.booleanVisits the given AST node.booleanvisit(JavaDocRegion node) Visits the given AST node.booleanvisit(JavaDocTextElement node) Visits the given type-specific AST node.booleanvisit(LabeledStatement node) Visits the given type-specific AST node.booleanvisit(LambdaExpression node) Visits the given type-specific AST node.booleanvisit(LineComment node) Visits the given type-specific AST node.booleanvisit(MarkerAnnotation node) Visits the given type-specific AST node.booleanVisits the given type-specific AST node.booleanvisit(MemberValuePair node) Visits the given type-specific AST node.booleanvisit(MethodDeclaration node) Visits the given type-specific AST node.booleanvisit(MethodInvocation node) Visits the given type-specific AST node.booleanVisits the given type-specific AST node.booleanvisit(MethodRefParameter node) Visits the given type-specific AST node.booleanVisits the given type-specific AST node.booleanvisit(ModuleDeclaration node) Visits the given type-specific AST node.booleanvisit(ModuleModifier node) Visits the given type-specific AST node.booleanvisit(ModuleQualifiedName node) Visits the given type-specific AST node.booleanvisit(NameQualifiedType node) Visits the given type-specific AST node.booleanvisit(NormalAnnotation node) Visits the given type-specific AST node.booleanvisit(NullLiteral node) Visits the given type-specific AST node.booleanvisit(NullPattern node) Visits the given type-specific AST node.booleanvisit(NumberLiteral node) Visits the given type-specific AST node.booleanvisit(OpensDirective node) Visits the given type-specific AST node.booleanvisit(PackageDeclaration node) Visits the given type-specific AST node.booleanvisit(ParameterizedType node) Visits the given type-specific AST node.booleanvisit(ParenthesizedExpression node) Visits the given type-specific AST node.booleanVisits the given type-specific AST node.booleanvisit(PostfixExpression node) Visits the given type-specific AST node.booleanvisit(PrefixExpression node) Visits the given type-specific AST node.booleanvisit(PrimitiveType node) Visits the given type-specific AST node.booleanvisit(ProvidesDirective node) Visits the given type-specific AST node.booleanvisit(QualifiedName node) Visits the given type-specific AST node.booleanvisit(QualifiedType node) Visits the given type-specific AST node.booleanvisit(RecordDeclaration node) Visits the given type-specific AST node.booleanvisit(RecordPattern node) Visits the given type-specific AST node.booleanvisit(RequiresDirective node) Visits the given type-specific AST node.booleanvisit(ReturnStatement node) Visits the given type-specific AST node.booleanvisit(SimpleName node) Visits the given type-specific AST node.booleanvisit(SimpleType node) Visits the given type-specific AST node.booleanvisit(SingleMemberAnnotation node) Visits the given type-specific AST node.booleanVisits the given type-specific AST node.booleanvisit(StringLiteral node) Visits the given type-specific AST node.booleanVisits the given type-specific AST node.booleanvisit(SuperFieldAccess node) Visits the given type-specific AST node.booleanvisit(SuperMethodInvocation node) Visits the given type-specific AST node.booleanvisit(SuperMethodReference node) Visits the given type-specific AST node.booleanvisit(SwitchCase node) Visits the given type-specific AST node.booleanvisit(SwitchExpression node) Visits the given type-specific AST node.booleanvisit(SwitchStatement node) Visits the given type-specific AST node.booleanvisit(SynchronizedStatement node) Visits the given type-specific AST node.booleanvisit(TagElement node) Visits the given type-specific AST node.booleanvisit(TagProperty node) Visits the given type-specific AST node.booleanVisits the given type-specific AST node.booleanvisit(TextElement node) Visits the given type-specific AST node.booleanvisit(ThisExpression node) Visits the given type-specific AST node.booleanvisit(ThrowStatement node) Visits the given type-specific AST node.booleanvisit(TryStatement node) Visits the given type-specific AST node.booleanvisit(TypeDeclaration node) Visits the given type-specific AST node.booleanVisits the given type-specific AST node.booleanvisit(TypeLiteral node) Visits the given type-specific AST node.booleanvisit(TypeMethodReference node) Visits the given type-specific AST node.booleanvisit(TypeParameter node) Visits the given type-specific AST node.booleanvisit(TypePattern node) Visits the given type-specific AST node.booleanVisits the given type-specific AST node.booleanvisit(UsesDirective node) Visits the given type-specific AST node.booleanVisits the given type-specific AST node.booleanVisits the given type-specific AST node.booleanVisits the given type-specific AST node.booleanvisit(WhileStatement node) Visits the given type-specific AST node.booleanvisit(WildcardType node) Visits the given type-specific AST node.booleanvisit(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, endVisit, endVisit, endVisit, endVisit, postVisit, preVisit, preVisit2
-
Field Details
-
buffer
The string buffer into which the serialized representation of the AST is written.
-
-
Constructor Details
-
NaiveASTFlattener
public NaiveASTFlattener()Creates a new AST printer.
-
-
Method Details
-
getResult
-
reset
public void reset()Resets this printer so that it can be used again. -
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
Note:
LineCommentandBlockCommentnodes are not considered part of main structure of the AST. This method will only be called if a client goes out of their way to visit this kind of node explicitly.- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may re-implement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may re-implement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may re-implement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits 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 isfalseby default. Subclasses may reimplement.- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped- See Also:
-
visit
Description copied from class:ASTVisitorVisits 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 isfalseby default. Subclasses may reimplement.- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped- See Also:
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
Note:
LineCommentandBlockCommentnodes are not considered part of main structure of the AST. This method will only be called if a client goes out of their way to visit this kind of node explicitly.- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may re-implement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may re-implement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may re-implement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may re-implement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and returns true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and returns true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the ImplicitTypeDeclaration to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may re-implement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and returns true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-