org.eclipse.jdt.internal.formatter
Class CodeFormatterVisitor
java.lang.Object
org.eclipse.jdt.internal.compiler.ASTVisitor
org.eclipse.jdt.internal.formatter.CodeFormatterVisitor
public class CodeFormatterVisitor
- extends ASTVisitor
This class is responsible for formatting a valid java source code.
- Since:
- 2.1
Method Summary |
void |
acceptProblem(IProblem problem)
|
boolean |
checkChunkStart(int kind)
|
org.eclipse.text.edits.TextEdit |
format(java.lang.String string,
ASTNode[] nodes)
|
org.eclipse.text.edits.TextEdit |
format(java.lang.String string,
CommentRegion region)
|
org.eclipse.text.edits.TextEdit |
format(java.lang.String string,
CompilationUnitDeclaration compilationUnitDeclaration)
|
org.eclipse.text.edits.TextEdit |
format(java.lang.String string,
ConstructorDeclaration constructorDeclaration)
|
org.eclipse.text.edits.TextEdit |
format(java.lang.String string,
Expression expression)
|
void |
formatComment(int kind,
java.lang.String source,
int start,
int end,
int indentationLevel)
|
boolean |
visit(AllocationExpression allocationExpression,
BlockScope scope)
|
boolean |
visit(AND_AND_Expression and_and_Expression,
BlockScope scope)
|
boolean |
visit(AnnotationMethodDeclaration annotationTypeMemberDeclaration,
ClassScope scope)
|
boolean |
visit(Argument argument,
BlockScope scope)
|
boolean |
visit(ArrayAllocationExpression arrayAllocationExpression,
BlockScope scope)
|
boolean |
visit(ArrayInitializer arrayInitializer,
BlockScope scope)
|
boolean |
visit(ArrayQualifiedTypeReference arrayQualifiedTypeReference,
BlockScope scope)
|
boolean |
visit(ArrayQualifiedTypeReference arrayQualifiedTypeReference,
ClassScope scope)
|
boolean |
visit(ArrayReference arrayReference,
BlockScope scope)
|
boolean |
visit(ArrayTypeReference arrayTypeReference,
BlockScope scope)
|
boolean |
visit(ArrayTypeReference arrayTypeReference,
ClassScope scope)
|
boolean |
visit(AssertStatement assertStatement,
BlockScope scope)
|
boolean |
visit(Assignment assignment,
BlockScope scope)
|
boolean |
visit(BinaryExpression binaryExpression,
BlockScope scope)
|
boolean |
visit(Block block,
BlockScope scope)
|
boolean |
visit(BreakStatement breakStatement,
BlockScope scope)
|
boolean |
visit(CaseStatement caseStatement,
BlockScope scope)
|
boolean |
visit(CastExpression castExpression,
BlockScope scope)
|
boolean |
visit(CharLiteral charLiteral,
BlockScope scope)
|
boolean |
visit(ClassLiteralAccess classLiteral,
BlockScope scope)
|
boolean |
visit(Clinit clinit,
ClassScope scope)
|
boolean |
visit(CompilationUnitDeclaration compilationUnitDeclaration,
CompilationUnitScope scope)
|
boolean |
visit(CompoundAssignment compoundAssignment,
BlockScope scope)
|
boolean |
visit(ConditionalExpression conditionalExpression,
BlockScope scope)
|
boolean |
visit(ConstructorDeclaration constructorDeclaration,
ClassScope scope)
|
boolean |
visit(ContinueStatement continueStatement,
BlockScope scope)
|
boolean |
visit(DoStatement doStatement,
BlockScope scope)
|
boolean |
visit(DoubleLiteral doubleLiteral,
BlockScope scope)
|
boolean |
visit(EmptyStatement statement,
BlockScope scope)
|
boolean |
visit(EqualExpression equalExpression,
BlockScope scope)
|
boolean |
visit(ExplicitConstructorCall explicitConstructor,
BlockScope scope)
|
boolean |
visit(FalseLiteral falseLiteral,
BlockScope scope)
|
boolean |
visit(FieldDeclaration enumConstant,
MethodScope scope)
|
boolean |
visit(FieldReference fieldReference,
BlockScope scope)
|
boolean |
visit(FloatLiteral floatLiteral,
BlockScope scope)
|
boolean |
visit(ForeachStatement forStatement,
BlockScope scope)
|
boolean |
visit(ForStatement forStatement,
BlockScope scope)
|
boolean |
visit(IfStatement ifStatement,
BlockScope scope)
|
boolean |
visit(Initializer initializer,
MethodScope scope)
|
boolean |
visit(InstanceOfExpression instanceOfExpression,
BlockScope scope)
|
boolean |
visit(IntLiteral intLiteral,
BlockScope scope)
|
boolean |
visit(LabeledStatement labeledStatement,
BlockScope scope)
|
boolean |
visit(LocalDeclaration localDeclaration,
BlockScope scope)
|
boolean |
visit(LongLiteral longLiteral,
BlockScope scope)
|
boolean |
visit(MarkerAnnotation annotation,
BlockScope scope)
|
boolean |
visit(MarkerAnnotation annotation,
ClassScope scope)
|
boolean |
visit(MemberValuePair pair,
BlockScope scope)
|
boolean |
visit(MessageSend messageSend,
BlockScope scope)
|
boolean |
visit(MethodDeclaration methodDeclaration,
ClassScope scope)
|
boolean |
visit(NormalAnnotation annotation,
BlockScope scope)
|
boolean |
visit(NullLiteral nullLiteral,
BlockScope scope)
|
boolean |
visit(OR_OR_Expression or_or_Expression,
BlockScope scope)
|
boolean |
visit(ParameterizedQualifiedTypeReference parameterizedQualifiedTypeReference,
BlockScope scope)
|
boolean |
visit(ParameterizedQualifiedTypeReference parameterizedQualifiedTypeReference,
ClassScope scope)
|
boolean |
visit(ParameterizedSingleTypeReference parameterizedSingleTypeReference,
BlockScope scope)
|
boolean |
visit(ParameterizedSingleTypeReference parameterizedSingleTypeReference,
ClassScope scope)
|
boolean |
visit(PostfixExpression postfixExpression,
BlockScope scope)
|
boolean |
visit(PrefixExpression prefixExpression,
BlockScope scope)
|
boolean |
visit(QualifiedAllocationExpression qualifiedAllocationExpression,
BlockScope scope)
|
boolean |
visit(QualifiedNameReference qualifiedNameReference,
BlockScope scope)
|
boolean |
visit(QualifiedSuperReference qualifiedSuperReference,
BlockScope scope)
|
boolean |
visit(QualifiedThisReference qualifiedThisReference,
BlockScope scope)
|
boolean |
visit(QualifiedTypeReference qualifiedTypeReference,
BlockScope scope)
|
boolean |
visit(QualifiedTypeReference qualifiedTypeReference,
ClassScope scope)
|
boolean |
visit(ReturnStatement returnStatement,
BlockScope scope)
|
boolean |
visit(SingleMemberAnnotation annotation,
BlockScope scope)
|
boolean |
visit(SingleNameReference singleNameReference,
BlockScope scope)
|
boolean |
visit(SingleTypeReference singleTypeReference,
BlockScope scope)
|
boolean |
visit(SingleTypeReference singleTypeReference,
ClassScope scope)
|
boolean |
visit(StringLiteral stringLiteral,
BlockScope scope)
|
boolean |
visit(StringLiteralConcatenation stringLiteral,
BlockScope scope)
|
boolean |
visit(SuperReference superReference,
BlockScope scope)
|
boolean |
visit(SwitchStatement switchStatement,
BlockScope scope)
|
boolean |
visit(SynchronizedStatement synchronizedStatement,
BlockScope scope)
|
boolean |
visit(ThisReference thisReference,
BlockScope scope)
|
boolean |
visit(ThrowStatement throwStatement,
BlockScope scope)
|
boolean |
visit(TrueLiteral trueLiteral,
BlockScope scope)
|
boolean |
visit(TryStatement tryStatement,
BlockScope scope)
|
boolean |
visit(TypeDeclaration localTypeDeclaration,
BlockScope scope)
|
boolean |
visit(TypeDeclaration memberTypeDeclaration,
ClassScope scope)
|
boolean |
visit(TypeDeclaration typeDeclaration,
CompilationUnitScope scope)
|
boolean |
visit(TypeParameter typeParameter,
BlockScope scope)
|
boolean |
visit(TypeParameter typeParameter,
ClassScope scope)
|
boolean |
visit(UnaryExpression unaryExpression,
BlockScope scope)
|
boolean |
visit(WhileStatement whileStatement,
BlockScope scope)
|
boolean |
visit(Wildcard wildcard,
BlockScope scope)
|
boolean |
visit(Wildcard wildcard,
ClassScope scope)
|
Methods inherited from class org.eclipse.jdt.internal.compiler.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, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, 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 |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEBUG
public static final boolean DEBUG
- See Also:
- Constant Field Values
lastLocalDeclarationSourceStart
public int lastLocalDeclarationSourceStart
preferences
public DefaultCodeFormatterOptions preferences
scribe
public Scribe scribe
CodeFormatterVisitor
public CodeFormatterVisitor(DefaultCodeFormatterOptions preferences,
java.util.Map settings,
org.eclipse.jface.text.IRegion[] regions,
CodeSnippetParsingUtil codeSnippetParsingUtil,
boolean includeComments)
acceptProblem
public void acceptProblem(IProblem problem)
- Overrides:
acceptProblem
in class ASTVisitor
- See Also:
ASTVisitor.acceptProblem(org.eclipse.jdt.core.compiler.IProblem)
checkChunkStart
public boolean checkChunkStart(int kind)
format
public org.eclipse.text.edits.TextEdit format(java.lang.String string,
ASTNode[] nodes)
- See Also:
CodeFormatter.format(int, String, int, int, int, String)
format
public org.eclipse.text.edits.TextEdit format(java.lang.String string,
CompilationUnitDeclaration compilationUnitDeclaration)
- See Also:
CodeFormatter.format(int, String, int, int, int, String)
format
public org.eclipse.text.edits.TextEdit format(java.lang.String string,
ConstructorDeclaration constructorDeclaration)
- See Also:
CodeFormatter.format(int, String, int, int, int, String)
format
public org.eclipse.text.edits.TextEdit format(java.lang.String string,
Expression expression)
- See Also:
CodeFormatter.format(int, String, int, int, int, String)
format
public org.eclipse.text.edits.TextEdit format(java.lang.String string,
CommentRegion region)
- See Also:
CodeFormatter.format(int, String, int, int, int, String)
formatComment
public void formatComment(int kind,
java.lang.String source,
int start,
int end,
int indentationLevel)
- Parameters:
source
- the source of the comment to format
visit
public boolean visit(AllocationExpression allocationExpression,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.AllocationExpression, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(AND_AND_Expression and_and_Expression,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.AND_AND_Expression, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(AnnotationMethodDeclaration annotationTypeMemberDeclaration,
ClassScope scope)
- Overrides:
visit
in class ASTVisitor
visit
public boolean visit(Argument argument,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.Argument, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(ArrayAllocationExpression arrayAllocationExpression,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.ArrayAllocationExpression, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(ArrayInitializer arrayInitializer,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.ArrayInitializer, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(ArrayQualifiedTypeReference arrayQualifiedTypeReference,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.ArrayQualifiedTypeReference, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(ArrayQualifiedTypeReference arrayQualifiedTypeReference,
ClassScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.ArrayQualifiedTypeReference, org.eclipse.jdt.internal.compiler.lookup.ClassScope)
visit
public boolean visit(ArrayReference arrayReference,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.ArrayReference, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(ArrayTypeReference arrayTypeReference,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.ArrayTypeReference, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(ArrayTypeReference arrayTypeReference,
ClassScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.ArrayTypeReference, org.eclipse.jdt.internal.compiler.lookup.ClassScope)
visit
public boolean visit(AssertStatement assertStatement,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.AssertStatement, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(Assignment assignment,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.Assignment, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(BinaryExpression binaryExpression,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.BinaryExpression, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(Block block,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.Block, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(BreakStatement breakStatement,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.BreakStatement, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(CaseStatement caseStatement,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.CaseStatement, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(CastExpression castExpression,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.CastExpression, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(CharLiteral charLiteral,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.CharLiteral, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(ClassLiteralAccess classLiteral,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.ClassLiteralAccess, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(Clinit clinit,
ClassScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.Clinit, org.eclipse.jdt.internal.compiler.lookup.ClassScope)
visit
public boolean visit(CompilationUnitDeclaration compilationUnitDeclaration,
CompilationUnitScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration, org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope)
visit
public boolean visit(CompoundAssignment compoundAssignment,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.CompoundAssignment, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(ConditionalExpression conditionalExpression,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.ConditionalExpression, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(ConstructorDeclaration constructorDeclaration,
ClassScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.ConstructorDeclaration, org.eclipse.jdt.internal.compiler.lookup.ClassScope)
visit
public boolean visit(ContinueStatement continueStatement,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.ContinueStatement, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(DoStatement doStatement,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.DoStatement, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(DoubleLiteral doubleLiteral,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.DoubleLiteral, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(EmptyStatement statement,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.EmptyStatement, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(FieldDeclaration enumConstant,
MethodScope scope)
- Overrides:
visit
in class ASTVisitor
visit
public boolean visit(EqualExpression equalExpression,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.EqualExpression, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(ExplicitConstructorCall explicitConstructor,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.ExplicitConstructorCall, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(FalseLiteral falseLiteral,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.FalseLiteral, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(FieldReference fieldReference,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.FieldReference, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(FloatLiteral floatLiteral,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.FloatLiteral, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(ForeachStatement forStatement,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
visit
public boolean visit(ForStatement forStatement,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.ForStatement, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(IfStatement ifStatement,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.IfStatement, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(Initializer initializer,
MethodScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.Initializer, org.eclipse.jdt.internal.compiler.lookup.MethodScope)
visit
public boolean visit(InstanceOfExpression instanceOfExpression,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.InstanceOfExpression, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(IntLiteral intLiteral,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.IntLiteral, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(LabeledStatement labeledStatement,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.LabeledStatement, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(LocalDeclaration localDeclaration,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.LocalDeclaration, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(LongLiteral longLiteral,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.LongLiteral, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(MarkerAnnotation annotation,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
visit
public boolean visit(MarkerAnnotation annotation,
ClassScope scope)
visit
public boolean visit(MemberValuePair pair,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
visit
public boolean visit(MessageSend messageSend,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.MessageSend, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(MethodDeclaration methodDeclaration,
ClassScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.MethodDeclaration, org.eclipse.jdt.internal.compiler.lookup.ClassScope)
visit
public boolean visit(NormalAnnotation annotation,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
visit
public boolean visit(NullLiteral nullLiteral,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.NullLiteral, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(OR_OR_Expression or_or_Expression,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.OR_OR_Expression, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(ParameterizedQualifiedTypeReference parameterizedQualifiedTypeReference,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
visit
public boolean visit(ParameterizedQualifiedTypeReference parameterizedQualifiedTypeReference,
ClassScope scope)
- Overrides:
visit
in class ASTVisitor
visit
public boolean visit(ParameterizedSingleTypeReference parameterizedSingleTypeReference,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
visit
public boolean visit(ParameterizedSingleTypeReference parameterizedSingleTypeReference,
ClassScope scope)
- Overrides:
visit
in class ASTVisitor
visit
public boolean visit(PostfixExpression postfixExpression,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.PostfixExpression, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(PrefixExpression prefixExpression,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.PrefixExpression, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(QualifiedAllocationExpression qualifiedAllocationExpression,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.QualifiedAllocationExpression, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(QualifiedNameReference qualifiedNameReference,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.QualifiedNameReference, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(QualifiedSuperReference qualifiedSuperReference,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.QualifiedSuperReference, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(QualifiedThisReference qualifiedThisReference,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.QualifiedThisReference, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(QualifiedTypeReference qualifiedTypeReference,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.QualifiedTypeReference, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(QualifiedTypeReference qualifiedTypeReference,
ClassScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.QualifiedTypeReference, org.eclipse.jdt.internal.compiler.lookup.ClassScope)
visit
public boolean visit(ReturnStatement returnStatement,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.ReturnStatement, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(SingleMemberAnnotation annotation,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
visit
public boolean visit(SingleNameReference singleNameReference,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.SingleNameReference, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(SingleTypeReference singleTypeReference,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.SingleTypeReference, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(SingleTypeReference singleTypeReference,
ClassScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.SingleTypeReference, org.eclipse.jdt.internal.compiler.lookup.ClassScope)
visit
public boolean visit(StringLiteral stringLiteral,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.StringLiteral, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(StringLiteralConcatenation stringLiteral,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.NullLiteral, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(SuperReference superReference,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.SuperReference, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(SwitchStatement switchStatement,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.SwitchStatement, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(SynchronizedStatement synchronizedStatement,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.SynchronizedStatement, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(ThisReference thisReference,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.ThisReference, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(ThrowStatement throwStatement,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.ThrowStatement, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(TrueLiteral trueLiteral,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.TrueLiteral, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(TryStatement tryStatement,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.TryStatement, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(TypeDeclaration localTypeDeclaration,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.TypeDeclaration, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(TypeDeclaration memberTypeDeclaration,
ClassScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.TypeDeclaration, org.eclipse.jdt.internal.compiler.lookup.ClassScope)
visit
public boolean visit(TypeDeclaration typeDeclaration,
CompilationUnitScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.TypeDeclaration, org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope)
visit
public boolean visit(TypeParameter typeParameter,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
visit
public boolean visit(TypeParameter typeParameter,
ClassScope scope)
- Overrides:
visit
in class ASTVisitor
visit
public boolean visit(UnaryExpression unaryExpression,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.UnaryExpression, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(WhileStatement whileStatement,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
- See Also:
ASTVisitor.visit(org.eclipse.jdt.internal.compiler.ast.WhileStatement, org.eclipse.jdt.internal.compiler.lookup.BlockScope)
visit
public boolean visit(Wildcard wildcard,
BlockScope scope)
- Overrides:
visit
in class ASTVisitor
visit
public boolean visit(Wildcard wildcard,
ClassScope scope)
- Overrides:
visit
in class ASTVisitor