public class WrapPreparator extends ASTVisitor
| Constructor and Description |
|---|
WrapPreparator(TokenManager tokenManager,
DefaultCodeFormatterOptions options,
int kind) |
| Modifier and Type | Method and Description |
|---|---|
void |
finishUp(ASTNode astRoot,
IRegion[] regions) |
void |
postVisit(ASTNode node)
Visits the given AST node following the type-specific visit
(after
endVisit). |
boolean |
preVisit2(ASTNode node)
Visits the given AST node prior to the type-specific visit (before
visit). |
boolean |
visit(AnnotationTypeDeclaration node)
Visits the given type-specific AST node.
|
boolean |
visit(AnonymousClassDeclaration node)
Visits the given type-specific AST node.
|
boolean |
visit(ArrayInitializer node)
Visits the given type-specific AST node.
|
boolean |
visit(Assignment 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(EnumConstantDeclaration node)
Visits the given type-specific AST node.
|
boolean |
visit(EnumDeclaration 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(IfStatement node)
Visits the given type-specific AST node.
|
boolean |
visit(InfixExpression node)
Visits the given type-specific AST node.
|
boolean |
visit(LambdaExpression 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 |
visit(NormalAnnotation node)
Visits the given type-specific AST node.
|
boolean |
visit(QualifiedName 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(ThisExpression 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(UnionType node)
Visits the given type-specific AST node.
|
boolean |
visit(VariableDeclarationFragment node)
Visits the given type-specific AST node.
|
boolean |
visit(VariableDeclarationStatement node)
Visits the given type-specific AST node.
|
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, preVisit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visitpublic WrapPreparator(TokenManager tokenManager, DefaultCodeFormatterOptions options, int kind)
public boolean preVisit2(ASTNode node)
ASTVisitorvisit).
The default implementation calls ASTVisitor.preVisit(ASTNode) and then
returns true. Subclasses may reimplement.
preVisit2 in class ASTVisitornode - the node to visittrue if visit(node) should be called,
and false otherwise.ASTVisitor.preVisit(ASTNode)public void postVisit(ASTNode node)
ASTVisitorendVisit).
The default implementation does nothing. Subclasses may reimplement.
postVisit in class ASTVisitornode - the node to visitpublic boolean visit(CompilationUnit node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - the node to visittrue if the children of this node should be
visited, and false if the children of this node should
be skippedpublic boolean visit(NormalAnnotation node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - the node to visittrue if the children of this node should be
visited, and false if the children of this node should
be skippedpublic boolean visit(TypeDeclaration node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - the node to visittrue if the children of this node should be
visited, and false if the children of this node should
be skippedpublic boolean visit(AnnotationTypeDeclaration node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - the node to visittrue if the children of this node should be
visited, and false if the children of this node should
be skippedpublic boolean visit(AnonymousClassDeclaration node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - the node to visittrue if the children of this node should be
visited, and false if the children of this node should
be skippedpublic boolean visit(MethodDeclaration node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - the node to visittrue if the children of this node should be
visited, and false if the children of this node should
be skippedpublic boolean visit(EnumDeclaration node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - the node to visittrue if the children of this node should be
visited, and false if the children of this node should
be skippedpublic boolean visit(EnumConstantDeclaration node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - the node to visittrue if the children of this node should be
visited, and false if the children of this node should
be skippedpublic boolean visit(MethodInvocation node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - the node to visittrue if the children of this node should be
visited, and false if the children of this node should
be skippedpublic boolean visit(SuperMethodInvocation node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - the node to visittrue if the children of this node should be
visited, and false if the children of this node should
be skippedpublic boolean visit(ClassInstanceCreation node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - the node to visittrue if the children of this node should be
visited, and false if the children of this node should
be skippedpublic boolean visit(ConstructorInvocation node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - the node to visittrue if the children of this node should be
visited, and false if the children of this node should
be skippedpublic boolean visit(SuperConstructorInvocation node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - the node to visittrue if the children of this node should be
visited, and false if the children of this node should
be skippedpublic boolean visit(FieldAccess node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - the node to visittrue if the children of this node should be
visited, and false if the children of this node should
be skippedpublic boolean visit(QualifiedName node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - the node to visittrue if the children of this node should be
visited, and false if the children of this node should
be skippedpublic boolean visit(ThisExpression node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - the node to visittrue if the children of this node should be
visited, and false if the children of this node should
be skippedpublic boolean visit(SuperFieldAccess node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - the node to visittrue if the children of this node should be
visited, and false if the children of this node should
be skippedpublic boolean visit(InfixExpression node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - the node to visittrue if the children of this node should be
visited, and false if the children of this node should
be skippedpublic boolean visit(ConditionalExpression node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - the node to visittrue if the children of this node should be
visited, and false if the children of this node should
be skippedpublic boolean visit(ArrayInitializer node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - the node to visittrue if the children of this node should be
visited, and false if the children of this node should
be skippedpublic boolean visit(Assignment node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - the node to visittrue if the children of this node should be
visited, and false if the children of this node should
be skippedpublic boolean visit(VariableDeclarationFragment node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - the node to visittrue if the children of this node should be
visited, and false if the children of this node should
be skippedpublic boolean visit(IfStatement node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - the node to visittrue if the children of this node should be
visited, and false if the children of this node should
be skippedpublic boolean visit(TryStatement node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - the node to visittrue if the children of this node should be
visited, and false if the children of this node should
be skippedpublic boolean visit(UnionType node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - the node to visittrue if the children of this node should be
visited, and false if the children of this node should
be skippedpublic boolean visit(LambdaExpression node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - the node to visittrue if the children of this node should be
visited, and false if the children of this node should
be skippedpublic boolean visit(FieldDeclaration node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - the node to visittrue if the children of this node should be
visited, and false if the children of this node should
be skippedpublic boolean visit(VariableDeclarationStatement node)
ASTVisitorThe default implementation does nothing and return true. Subclasses may reimplement.
visit in class ASTVisitornode - the node to visittrue if the children of this node should be
visited, and false if the children of this node should
be skippedpublic void finishUp(ASTNode astRoot, IRegion[] regions)