Class CommentsPreparator
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCommentsPreparator
(TokenManager tm, DefaultCodeFormatterOptions options, String sourceLevel) -
Method Summary
Modifier and TypeMethodDescriptionvoid
End of visit the given type-specific AST node.void
endVisit
(TagElement node) End of visit the given type-specific AST node.void
finishUp()
void
handleBlockComment
(int commentIndex) void
handleLineComment
(int commentIndex) boolean
Visits the given AST node prior to the type-specific visit (beforevisit
).boolean
visit
(BlockComment node) Visits the given type-specific AST node.boolean
Visits the given AST node.boolean
visit
(LineComment node) Visits the given type-specific AST node.boolean
Visits the given type-specific AST node.boolean
Visits the given type-specific AST node.boolean
visit
(QualifiedName node) Visits the given type-specific AST node.boolean
visit
(TagElement 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, 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, 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
-
Field Details
-
COMMENT_LINE_SEPARATOR_LENGTH
public static final int COMMENT_LINE_SEPARATOR_LENGTH- See Also:
-
-
Constructor Details
-
CommentsPreparator
-
-
Method Details
-
preVisit2
Description copied from class:ASTVisitor
Visits the given AST node prior to the type-specific visit (beforevisit
).The default implementation calls
ASTVisitor.preVisit(ASTNode)
and then returns true. Subclasses may reimplement.- Overrides:
preVisit2
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
ifvisit(node)
should be called, andfalse
otherwise.- See Also:
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
Note:
LineComment
andBlockComment
nodes 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:
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
-
handleLineComment
public void handleLineComment(int commentIndex) -
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
Note:
LineComment
andBlockComment
nodes 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:
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
-
handleBlockComment
public void handleBlockComment(int commentIndex) -
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:
-
endVisit
Description copied from class:ASTVisitor
End of visit the given type-specific AST node.The default implementation does nothing. Subclasses may reimplement.
- Overrides:
endVisit
in classASTVisitor
- Parameters:
node
- the node to visit
-
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
-
endVisit
Description copied from class:ASTVisitor
End of visit the given type-specific AST node.The default implementation does nothing. Subclasses may reimplement.
- Overrides:
endVisit
in classASTVisitor
- Parameters:
node
- the node to visit
-
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
-
finishUp
public void finishUp()
-