|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jdt.internal.compiler.ASTVisitor
org.jmlspecs.jml4.rac.DefaultRacAstVisitor
public class DefaultRacAstVisitor
A concrete visitor class for the interface RacAstVisitor
.
This class provides a default implementation for each visitor
method defined in the RacAstVisitor
interface. The default
implementation does nothing and is supposed to be overriden by
subclasses.
Constructor Summary | |
---|---|
DefaultRacAstVisitor()
|
Method Summary | |
---|---|
void |
endVisit(AllocationExpression allocationExpression,
BlockScope scope)
|
void |
endVisit(AND_AND_Expression and_and_Expression,
BlockScope scope)
|
void |
endVisit(AnnotationMethodDeclaration annotationTypeDeclaration,
ClassScope classScope)
|
void |
endVisit(Argument argument,
BlockScope scope)
|
void |
endVisit(Argument argument,
ClassScope scope)
|
void |
endVisit(ArrayAllocationExpression arrayAllocationExpression,
BlockScope scope)
|
void |
endVisit(ArrayInitializer arrayInitializer,
BlockScope scope)
|
void |
endVisit(ArrayQualifiedTypeReference arrayQualifiedTypeReference,
BlockScope scope)
|
void |
endVisit(ArrayQualifiedTypeReference arrayQualifiedTypeReference,
ClassScope scope)
|
void |
endVisit(ArrayReference arrayReference,
BlockScope scope)
|
void |
endVisit(ArrayTypeReference arrayTypeReference,
BlockScope scope)
|
void |
endVisit(ArrayTypeReference arrayTypeReference,
ClassScope scope)
|
void |
endVisit(AssertStatement assertStatement,
BlockScope scope)
|
void |
endVisit(Assignment assignment,
BlockScope scope)
|
void |
endVisit(BinaryExpression binaryExpression,
BlockScope scope)
|
void |
endVisit(Block block,
BlockScope scope)
|
void |
endVisit(BreakStatement breakStatement,
BlockScope scope)
|
void |
endVisit(CaseStatement caseStatement,
BlockScope scope)
|
void |
endVisit(CastExpression castExpression,
BlockScope scope)
|
void |
endVisit(CharLiteral charLiteral,
BlockScope scope)
|
void |
endVisit(ClassLiteralAccess classLiteral,
BlockScope scope)
|
void |
endVisit(Clinit clinit,
ClassScope scope)
|
void |
endVisit(CombinedBinaryExpression combinedBinaryExpression,
BlockScope scope)
|
void |
endVisit(CompilationUnitDeclaration compilationUnitDeclaration,
CompilationUnitScope scope)
|
void |
endVisit(CompoundAssignment compoundAssignment,
BlockScope scope)
|
void |
endVisit(ConditionalExpression conditionalExpression,
BlockScope scope)
|
void |
endVisit(ConstructorDeclaration constructorDeclaration,
ClassScope scope)
|
void |
endVisit(ContinueStatement continueStatement,
BlockScope scope)
|
void |
endVisit(DoStatement doStatement,
BlockScope scope)
|
void |
endVisit(DoubleLiteral doubleLiteral,
BlockScope scope)
|
void |
endVisit(EmptyStatement emptyStatement,
BlockScope scope)
|
void |
endVisit(EqualExpression equalExpression,
BlockScope scope)
|
void |
endVisit(ExplicitConstructorCall explicitConstructor,
BlockScope scope)
|
void |
endVisit(ExtendedStringLiteral extendedStringLiteral,
BlockScope scope)
|
void |
endVisit(FalseLiteral falseLiteral,
BlockScope scope)
|
void |
endVisit(FieldDeclaration fieldDeclaration,
MethodScope scope)
|
void |
endVisit(FieldReference fieldReference,
BlockScope scope)
|
void |
endVisit(FieldReference fieldReference,
ClassScope scope)
|
void |
endVisit(FloatLiteral floatLiteral,
BlockScope scope)
|
void |
endVisit(ForeachStatement forStatement,
BlockScope scope)
|
void |
endVisit(ForStatement forStatement,
BlockScope scope)
|
void |
endVisit(IfStatement ifStatement,
BlockScope scope)
|
void |
endVisit(ImportReference importRef,
CompilationUnitScope scope)
|
void |
endVisit(Initializer initializer,
MethodScope scope)
|
void |
endVisit(InstanceOfExpression instanceOfExpression,
BlockScope scope)
|
void |
endVisit(IntLiteral intLiteral,
BlockScope scope)
|
void |
endVisit(JmlAllocationExpression allocationExpression,
BlockScope scope)
|
void |
endVisit(JmlArrayQualifiedTypeReference arrayQualifiedTypeReference,
BlockScope scope)
|
void |
endVisit(JmlArrayQualifiedTypeReference arrayQualifiedTypeReference,
ClassScope scope)
|
void |
endVisit(JmlArrayReference arrayReference,
BlockScope scope)
|
void |
endVisit(JmlArrayTypeReference arrayTypeReference,
BlockScope scope)
|
void |
endVisit(JmlArrayTypeReference arrayTypeReference,
ClassScope scope)
|
void |
endVisit(JmlAssertOrAssumeStatement assertOrAssumeStatement,
BlockScope scope)
|
void |
endVisit(JmlAssertStatement assertStatement,
BlockScope scope)
|
void |
endVisit(JmlAssignableClause jmlAssignableClause,
BlockScope scope)
|
void |
endVisit(JmlAssignment assignment,
BlockScope scope)
|
void |
endVisit(JmlAssumeStatement assertStatement,
BlockScope scope)
|
void |
endVisit(JmlCastExpression castExpression,
BlockScope scope)
|
void |
endVisit(JmlCastExpressionWithoutType castExpression,
BlockScope scope)
|
void |
endVisit(JmlClause jmlClause,
BlockScope scope)
|
void |
endVisit(JmlClinit clinit,
ClassScope scope)
|
void |
endVisit(JmlCompilationUnitDeclaration compilationUnitDeclaration,
CompilationUnitScope scope)
|
void |
endVisit(JmlConditionalExpression conditionalExpression,
BlockScope scope)
|
void |
endVisit(JmlConstraintClause jmlConstraintClause,
BlockScope scope)
|
void |
endVisit(JmlConstructorDeclaration constructorDeclaration,
ClassScope scope)
|
void |
endVisit(JmlDoStatement doStatement,
BlockScope scope)
|
void |
endVisit(JmlEnsuresClause ensuresClause,
BlockScope scope)
|
void |
endVisit(JmlFieldDeclaration fieldDeclaration,
MethodScope scope)
|
void |
endVisit(JmlFieldReference fieldReference,
BlockScope scope)
|
void |
endVisit(JmlFieldReference fieldReference,
ClassScope scope)
|
void |
endVisit(JmlForStatement forStatement,
BlockScope scope)
|
void |
endVisit(JmlInitiallyClause jmlInitiallyClause,
CompilationUnitScope scope)
|
void |
endVisit(JmlInvariantForType jmlInvariantForType,
CompilationUnitScope scope)
|
void |
endVisit(JmlLocalDeclaration localDeclaration,
BlockScope scope)
|
void |
endVisit(JmlLoopAnnotations jmlLoopAnnotations,
BlockScope scope)
|
void |
endVisit(JmlLoopInvariant jmlLoopInvariant,
BlockScope scope)
|
void |
endVisit(JmlLoopVariant jmlLoopVariant,
BlockScope scope)
|
void |
endVisit(JmlMessageSend messageSend,
BlockScope scope)
|
void |
endVisit(JmlMethodDeclaration methodDeclaration,
ClassScope scope)
|
void |
endVisit(JmlMethodSpecification jmlMethodSpecification,
ClassScope classScope)
|
void |
endVisit(JmlOldExpression jmlOldExpression,
BlockScope scope)
|
void |
endVisit(JmlParameterizedQualifiedTypeReference parameterizedQualifiedTypeReference,
BlockScope scope)
|
void |
endVisit(JmlParameterizedQualifiedTypeReference parameterizedQualifiedTypeReference,
ClassScope scope)
|
void |
endVisit(JmlParameterizedSingleTypeReference parameterizedSingleTypeReference,
BlockScope scope)
|
void |
endVisit(JmlParameterizedSingleTypeReference parameterizedSingleTypeReference,
ClassScope scope)
|
void |
endVisit(JmlQualifiedNameReference qualifiedNameReference,
BlockScope scope)
|
void |
endVisit(JmlQualifiedNameReference qualifiedNameReference,
ClassScope scope)
|
void |
endVisit(JmlQualifiedTypeReference qualifiedTypeReference,
BlockScope scope)
|
void |
endVisit(JmlQualifiedTypeReference qualifiedTypeReference,
ClassScope scope)
|
void |
endVisit(JmlQuantifiedExpression jmlQuantifiedExpression,
BlockScope blockScope)
|
void |
endVisit(JmlRepresentsClause representsClause,
CompilationUnitScope scope)
|
void |
endVisit(JmlRequiresClause requiresClause,
BlockScope scope)
|
void |
endVisit(JmlResultReference resultReference,
BlockScope scope)
|
void |
endVisit(JmlReturnStatement returnStatement,
BlockScope scope)
|
boolean |
endVisit(JmlSetStatement jmlSetStatement,
BlockScope scope)
|
void |
endVisit(JmlSignalsClause jmlSignalsClause,
BlockScope scope)
|
void |
endVisit(JmlSignalsOnlyClause jmlSignalsOnlyClause,
BlockScope scope)
|
void |
endVisit(JmlSingleNameReference singleNameReference,
BlockScope scope)
|
void |
endVisit(JmlSingleNameReference singleNameReference,
ClassScope scope)
|
void |
endVisit(JmlSingleTypeReference singleTypeReference,
BlockScope scope)
|
void |
endVisit(JmlSingleTypeReference singleTypeReference,
ClassScope scope)
|
void |
endVisit(JmlTypeBodyDeclaration jmlTypeDecle,
BlockScope scope)
|
void |
endVisit(JmlTypeDeclaration typeDecle,
CompilationUnitScope scope)
|
void |
endVisit(JmlUnaryExpression unaryExpression,
BlockScope scope)
|
void |
endVisit(JmlWhileStatement whileStatement,
BlockScope scope)
|
void |
endVisit(JmlWildcard wildcard,
BlockScope scope)
|
void |
endVisit(JmlWildcard wildcard,
ClassScope scope)
|
void |
endVisit(LabeledStatement labeledStatement,
BlockScope scope)
|
void |
endVisit(LocalDeclaration localDeclaration,
BlockScope scope)
|
void |
endVisit(LongLiteral longLiteral,
BlockScope scope)
|
void |
endVisit(MarkerAnnotation annotation,
BlockScope scope)
|
void |
endVisit(MemberValuePair pair,
BlockScope scope)
|
void |
endVisit(MessageSend messageSend,
BlockScope scope)
|
void |
endVisit(MethodDeclaration methodDeclaration,
ClassScope scope)
|
void |
endVisit(NormalAnnotation annotation,
BlockScope scope)
|
void |
endVisit(NullLiteral nullLiteral,
BlockScope scope)
|
void |
endVisit(OR_OR_Expression or_or_Expression,
BlockScope scope)
|
void |
endVisit(ParameterizedQualifiedTypeReference parameterizedQualifiedTypeReference,
BlockScope scope)
|
void |
endVisit(ParameterizedQualifiedTypeReference parameterizedQualifiedTypeReference,
ClassScope scope)
|
void |
endVisit(ParameterizedSingleTypeReference parameterizedSingleTypeReference,
BlockScope scope)
|
void |
endVisit(ParameterizedSingleTypeReference parameterizedSingleTypeReference,
ClassScope scope)
|
void |
endVisit(PostfixExpression postfixExpression,
BlockScope scope)
|
void |
endVisit(PrefixExpression prefixExpression,
BlockScope scope)
|
void |
endVisit(QualifiedAllocationExpression qualifiedAllocationExpression,
BlockScope scope)
|
void |
endVisit(QualifiedNameReference qualifiedNameReference,
BlockScope scope)
|
void |
endVisit(QualifiedNameReference qualifiedNameReference,
ClassScope scope)
|
void |
endVisit(QualifiedSuperReference qualifiedSuperReference,
BlockScope scope)
|
void |
endVisit(QualifiedSuperReference qualifiedSuperReference,
ClassScope scope)
|
void |
endVisit(QualifiedThisReference qualifiedThisReference,
BlockScope scope)
|
void |
endVisit(QualifiedThisReference qualifiedThisReference,
ClassScope scope)
|
void |
endVisit(QualifiedTypeReference qualifiedTypeReference,
BlockScope scope)
|
void |
endVisit(QualifiedTypeReference qualifiedTypeReference,
ClassScope scope)
|
void |
endVisit(ReturnStatement returnStatement,
BlockScope scope)
|
void |
endVisit(SingleMemberAnnotation annotation,
BlockScope scope)
|
void |
endVisit(SingleNameReference singleNameReference,
BlockScope scope)
|
void |
endVisit(SingleNameReference singleNameReference,
ClassScope scope)
|
void |
endVisit(SingleTypeReference singleTypeReference,
BlockScope scope)
|
void |
endVisit(SingleTypeReference singleTypeReference,
ClassScope scope)
|
void |
endVisit(StringLiteral stringLiteral,
BlockScope scope)
|
void |
endVisit(StringLiteralConcatenation literal,
BlockScope scope)
|
void |
endVisit(SuperReference superReference,
BlockScope scope)
|
void |
endVisit(SwitchStatement switchStatement,
BlockScope scope)
|
void |
endVisit(SynchronizedStatement synchronizedStatement,
BlockScope scope)
|
void |
endVisit(ThisReference thisReference,
BlockScope scope)
|
void |
endVisit(ThisReference thisReference,
ClassScope scope)
|
void |
endVisit(ThrowStatement throwStatement,
BlockScope scope)
|
void |
endVisit(TrueLiteral trueLiteral,
BlockScope scope)
|
void |
endVisit(TryStatement tryStatement,
BlockScope scope)
|
void |
endVisit(TypeDeclaration localTypeDeclaration,
BlockScope scope)
|
void |
endVisit(TypeDeclaration memberTypeDeclaration,
ClassScope scope)
|
void |
endVisit(TypeDeclaration typeDeclaration,
CompilationUnitScope scope)
|
void |
endVisit(TypeParameter typeParameter,
BlockScope scope)
|
void |
endVisit(TypeParameter typeParameter,
ClassScope scope)
|
void |
endVisit(UnaryExpression unaryExpression,
BlockScope scope)
|
void |
endVisit(WhileStatement whileStatement,
BlockScope scope)
|
void |
endVisit(Wildcard wildcard,
BlockScope scope)
|
void |
endVisit(Wildcard wildcard,
ClassScope scope)
|
boolean |
visit(AllocationExpression allocationExpression,
BlockScope scope)
Used to allocate new objects. |
boolean |
visit(AND_AND_Expression and_and_Expression,
BlockScope scope)
Expressions separated by the 'AND' operator. |
boolean |
visit(AnnotationMethodDeclaration annotationTypeDeclaration,
ClassScope classScope)
|
boolean |
visit(Argument argument,
BlockScope scope)
Examples include: |
boolean |
visit(Argument argument,
ClassScope scope)
|
boolean |
visit(ArrayAllocationExpression arrayAllocationExpression,
BlockScope scope)
An allocation expression that contains square brackets to create an array. |
boolean |
visit(ArrayInitializer arrayInitializer,
BlockScope scope)
Expression that contains elements with different initial values, at the end of the allocation expression. |
boolean |
visit(ArrayQualifiedTypeReference arrayQualifiedTypeReference,
BlockScope scope)
An array type which has a fully qualified name/type associated with it. |
boolean |
visit(ArrayQualifiedTypeReference arrayQualifiedTypeReference,
ClassScope scope)
|
boolean |
visit(ArrayReference arrayReference,
BlockScope scope)
Referencing a particular array location. |
boolean |
visit(ArrayTypeReference arrayTypeReference,
BlockScope scope)
Referencing an array type. |
boolean |
visit(ArrayTypeReference arrayTypeReference,
ClassScope scope)
|
boolean |
visit(AssertStatement assertStatement,
BlockScope scope)
Statement that is used to test an assumption is true or false. |
boolean |
visit(Assignment assignment,
BlockScope scope)
Statement that assigns a value to another variable. |
boolean |
visit(BinaryExpression binaryExpression,
BlockScope scope)
Expressions containing left and right expressions combined by a binary operator. |
boolean |
visit(Block block,
BlockScope scope)
Sequence of statements within braces. |
boolean |
visit(BreakStatement breakStatement,
BlockScope scope)
Used to transfer control out of an enclosing statement. |
boolean |
visit(CaseStatement caseStatement,
BlockScope scope)
Examples include: |
boolean |
visit(CastExpression castExpression,
BlockScope scope)
Expression that converts one type to the other type. |
boolean |
visit(CharLiteral charLiteral,
BlockScope scope)
Is a representation of a fixed value of type char. |
boolean |
visit(ClassLiteralAccess classLiteral,
BlockScope scope)
An expression consisting of the name of a class, interface, array, or primitive type followed by `.' and the token class. |
boolean |
visit(Clinit clinit,
ClassScope scope)
Class and interface initialization method that are called implicitly by the Java Virtual Machine. |
boolean |
visit(CombinedBinaryExpression combinedBinaryExpression,
BlockScope scope)
|
boolean |
visit(CompilationUnitDeclaration compilationUnitDeclaration,
CompilationUnitScope scope)
|
boolean |
visit(CompoundAssignment compoundAssignment,
BlockScope scope)
Assignment statements which compute and assign at the same time. |
boolean |
visit(ConditionalExpression conditionalExpression,
BlockScope scope)
A compound expression that contains a condition, an expression to be evaluated if the condition evaluates to true, and an expression to be evaluated if the condition has the value false. |
boolean |
visit(ConstructorDeclaration constructorDeclaration,
ClassScope scope)
A method declaration which is a constructor. |
boolean |
visit(ContinueStatement continueStatement,
BlockScope scope)
Passes control to the loop-continuation point of an iteration statement. |
boolean |
visit(DoStatement doStatement,
BlockScope scope)
Iterative statement that iterates atleast once. |
boolean |
visit(DoubleLiteral doubleLiteral,
BlockScope scope)
Literal signifying a double type. |
boolean |
visit(EmptyStatement emptyStatement,
BlockScope scope)
Statement that performs no action and obviously has no effect. |
boolean |
visit(EqualExpression equalExpression,
BlockScope scope)
Expression that checks for equality. |
boolean |
visit(ExplicitConstructorCall explicitConstructor,
BlockScope scope)
A constructor call that calls a parameterized constructor instead of the default constructor. |
boolean |
visit(ExtendedStringLiteral extendedStringLiteral,
BlockScope scope)
Occurs when two or more string literals are concatenated. |
boolean |
visit(FalseLiteral falseLiteral,
BlockScope scope)
Expression that contains a false literal. |
boolean |
visit(FieldDeclaration fieldDeclaration,
MethodScope scope)
Examples include: |
boolean |
visit(FieldReference fieldReference,
BlockScope scope)
Referencing a field of a class. |
boolean |
visit(FieldReference fieldReference,
ClassScope scope)
|
boolean |
visit(FloatLiteral floatLiteral,
BlockScope scope)
Literal signifying a float type. |
boolean |
visit(ForeachStatement forStatement,
BlockScope scope)
Enhanced version of the for loop to make iteration over arrays and other collections more convenient. |
boolean |
visit(ForStatement forStatement,
BlockScope scope)
Provides a compact-form to iterate over a range of values. |
boolean |
visit(IfStatement ifStatement,
BlockScope scope)
Control-flow statement that executes a portion of code only if condition is evaluated to true. |
boolean |
visit(ImportReference importRef,
CompilationUnitScope scope)
Statement used to reference classes and interfaces declared in other packages. |
boolean |
visit(Initializer initializer,
MethodScope scope)
A normal block of code used to initialize fields. |
boolean |
visit(InstanceOfExpression instanceOfExpression,
BlockScope scope)
Expression containing the instanceof operator. |
boolean |
visit(IntLiteral intLiteral,
BlockScope scope)
Literal signifying integer type. |
boolean |
visit(JmlAllocationExpression allocationExpression,
BlockScope scope)
|
boolean |
visit(JmlArrayQualifiedTypeReference arrayQualifiedTypeReference,
BlockScope scope)
|
boolean |
visit(JmlArrayQualifiedTypeReference arrayQualifiedTypeReference,
ClassScope scope)
|
boolean |
visit(JmlArrayReference arrayReference,
BlockScope scope)
|
boolean |
visit(JmlArrayTypeReference arrayTypeReference,
BlockScope scope)
|
boolean |
visit(JmlArrayTypeReference arrayTypeReference,
ClassScope scope)
|
boolean |
visit(JmlAssertOrAssumeStatement assertOrAssumeStatement,
BlockScope scope)
|
boolean |
visit(JmlAssertStatement assertStatement,
BlockScope scope)
Inside an annotation, an assert statement is JML assert statement. |
boolean |
visit(JmlAssignableClause jmlAssignableClause,
BlockScope scope)
Gives a frame axiom for a specification. |
boolean |
visit(JmlAssignment assignment,
BlockScope scope)
|
boolean |
visit(JmlAssumeStatement assertStatement,
BlockScope scope)
Statements which are assumed to be true (in static analysis tools). |
boolean |
visit(JmlCastExpression castExpression,
BlockScope scope)
|
boolean |
visit(JmlCastExpressionWithoutType castExpression,
BlockScope scope)
|
boolean |
visit(JmlClause jmlClause,
BlockScope scope)
|
boolean |
visit(JmlClinit clinit,
ClassScope scope)
|
boolean |
visit(JmlCompilationUnitDeclaration compilationUnitDeclaration,
CompilationUnitScope scope)
|
boolean |
visit(JmlConditionalExpression conditionalExpression,
BlockScope scope)
|
boolean |
visit(JmlConstraintClause jmlConstraintClause,
BlockScope scope)
Are relationships that should hold for the combination of each visible state and any visible state that occurs later in the programÕs execution. |
boolean |
visit(JmlConstructorDeclaration constructorDeclaration,
ClassScope scope)
|
boolean |
visit(JmlDoStatement doStatement,
BlockScope scope)
|
boolean |
visit(JmlEnsuresClause ensuresClause,
BlockScope scope)
An ensures clause specifies a normal postcondition, i.e., a property that is guaranteed to hold at the end of the method (or constructor) invocation in the case that this method (or constructor) invocation returns without throwing an exception. |
boolean |
visit(JmlFieldDeclaration fieldDeclaration,
MethodScope scope)
|
boolean |
visit(JmlFieldReference fieldReference,
BlockScope scope)
|
boolean |
visit(JmlFieldReference fieldReference,
ClassScope scope)
|
boolean |
visit(JmlForStatement forStatement,
BlockScope scope)
|
boolean |
visit(JmlInitiallyClause jmlInitiallyClause,
CompilationUnitScope scope)
Is used to specify the initial state of model fields. |
boolean |
visit(JmlInvariantForType jmlInvariantForType,
CompilationUnitScope scope)
Properties that have to hold in all visible states. |
boolean |
visit(JmlLocalDeclaration localDeclaration,
BlockScope scope)
|
boolean |
visit(JmlLoopAnnotations jmlLoopAnnotations,
BlockScope scope)
|
boolean |
visit(JmlLoopInvariant jmlLoopInvariant,
BlockScope scope)
Is used to help prove partial correctness of a loop statement. |
boolean |
visit(JmlLoopVariant jmlLoopVariant,
BlockScope scope)
Is used to help prove termination of a loop statement. |
boolean |
visit(JmlMessageSend messageSend,
BlockScope scope)
|
boolean |
visit(JmlMethodDeclaration methodDeclaration,
ClassScope scope)
|
boolean |
visit(JmlMethodSpecification jmlMethodSpecification,
ClassScope classScope)
|
boolean |
visit(JmlOldExpression jmlOldExpression,
BlockScope scope)
Refers to the value that the expression had in the pre-state of a method. |
boolean |
visit(JmlParameterizedQualifiedTypeReference parameterizedQualifiedTypeReference,
BlockScope scope)
|
boolean |
visit(JmlParameterizedQualifiedTypeReference parameterizedQualifiedTypeReference,
ClassScope scope)
|
boolean |
visit(JmlParameterizedSingleTypeReference parameterizedSingleTypeReference,
BlockScope scope)
|
boolean |
visit(JmlParameterizedSingleTypeReference parameterizedSingleTypeReference,
ClassScope scope)
|
boolean |
visit(JmlQualifiedNameReference qualifiedNameReference,
BlockScope scope)
|
boolean |
visit(JmlQualifiedNameReference qualifiedNameReference,
ClassScope scope)
|
boolean |
visit(JmlQualifiedTypeReference qualifiedTypeReference,
BlockScope scope)
|
boolean |
visit(JmlQualifiedTypeReference qualifiedTypeReference,
ClassScope scope)
|
boolean |
visit(JmlQuantifiedExpression jmlQuantifiedExpression,
BlockScope blockScope)
|
boolean |
visit(JmlRepresentsClause representsClause,
CompilationUnitScope scope)
The first form of represents clauses (with <- or =) is called a functional abstraction. |
boolean |
visit(JmlRequiresClause requiresClause,
BlockScope scope)
Specifies a precondition of method or constructor. |
boolean |
visit(JmlResultReference resultReference,
BlockScope scope)
The primary \result can only be used in non-void method. |
boolean |
visit(JmlReturnStatement returnStatement,
BlockScope scope)
|
boolean |
visit(JmlSetStatement jmlSetStatement,
BlockScope scope)
Is the equivalent of an assignment statement but is within an annotation. |
boolean |
visit(JmlSignalsClause jmlSignalsClause,
BlockScope scope)
Specifies the exceptional or abnormal postcondition, i.e., the property that is guaranteed to hold at the end of a method (or constructor) invocation when this method (or constructor) invocation terminates abruptly by throwing a given exception. |
boolean |
visit(JmlSignalsOnlyClause jmlSignalsOnlyClause,
BlockScope scope)
Is an abbreviation for a signals-clause that specifies what exceptions may be thrown by a method, and thus, implicitly, what exceptions may not be thrown. |
boolean |
visit(JmlSingleNameReference singleNameReference,
BlockScope scope)
|
boolean |
visit(JmlSingleNameReference singleNameReference,
ClassScope scope)
|
boolean |
visit(JmlSingleTypeReference singleTypeReference,
BlockScope scope)
|
boolean |
visit(JmlSingleTypeReference singleTypeReference,
ClassScope scope)
|
boolean |
visit(JmlTypeBodyDeclaration jmlTypeDecle,
BlockScope scope)
|
boolean |
visit(JmlTypeDeclaration typeDecle,
CompilationUnitScope scope)
|
boolean |
visit(JmlUnaryExpression unaryExpression,
BlockScope scope)
|
boolean |
visit(JmlWhileStatement whileStatement,
BlockScope scope)
|
boolean |
visit(JmlWildcard wildcard,
BlockScope scope)
|
boolean |
visit(JmlWildcard wildcard,
ClassScope scope)
|
boolean |
visit(LabeledStatement labeledStatement,
BlockScope scope)
A statement which has a label followed by statements. |
boolean |
visit(LocalDeclaration localDeclaration,
BlockScope scope)
Declaration within a method body. |
boolean |
visit(LongLiteral longLiteral,
BlockScope scope)
Literal that are of long type. |
boolean |
visit(MarkerAnnotation annotation,
BlockScope scope)
|
boolean |
visit(MemberValuePair pair,
BlockScope scope)
|
boolean |
visit(MessageSend messageSend,
BlockScope scope)
Calling a method. |
boolean |
visit(MethodDeclaration methodDeclaration,
ClassScope scope)
Declaration of a method. |
boolean |
visit(NormalAnnotation annotation,
BlockScope scope)
|
boolean |
visit(NullLiteral nullLiteral,
BlockScope scope)
Expression that contains the null keyword. |
boolean |
visit(OR_OR_Expression or_or_Expression,
BlockScope scope)
Expressions that contain an 'or' short-circuit operator. |
boolean |
visit(ParameterizedQualifiedTypeReference parameterizedQualifiedTypeReference,
BlockScope scope)
Specifying a particular type (fully qualified name) at compile time to allow a specific, single object. |
boolean |
visit(ParameterizedQualifiedTypeReference parameterizedQualifiedTypeReference,
ClassScope scope)
|
boolean |
visit(ParameterizedSingleTypeReference parameterizedSingleTypeReference,
BlockScope scope)
Specifying a particular type at compile time to allow a specific, single object. |
boolean |
visit(ParameterizedSingleTypeReference parameterizedSingleTypeReference,
ClassScope scope)
|
boolean |
visit(PostfixExpression postfixExpression,
BlockScope scope)
Expressions involving prefix operators. |
boolean |
visit(PrefixExpression prefixExpression,
BlockScope scope)
Expressions involving prefix operators. |
boolean |
visit(QualifiedAllocationExpression qualifiedAllocationExpression,
BlockScope scope)
Allocation of an anonymous Type. |
boolean |
visit(QualifiedNameReference qualifiedNameReference,
BlockScope scope)
Referencing a name using full qualified name. |
boolean |
visit(QualifiedNameReference qualifiedNameReference,
ClassScope scope)
|
boolean |
visit(QualifiedSuperReference qualifiedSuperReference,
BlockScope scope)
Is used in a subclass to access overridden/inherited methods using fully qualified name. |
boolean |
visit(QualifiedSuperReference qualifiedSuperReference,
ClassScope scope)
|
boolean |
visit(QualifiedThisReference qualifiedThisReference,
BlockScope scope)
Referencing to the current object using fully qualified name Ñ the object whose method or constructor is being called. |
boolean |
visit(QualifiedThisReference qualifiedThisReference,
ClassScope scope)
|
boolean |
visit(QualifiedTypeReference qualifiedTypeReference,
BlockScope scope)
Referencing a particular type with fully qualified name. |
boolean |
visit(QualifiedTypeReference qualifiedTypeReference,
ClassScope scope)
|
boolean |
visit(ReturnStatement returnStatement,
BlockScope scope)
Statement that returns a value from a method. |
boolean |
visit(SingleMemberAnnotation annotation,
BlockScope scope)
|
boolean |
visit(SingleNameReference singleNameReference,
BlockScope scope)
|
boolean |
visit(SingleNameReference singleNameReference,
ClassScope scope)
|
boolean |
visit(SingleTypeReference singleTypeReference,
BlockScope scope)
Referencing a type. |
boolean |
visit(SingleTypeReference singleTypeReference,
ClassScope scope)
|
boolean |
visit(StringLiteral stringLiteral,
BlockScope scope)
Anything enclosed within double-quotes. |
boolean |
visit(StringLiteralConcatenation literal,
BlockScope scope)
|
boolean |
visit(SuperReference superReference,
BlockScope scope)
Used in the definitions of instance methods. |
boolean |
visit(SwitchStatement switchStatement,
BlockScope scope)
A statement involving switch-case block. |
boolean |
visit(SynchronizedStatement synchronizedStatement,
BlockScope scope)
Used to acquire a mutual-exclusion lock on behalf of the executing thread, executes a block, then releases the lock. |
boolean |
visit(ThisReference thisReference,
BlockScope scope)
A reference to the current object Ñ the object whose method or constructor is being called. |
boolean |
visit(ThisReference thisReference,
ClassScope scope)
|
boolean |
visit(ThrowStatement throwStatement,
BlockScope scope)
Used to throw an exception. |
boolean |
visit(TrueLiteral trueLiteral,
BlockScope scope)
Expression that contains the true keyword. |
boolean |
visit(TryStatement tryStatement,
BlockScope scope)
Statement denoting a try-catch block. |
boolean |
visit(TypeDeclaration localTypeDeclaration,
BlockScope scope)
Declaring an inner type within a method body. |
boolean |
visit(TypeDeclaration memberTypeDeclaration,
ClassScope scope)
Declaring an inner type within a class/interface. |
boolean |
visit(TypeDeclaration typeDeclaration,
CompilationUnitScope scope)
|
boolean |
visit(TypeParameter typeParameter,
BlockScope scope)
|
boolean |
visit(TypeParameter typeParameter,
ClassScope scope)
|
boolean |
visit(UnaryExpression unaryExpression,
BlockScope scope)
Expressions having unary operators. |
boolean |
visit(WhileStatement whileStatement,
BlockScope scope)
A loop that is continuously iterated while the a particular condition is true. |
boolean |
visit(Wildcard wildcard,
BlockScope scope)
|
boolean |
visit(Wildcard wildcard,
ClassScope scope)
|
Methods inherited from class org.eclipse.jdt.internal.compiler.ASTVisitor |
---|
acceptProblem, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, 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 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jmlspecs.jml4.rac.JmlAstVisitor |
---|
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 |
Constructor Detail |
---|
public DefaultRacAstVisitor()
Method Detail |
---|
public boolean visit(JmlArrayQualifiedTypeReference arrayQualifiedTypeReference, BlockScope scope)
visit
in interface JmlAstVisitor
visit
in class ASTVisitor
ArrayQualifiedTypeReference
public void endVisit(JmlArrayQualifiedTypeReference arrayQualifiedTypeReference, BlockScope scope)
endVisit
in interface JmlAstVisitor
endVisit
in class ASTVisitor
JmlArrayQualifiedTypeReference
public boolean visit(JmlArrayQualifiedTypeReference arrayQualifiedTypeReference, ClassScope scope)
visit
in interface JmlAstVisitor
visit
in class ASTVisitor
JmlArrayQualifiedTypeReference
public void endVisit(JmlArrayQualifiedTypeReference arrayQualifiedTypeReference, ClassScope scope)
endVisit
in interface JmlAstVisitor
endVisit
in class ASTVisitor
JmlArrayQualifiedTypeReference
public boolean visit(JmlArrayReference arrayReference, BlockScope scope)
visit
in interface JmlAstVisitor
visit
in class ASTVisitor
ArrayReference
public void endVisit(JmlArrayReference arrayReference, BlockScope scope)
endVisit
in interface JmlAstVisitor
endVisit
in class ASTVisitor
JmlArrayReference
public boolean visit(JmlArrayTypeReference arrayTypeReference, BlockScope scope)
visit
in interface JmlAstVisitor
visit
in class ASTVisitor
ArrayTypeReference
public void endVisit(JmlArrayTypeReference arrayTypeReference, BlockScope scope)
endVisit
in interface JmlAstVisitor
endVisit
in class ASTVisitor
JmlArrayTypeReference
public boolean visit(JmlArrayTypeReference arrayTypeReference, ClassScope scope)
visit
in interface JmlAstVisitor
visit
in class ASTVisitor
JmlArrayTypeReference
public void endVisit(JmlArrayTypeReference arrayTypeReference, ClassScope scope)
endVisit
in interface JmlAstVisitor
endVisit
in class ASTVisitor
JmlArrayTypeReference
public boolean visit(JmlAssertStatement assertStatement, BlockScope scope)
JmlAstVisitor
//@ assert 0 < x; //@ assert false;
visit
in interface JmlAstVisitor
visit
in class ASTVisitor
AssertStatement
public void endVisit(JmlAssertStatement assertStatement, BlockScope scope)
endVisit
in interface JmlAstVisitor
endVisit
in class ASTVisitor
JmlAssertStatement
public boolean visit(JmlAssumeStatement assertStatement, BlockScope scope)
JmlAstVisitor
JmlAssertStatement
. Examples
include:
//@ assume x == 3; //@ assume 0 < x;
visit
in interface JmlAstVisitor
visit
in class ASTVisitor
JmlAssertStatement
public void endVisit(JmlAssumeStatement assertStatement, BlockScope scope)
endVisit
in interface JmlAstVisitor
endVisit
in class ASTVisitor
JmlAssumeStatement
public boolean visit(JmlAssignment assignment, BlockScope scope)
visit
in interface JmlAstVisitor
visit
in class ASTVisitor
Assignment
public void endVisit(JmlAssignment assignment, BlockScope scope)
endVisit
in interface JmlAstVisitor
endVisit
in class ASTVisitor
JmlAssignment
public boolean visit(JmlCastExpression castExpression, BlockScope scope)
visit
in interface JmlAstVisitor
visit
in class ASTVisitor
CastExpression
public void endVisit(JmlCastExpression castExpression, BlockScope scope)
endVisit
in interface JmlAstVisitor
endVisit
in class ASTVisitor
JmlCastExpression
public boolean visit(JmlCastExpressionWithoutType castExpression, BlockScope scope)
visit
in interface JmlAstVisitor
visit
in class ASTVisitor
public void endVisit(JmlCastExpressionWithoutType castExpression, BlockScope scope)
endVisit
in interface JmlAstVisitor
endVisit
in class ASTVisitor
public boolean visit(JmlCompilationUnitDeclaration compilationUnitDeclaration, CompilationUnitScope scope)
visit
in interface JmlAstVisitor
visit
in class ASTVisitor
public void endVisit(JmlCompilationUnitDeclaration compilationUnitDeclaration, CompilationUnitScope scope)
endVisit
in interface JmlAstVisitor
endVisit
in class ASTVisitor
public boolean visit(JmlConstructorDeclaration constructorDeclaration, ClassScope scope)
visit
in interface JmlAstVisitor
visit
in class ASTVisitor
ConstructorDeclaration
public void endVisit(JmlConstructorDeclaration constructorDeclaration, ClassScope scope)
endVisit
in interface JmlAstVisitor
endVisit
in class ASTVisitor
JmlConstructorDeclaration
public boolean visit(JmlEnsuresClause ensuresClause, BlockScope scope)
JmlAstVisitor
//@ ensures x == 5; //@ ensures x > 0 && x != 2;
visit
in interface JmlAstVisitor
visit
in class ASTVisitor
public void endVisit(JmlEnsuresClause ensuresClause, BlockScope scope)
endVisit
in interface JmlAstVisitor
endVisit
in class ASTVisitor
JmlEnsuresClause
public boolean visit(JmlFieldDeclaration fieldDeclaration, MethodScope scope)
visit
in interface JmlAstVisitor
visit
in class ASTVisitor
FieldDeclaration
public void endVisit(JmlFieldDeclaration fieldDeclaration, MethodScope scope)
endVisit
in interface JmlAstVisitor
endVisit
in class ASTVisitor
JmlFieldDeclaration
public boolean visit(JmlFieldReference fieldReference, BlockScope scope)
visit
in interface JmlAstVisitor
visit
in class ASTVisitor
FieldReference
public void endVisit(JmlFieldReference fieldReference, BlockScope scope)
endVisit
in interface JmlAstVisitor
endVisit
in class ASTVisitor
JmlFieldReference
public boolean visit(JmlFieldReference fieldReference, ClassScope scope)
visit
in interface JmlAstVisitor
visit
in class ASTVisitor
JmlFieldReference
public void endVisit(JmlFieldReference fieldReference, ClassScope scope)
endVisit
in interface JmlAstVisitor
endVisit
in class ASTVisitor
JmlFieldReference
public boolean visit(JmlLocalDeclaration localDeclaration, BlockScope scope)
visit
in interface JmlAstVisitor
visit
in class ASTVisitor
LocalDeclaration
public void endVisit(JmlLocalDeclaration localDeclaration, BlockScope scope)
endVisit
in interface JmlAstVisitor
endVisit
in class ASTVisitor
JmlLocalDeclaration
public boolean visit(JmlMessageSend messageSend, BlockScope scope)
visit
in interface JmlAstVisitor
visit
in class ASTVisitor
MessageSend
public void endVisit(JmlMessageSend messageSend, BlockScope scope)
endVisit
in interface JmlAstVisitor
endVisit
in class ASTVisitor
JmlMessageSend
public boolean visit(JmlMethodDeclaration methodDeclaration, ClassScope scope)
visit
in interface JmlAstVisitor
visit
in class ASTVisitor
MethodDeclaration
public void endVisit(JmlMethodDeclaration methodDeclaration, ClassScope scope)
endVisit
in interface JmlAstVisitor
endVisit
in class ASTVisitor
JmlMethodDeclaration
public boolean visit(JmlParameterizedQualifiedTypeReference parameterizedQualifiedTypeReference, BlockScope scope)
visit
in interface JmlAstVisitor
visit
in class ASTVisitor
ParameterizedQualifiedTypeReference
public void endVisit(JmlParameterizedQualifiedTypeReference parameterizedQualifiedTypeReference, BlockScope scope)
endVisit
in interface JmlAstVisitor
endVisit
in class ASTVisitor
JmlParameterizedQualifiedTypeReference
public boolean visit(JmlParameterizedQualifiedTypeReference parameterizedQualifiedTypeReference, ClassScope scope)
visit
in interface JmlAstVisitor
visit
in class ASTVisitor
JmlParameterizedQualifiedTypeReference
public void endVisit(JmlParameterizedQualifiedTypeReference parameterizedQualifiedTypeReference, ClassScope scope)
endVisit
in interface JmlAstVisitor
endVisit
in class ASTVisitor
JmlParameterizedQualifiedTypeReference
public boolean visit(JmlParameterizedSingleTypeReference parameterizedSingleTypeReference, BlockScope scope)
visit
in interface JmlAstVisitor
visit
in class ASTVisitor
ParameterizedSingleTypeReference
public void endVisit(JmlParameterizedSingleTypeReference parameterizedSingleTypeReference, BlockScope scope)
endVisit
in interface JmlAstVisitor
endVisit
in class ASTVisitor
JmlParameterizedSingleTypeReference
public boolean visit(JmlParameterizedSingleTypeReference parameterizedSingleTypeReference, ClassScope scope)
visit
in interface JmlAstVisitor
visit
in class ASTVisitor
JmlParameterizedSingleTypeReference
public void endVisit(JmlParameterizedSingleTypeReference parameterizedSingleTypeReference, ClassScope scope)
endVisit
in interface JmlAstVisitor
endVisit
in class ASTVisitor
JmlParameterizedSingleTypeReference
public boolean visit(JmlQualifiedNameReference qualifiedNameReference, BlockScope scope)
visit
in interface JmlAstVisitor
visit
in class ASTVisitor
QualifiedNameReference
public void endVisit(JmlQualifiedNameReference qualifiedNameReference, BlockScope scope)
endVisit
in interface JmlAstVisitor
endVisit
in class ASTVisitor
JmlQualifiedNameReference
public boolean visit(JmlQualifiedNameReference qualifiedNameReference, ClassScope scope)
visit
in interface JmlAstVisitor
visit
in class ASTVisitor
JmlQualifiedNameReference
public void endVisit(JmlQualifiedNameReference qualifiedNameReference, ClassScope scope)
endVisit
in interface JmlAstVisitor
endVisit
in class ASTVisitor
JmlQualifiedNameReference
public boolean visit(JmlQualifiedTypeReference qualifiedTypeReference, BlockScope scope)
visit
in interface JmlAstVisitor
visit
in class ASTVisitor
QualifiedTypeReference
public void endVisit(JmlQualifiedTypeReference qualifiedTypeReference, BlockScope scope)
endVisit
in interface JmlAstVisitor
endVisit
in class ASTVisitor
JmlQualifiedTypeReference
public boolean visit(JmlQualifiedTypeReference qualifiedTypeReference, ClassScope scope)
visit
in interface JmlAstVisitor
visit
in class ASTVisitor
JmlQualifiedTypeReference
public void endVisit(JmlQualifiedTypeReference qualifiedTypeReference, ClassScope scope)
endVisit
in interface JmlAstVisitor
endVisit
in class ASTVisitor
JmlQualifiedTypeReference
public boolean visit(JmlQuantifiedExpression jmlQuantifiedExpression, BlockScope blockScope)
visit
in interface JmlAstVisitor
visit
in class ASTVisitor
public void endVisit(JmlQuantifiedExpression jmlQuantifiedExpression, BlockScope blockScope)
endVisit
in interface JmlAstVisitor
endVisit
in class ASTVisitor
public boolean visit(JmlRequiresClause requiresClause, BlockScope scope)
JmlAstVisitor
//@ requires x > 0; //@ requires x == 0 || x == -1;
visit
in interface JmlAstVisitor
visit
in class ASTVisitor
public void endVisit(JmlRequiresClause requiresClause, BlockScope scope)
endVisit
in interface JmlAstVisitor
endVisit
in class ASTVisitor
JmlRequiresClause
public boolean visit(JmlResultReference resultReference, BlockScope scope)
JmlAstVisitor
\result <= x \result == x
visit
in interface JmlAstVisitor
visit
in class ASTVisitor
public void endVisit(JmlResultReference resultReference, BlockScope scope)
endVisit
in interface JmlAstVisitor
endVisit
in class ASTVisitor
JmlResultReference
public boolean visit(JmlReturnStatement returnStatement, BlockScope scope)
visit
in interface JmlAstVisitor
visit
in class ASTVisitor
ReturnStatement
public void endVisit(JmlReturnStatement returnStatement, BlockScope scope)
endVisit
in interface JmlAstVisitor
endVisit
in class ASTVisitor
JmlReturnStatement
public boolean visit(JmlSingleNameReference singleNameReference, BlockScope scope)
visit
in interface JmlAstVisitor
visit
in class ASTVisitor
SingleNameReference
public void endVisit(JmlSingleNameReference singleNameReference, BlockScope scope)
endVisit
in interface JmlAstVisitor
endVisit
in class ASTVisitor
JmlSingleNameReference
public boolean visit(JmlSingleNameReference singleNameReference, ClassScope scope)
visit
in interface JmlAstVisitor
visit
in class ASTVisitor
JmlSingleNameReference
public void endVisit(JmlSingleNameReference singleNameReference, ClassScope scope)
endVisit
in interface JmlAstVisitor
endVisit
in class ASTVisitor
JmlSingleNameReference
public boolean visit(JmlSingleTypeReference singleTypeReference, BlockScope scope)
visit
in interface JmlAstVisitor
visit
in class ASTVisitor
SingleTypeReference
public void endVisit(JmlSingleTypeReference singleTypeReference, BlockScope scope)
endVisit
in interface JmlAstVisitor
endVisit
in class ASTVisitor
JmlSingleTypeReference
public boolean visit(JmlSingleTypeReference singleTypeReference, ClassScope scope)
visit
in interface JmlAstVisitor
visit
in class ASTVisitor
JmlSingleTypeReference
public void endVisit(JmlSingleTypeReference singleTypeReference, ClassScope scope)
endVisit
in interface JmlAstVisitor
endVisit
in class ASTVisitor
JmlSingleTypeReference
public boolean visit(JmlWildcard wildcard, BlockScope scope)
visit
in interface JmlAstVisitor
visit
in class ASTVisitor
public void endVisit(JmlWildcard wildcard, BlockScope scope)
endVisit
in interface JmlAstVisitor
endVisit
in class ASTVisitor
public boolean visit(JmlWildcard wildcard, ClassScope scope)
visit
in interface JmlAstVisitor
visit
in class ASTVisitor
public void endVisit(JmlWildcard wildcard, ClassScope scope)
endVisit
in interface JmlAstVisitor
endVisit
in class ASTVisitor
public boolean visit(JmlWhileStatement whileStatement, BlockScope scope)
visit
in interface JmlAstVisitor
visit
in class ASTVisitor
WhileStatement
public void endVisit(JmlWhileStatement whileStatement, BlockScope scope)
endVisit
in interface JmlAstVisitor
endVisit
in class ASTVisitor
JmlWhileStatement
public boolean visit(JmlLoopAnnotations jmlLoopAnnotations, BlockScope scope)
visit
in interface JmlAstVisitor
visit
in class ASTVisitor
public void endVisit(JmlLoopAnnotations jmlLoopAnnotations, BlockScope scope)
endVisit
in interface JmlAstVisitor
endVisit
in class ASTVisitor
public boolean visit(JmlLoopInvariant jmlLoopInvariant, BlockScope scope)
JmlAstVisitor
//@ maintaining J ; while (B) { S }Examples include:
//@ maintaining x > 0; while (x < 5) { x++; }In this example, //@ maintaining x > 0; is a JmlLoopInvariant.
visit
in interface JmlAstVisitor
visit
in class ASTVisitor
public void endVisit(JmlLoopInvariant jmlLoopInvariant, BlockScope scope)
endVisit
in interface JmlAstVisitor
endVisit
in class ASTVisitor
JmlLoopInvariant
public boolean visit(JmlLoopVariant jmlLoopVariant, BlockScope scope)
JmlAstVisitor
//@ decreasing E; while (B) { S }Examples include:
//@ decreasing x; while (x != 0) { x--; }In this example, //@ decreasing x; is a JmlLoopVariant.
visit
in interface JmlAstVisitor
visit
in class ASTVisitor
public void endVisit(JmlLoopVariant jmlLoopVariant, BlockScope scope)
endVisit
in interface JmlAstVisitor
endVisit
in class ASTVisitor
JmlLoopVariant
public boolean visit(JmlOldExpression jmlOldExpression, BlockScope scope)
JmlAstVisitor
\old(x) != 0; \pre(x) > \result;In this example, \old(x) and \pre(x) are JmlOldExpression.
visit
in interface JmlAstVisitor
visit
in class ASTVisitor
public void endVisit(JmlOldExpression jmlOldExpression, BlockScope scope)
endVisit
in interface JmlAstVisitor
endVisit
in class ASTVisitor
JmlOldExpression
public boolean visit(JmlClause jmlClause, BlockScope scope)
visit
in interface JmlAstVisitor
visit
in class ASTVisitor
JmlClause
public void endVisit(JmlClause jmlClause, BlockScope scope)
endVisit
in interface JmlAstVisitor
endVisit
in class ASTVisitor
JmlClause
public boolean visit(JmlTypeDeclaration typeDecle, CompilationUnitScope scope)
visit
in interface JmlAstVisitor
visit
in class ASTVisitor
TypeDeclaration
public void endVisit(JmlTypeDeclaration typeDecle, CompilationUnitScope scope)
endVisit
in interface JmlAstVisitor
endVisit
in class ASTVisitor
JmlTypeDeclaration
public boolean visit(JmlAllocationExpression allocationExpression, BlockScope scope)
visit
in interface JmlAstVisitor
AllocationExpression
public void endVisit(JmlAllocationExpression allocationExpression, BlockScope scope)
endVisit
in interface JmlAstVisitor
JmlAllocationExpression
public boolean visit(JmlAssertOrAssumeStatement assertOrAssumeStatement, BlockScope scope)
visit
in interface JmlAstVisitor
JmlAssertStatement
,
JmlAssumeStatement
public void endVisit(JmlAssertOrAssumeStatement assertOrAssumeStatement, BlockScope scope)
endVisit
in interface JmlAstVisitor
JmlAssertOrAssumeStatement
public boolean visit(JmlAssignableClause jmlAssignableClause, BlockScope scope)
JmlAstVisitor
//@ assignable \nothing; //@ assignable \everything;
visit
in interface JmlAstVisitor
public void endVisit(JmlAssignableClause jmlAssignableClause, BlockScope scope)
endVisit
in interface JmlAstVisitor
JmlAssignableClause
public boolean visit(JmlClinit clinit, ClassScope scope)
visit
in interface JmlAstVisitor
Clinit
public void endVisit(JmlClinit clinit, ClassScope scope)
endVisit
in interface JmlAstVisitor
JmlClinit
public boolean visit(JmlConditionalExpression conditionalExpression, BlockScope scope)
visit
in interface JmlAstVisitor
ConditionalExpression
public void endVisit(JmlConditionalExpression conditionalExpression, BlockScope scope)
endVisit
in interface JmlAstVisitor
JmlConditionalExpression
public boolean visit(JmlConstraintClause jmlConstraintClause, BlockScope scope)
JmlAstVisitor
//@ constraint a == \old(a); //@ constraint b.length == \old(b.length);
visit
in interface JmlAstVisitor
public void endVisit(JmlConstraintClause jmlConstraintClause, BlockScope scope)
endVisit
in interface JmlAstVisitor
JmlConstraintClause
public boolean visit(JmlDoStatement doStatement, BlockScope scope)
visit
in interface JmlAstVisitor
visit
in class ASTVisitor
DoStatement
public void endVisit(JmlDoStatement doStatement, BlockScope scope)
endVisit
in interface JmlAstVisitor
endVisit
in class ASTVisitor
JmlDoStatement
public boolean visit(JmlForStatement forStatement, BlockScope scope)
visit
in interface JmlAstVisitor
visit
in class ASTVisitor
ForStatement
public void endVisit(JmlForStatement forStatement, BlockScope scope)
endVisit
in interface JmlAstVisitor
endVisit
in class ASTVisitor
JmlForStatement
public boolean visit(JmlInitiallyClause jmlInitiallyClause, CompilationUnitScope scope)
JmlAstVisitor
//@ public model int x; //@ public initially x == 0;In this example, initially x == 0; is a JmlInitiallyClause.
visit
in interface JmlAstVisitor
public void endVisit(JmlInitiallyClause jmlInitiallyClause, CompilationUnitScope scope)
endVisit
in interface JmlAstVisitor
JmlInitiallyClause
public boolean visit(JmlInvariantForType jmlInvariantForType, CompilationUnitScope scope)
JmlAstVisitor
//@ invariant b != null && b.length == 6;
visit
in interface JmlAstVisitor
public void endVisit(JmlInvariantForType jmlInvariantForType, CompilationUnitScope scope)
endVisit
in interface JmlAstVisitor
JmlInvariantForType
public boolean visit(JmlRepresentsClause representsClause, CompilationUnitScope scope)
JmlAstVisitor
protected int x_; //@ in x; //@ protected represents x <- x_;In this example, representx x <- x_; is a JmlRepresentsClause.
visit
in interface JmlAstVisitor
public void endVisit(JmlRepresentsClause representsClause, CompilationUnitScope scope)
endVisit
in interface JmlAstVisitor
JmlRepresentsClause
public boolean visit(JmlSetStatement jmlSetStatement, BlockScope scope)
JmlAstVisitor
//@ set i = 0; //@ set collection.elementType = \type(int);
visit
in interface JmlAstVisitor
visit
in class ASTVisitor
public boolean endVisit(JmlSetStatement jmlSetStatement, BlockScope scope)
endVisit
in interface JmlAstVisitor
endVisit
in class ASTVisitor
JmlSetStatement
public boolean visit(JmlSignalsClause jmlSignalsClause, BlockScope scope)
JmlAstVisitor
//@ signals (Exception) x < 0;
visit
in interface JmlAstVisitor
public void endVisit(JmlSignalsClause jmlSignalsClause, BlockScope scope)
endVisit
in interface JmlAstVisitor
JmlSignalsClause
public boolean visit(JmlSignalsOnlyClause jmlSignalsOnlyClause, BlockScope scope)
JmlAstVisitor
signals_only NullPointerException;
visit
in interface JmlAstVisitor
public void endVisit(JmlSignalsOnlyClause jmlSignalsOnlyClause, BlockScope scope)
endVisit
in interface JmlAstVisitor
JmlSignalsOnlyClause
public boolean visit(JmlTypeBodyDeclaration jmlTypeDecle, BlockScope scope)
visit
in interface JmlAstVisitor
public void endVisit(JmlTypeBodyDeclaration jmlTypeDecle, BlockScope scope)
endVisit
in interface JmlAstVisitor
public boolean visit(JmlUnaryExpression unaryExpression, BlockScope scope)
visit
in interface JmlAstVisitor
UnaryExpression
public void endVisit(JmlUnaryExpression unaryExpression, BlockScope scope)
endVisit
in interface JmlAstVisitor
JmlUnaryExpression
public boolean visit(JmlMethodSpecification jmlMethodSpecification, ClassScope classScope)
visit
in interface JmlAstVisitor
visit
in class ASTVisitor
public void endVisit(JmlMethodSpecification jmlMethodSpecification, ClassScope classScope)
endVisit
in interface JmlAstVisitor
endVisit
in class ASTVisitor
public boolean visit(AllocationExpression allocationExpression, BlockScope scope)
JavaAstVisitor
new Foo(); new String[5];
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(AllocationExpression allocationExpression, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
AllocationExpression
public boolean visit(AND_AND_Expression and_and_Expression, BlockScope scope)
JavaAstVisitor
true && false a == 2 && m()
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(AND_AND_Expression and_and_Expression, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
AND_AND_Expression
public boolean visit(AnnotationMethodDeclaration annotationTypeDeclaration, ClassScope classScope)
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(AnnotationMethodDeclaration annotationTypeDeclaration, ClassScope classScope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
public boolean visit(Argument argument, BlockScope scope)
JavaAstVisitor
m(int a) { ... } void foo(int a, String b) { ... }In this example, anything inside the first bracket is termed as an argument ie. int a and int a, String b are arguments.
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(Argument argument, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
Argument
public boolean visit(Argument argument, ClassScope scope)
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
Argument
public void endVisit(Argument argument, ClassScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
Argument
public boolean visit(ArrayAllocationExpression arrayAllocationExpression, BlockScope scope)
JavaAstVisitor
new int[3][4]; new int[4][][];
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(ArrayAllocationExpression arrayAllocationExpression, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
ArrayAllocationExpression
public boolean visit(ArrayInitializer arrayInitializer, BlockScope scope)
JavaAstVisitor
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(ArrayInitializer arrayInitializer, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
ArrayInitializer
public boolean visit(ArrayQualifiedTypeReference arrayQualifiedTypeReference, BlockScope scope)
JavaAstVisitor
java.lang.String[] x;In this example, java.lang.String[] is an ArrayQualifiedTypeReference
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(ArrayQualifiedTypeReference arrayQualifiedTypeReference, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
ArrayQualifiedTypeReference
public boolean visit(ArrayQualifiedTypeReference arrayQualifiedTypeReference, ClassScope scope)
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
ArrayQualifiedTypeReference
public void endVisit(ArrayQualifiedTypeReference arrayQualifiedTypeReference, ClassScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
ArrayQualifiedTypeReference
public boolean visit(ArrayReference arrayReference, BlockScope scope)
JavaAstVisitor
var[0] var[i]
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(ArrayReference arrayReference, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
;
public boolean visit(ArrayTypeReference arrayTypeReference, BlockScope scope)
JavaAstVisitor
String[] int[] Object[]
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(ArrayTypeReference arrayTypeReference, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
ArrayTypeReference
public boolean visit(ArrayTypeReference arrayTypeReference, ClassScope scope)
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
ArrayTypeReference
public void endVisit(ArrayTypeReference arrayTypeReference, ClassScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
ArrayTypeReference
public boolean visit(AssertStatement assertStatement, BlockScope scope)
JavaAstVisitor
assert a == b; assert !true;
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(AssertStatement assertStatement, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
AssertStatement
public boolean visit(Assignment assignment, BlockScope scope)
JavaAstVisitor
a = 2; b = new Foo();
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(Assignment assignment, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
Assignment
public boolean visit(BinaryExpression binaryExpression, BlockScope scope)
JavaAstVisitor
a + b "a" + "b" k - 2
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(BinaryExpression binaryExpression, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
BinaryExpression
public boolean visit(Block block, BlockScope scope)
JavaAstVisitor
{ ... }
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(Block block, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
Block
public boolean visit(BreakStatement breakStatement, BlockScope scope)
JavaAstVisitor
break; break la;
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(BreakStatement breakStatement, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
BreakStatement
public boolean visit(CaseStatement caseStatement, BlockScope scope)
JavaAstVisitor
case 1: ... case 'a': ...
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(CaseStatement caseStatement, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
CaseStatement
public boolean visit(CastExpression castExpression, BlockScope scope)
JavaAstVisitor
(Object) o (java.lang.String) sIn this example, (Object) and (java.lang.String) are cast expressions.
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(CastExpression castExpression, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
CastExpression
public boolean visit(CharLiteral charLiteral, BlockScope scope)
JavaAstVisitor
'A' '\b'
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(CharLiteral charLiteral, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
CharLiteral
public boolean visit(ClassLiteralAccess classLiteral, BlockScope scope)
JavaAstVisitor
String.class
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(ClassLiteralAccess classLiteral, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
ClassLiteralAccess
public boolean visit(Clinit clinit, ClassScope scope)
JavaAstVisitor
The example shown above, is actually a synthetic method, added by the compiler.(){ }
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(Clinit clinit, ClassScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
Clinit
public boolean visit(CompilationUnitDeclaration compilationUnitDeclaration, CompilationUnitScope scope)
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(CompilationUnitDeclaration compilationUnitDeclaration, CompilationUnitScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
public boolean visit(CompoundAssignment compoundAssignment, BlockScope scope)
JavaAstVisitor
a += b; z |= x;
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(CompoundAssignment compoundAssignment, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
CompoundAssignment
public boolean visit(ConditionalExpression conditionalExpression, BlockScope scope)
JavaAstVisitor
s? true: false;
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(ConditionalExpression conditionalExpression, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
ConditionalExpression
public boolean visit(ConstructorDeclaration constructorDeclaration, ClassScope scope)
JavaAstVisitor
A(int a) { ... } A() { ... }
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(ConstructorDeclaration constructorDeclaration, ClassScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
ConstructorDeclaration
public boolean visit(ContinueStatement continueStatement, BlockScope scope)
JavaAstVisitor
while(e){ ... if (true) continue; ... } ed: for(;;) { if (i==j) continue ed; else ... }In this example, continue; and continue ed; are Continue statements.
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(ContinueStatement continueStatement, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
ContinueStatement
public boolean visit(DoStatement doStatement, BlockScope scope)
JavaAstVisitor
do { ... } while ( ... );
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(DoStatement doStatement, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
DoStatement
public boolean visit(DoubleLiteral doubleLiteral, BlockScope scope)
JavaAstVisitor
double d = 1.223; double ds = 0.1d;
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(DoubleLiteral doubleLiteral, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
DoubleLiteral
public boolean visit(EmptyStatement emptyStatement, BlockScope scope)
JavaAstVisitor
;
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(EmptyStatement emptyStatement, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
EmptyStatement
public boolean visit(EqualExpression equalExpression, BlockScope scope)
JavaAstVisitor
a == b a == null
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(EqualExpression equalExpression, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
EqualExpression
public boolean visit(ExplicitConstructorCall explicitConstructor, BlockScope scope)
JavaAstVisitor
public Foo{ Foo(){} Foo(int a, int b){} public static void main(String args[]){ Foo n = new Foo(1,2); } }In this example, Foo(int a, int b){} is an ExplicitConstructorCall.
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(ExplicitConstructorCall explicitConstructor, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
ExplicitConstructorCall
public boolean visit(ExtendedStringLiteral extendedStringLiteral, BlockScope scope)
JavaAstVisitor
"a" + "b" "a" + "b" + "C"
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(ExtendedStringLiteral extendedStringLiteral, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
ExtendedStringLiteral
public boolean visit(FalseLiteral falseLiteral, BlockScope scope)
JavaAstVisitor
false
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(FalseLiteral falseLiteral, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
FalseLiteral
public boolean visit(FieldDeclaration fieldDeclaration, MethodScope scope)
JavaAstVisitor
class A{ int a; Object o = new Object(); }In this example, int a; is a FieldDeclaration.
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(FieldDeclaration fieldDeclaration, MethodScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
FieldDeclaration
public boolean visit(FieldReference fieldReference, BlockScope scope)
JavaAstVisitor
this.field = ...In this example, this.field is the FieldReference.
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(FieldReference fieldReference, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
FieldReference
public boolean visit(FieldReference fieldReference, ClassScope scope)
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
FieldReference
public void endVisit(FieldReference fieldReference, ClassScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
FieldReference
public boolean visit(FloatLiteral floatLiteral, BlockScope scope)
JavaAstVisitor
.12 0.11
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(FloatLiteral floatLiteral, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
;
public boolean visit(ForeachStatement forStatement, BlockScope scope)
JavaAstVisitor
for (String s: x) { ... }
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(ForeachStatement forStatement, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
;
public boolean visit(ForStatement forStatement, BlockScope scope)
JavaAstVisitor
for(int i = 0; i < 10; i++) { ... } for(i = 0; ; i++);
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(ForStatement forStatement, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
;
public boolean visit(IfStatement ifStatement, BlockScope scope)
JavaAstVisitor
if (true) { ... } if (expression) { ... } else if (expression) { ... } else { ... }
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(IfStatement ifStatement, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
;
public boolean visit(ImportReference importRef, CompilationUnitScope scope)
JavaAstVisitor
import packageName.*; import packageName.className;
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(ImportReference importRef, CompilationUnitScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
;
public boolean visit(Initializer initializer, MethodScope scope)
JavaAstVisitor
class A{ int a, b; { a = 1; b = 2; } ... }In this example, { a = 1; b = 2; } is an Initializer.
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(Initializer initializer, MethodScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
;
public boolean visit(InstanceOfExpression instanceOfExpression, BlockScope scope)
JavaAstVisitor
if ( o instance Object) { ... }In this example, o instanceof Objct is an InstanceOfExpression.
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(InstanceOfExpression instanceOfExpression, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
;
public boolean visit(IntLiteral intLiteral, BlockScope scope)
JavaAstVisitor
42 1
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(IntLiteral intLiteral, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
;
public boolean visit(LabeledStatement labeledStatement, BlockScope scope)
JavaAstVisitor
br : switch { ... } lbl : int a = 0;
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(LabeledStatement labeledStatement, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
;
public boolean visit(LocalDeclaration localDeclaration, BlockScope scope)
JavaAstVisitor
int a = 2; int d;
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(LocalDeclaration localDeclaration, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
;
public boolean visit(LongLiteral longLiteral, BlockScope scope)
JavaAstVisitor
long d = 22232;
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(LongLiteral longLiteral, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
;
public boolean visit(MarkerAnnotation annotation, BlockScope scope)
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(MarkerAnnotation annotation, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
public boolean visit(MemberValuePair pair, BlockScope scope)
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(MemberValuePair pair, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
public boolean visit(MessageSend messageSend, BlockScope scope)
JavaAstVisitor
m(a, b); X.m();
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(MessageSend messageSend, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
;
public boolean visit(MethodDeclaration methodDeclaration, ClassScope scope)
JavaAstVisitor
private void a(){ ... } void b(int d){ ... }
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(MethodDeclaration methodDeclaration, ClassScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
;
public boolean visit(StringLiteralConcatenation literal, BlockScope scope)
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(StringLiteralConcatenation literal, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
public boolean visit(NormalAnnotation annotation, BlockScope scope)
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(NormalAnnotation annotation, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
public boolean visit(NullLiteral nullLiteral, BlockScope scope)
JavaAstVisitor
null
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(NullLiteral nullLiteral, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
;
public boolean visit(OR_OR_Expression or_or_Expression, BlockScope scope)
JavaAstVisitor
true || false a == 2 || m()
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(OR_OR_Expression or_or_Expression, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
;
public boolean visit(ParameterizedQualifiedTypeReference parameterizedQualifiedTypeReference, BlockScope scope)
JavaAstVisitor
new java.util.ArrayListIn this example, java.util.ArrayList();
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(ParameterizedQualifiedTypeReference parameterizedQualifiedTypeReference, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
;
public boolean visit(ParameterizedQualifiedTypeReference parameterizedQualifiedTypeReference, ClassScope scope)
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
;
public void endVisit(ParameterizedQualifiedTypeReference parameterizedQualifiedTypeReference, ClassScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
;
public boolean visit(ParameterizedSingleTypeReference parameterizedSingleTypeReference, BlockScope scope)
JavaAstVisitor
new ArrayListIn this example, ArrayList();
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(ParameterizedSingleTypeReference parameterizedSingleTypeReference, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
;
public boolean visit(ParameterizedSingleTypeReference parameterizedSingleTypeReference, ClassScope scope)
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
;
public void endVisit(ParameterizedSingleTypeReference parameterizedSingleTypeReference, ClassScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
;
public boolean visit(PostfixExpression postfixExpression, BlockScope scope)
JavaAstVisitor
x++ x--
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(PostfixExpression postfixExpression, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
;
public boolean visit(PrefixExpression prefixExpression, BlockScope scope)
JavaAstVisitor
++x --x
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(PrefixExpression prefixExpression, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
;
public boolean visit(QualifiedAllocationExpression qualifiedAllocationExpression, BlockScope scope)
JavaAstVisitor
new Object() { ... }
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(QualifiedAllocationExpression qualifiedAllocationExpression, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
;
public boolean visit(QualifiedNameReference qualifiedNameReference, BlockScope scope)
JavaAstVisitor
X.a = 1;In this example, X.a is a QualifiedNameReference
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(QualifiedNameReference qualifiedNameReference, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
;
public boolean visit(QualifiedNameReference qualifiedNameReference, ClassScope scope)
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
;
public void endVisit(QualifiedNameReference qualifiedNameReference, ClassScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
;
public boolean visit(QualifiedSuperReference qualifiedSuperReference, BlockScope scope)
JavaAstVisitor
X.super.m();In this example, X.super.m() is a QualifiedSuperReference.
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(QualifiedSuperReference qualifiedSuperReference, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
;
public boolean visit(QualifiedSuperReference qualifiedSuperReference, ClassScope scope)
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
;
public void endVisit(QualifiedSuperReference qualifiedSuperReference, ClassScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
;
public boolean visit(QualifiedThisReference qualifiedThisReference, BlockScope scope)
JavaAstVisitor
X.this.d = x;In this example, X.this.d is a QualifiedThisReference.
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(QualifiedThisReference qualifiedThisReference, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
;
public boolean visit(QualifiedThisReference qualifiedThisReference, ClassScope scope)
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
;
public void endVisit(QualifiedThisReference qualifiedThisReference, ClassScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
;
public boolean visit(QualifiedTypeReference qualifiedTypeReference, BlockScope scope)
JavaAstVisitor
java.lang.String s = ... ; Y.Z z = new Y.Z();In this example, java.lang.String and Y.Z is a QualifiedTypeReference.
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(QualifiedTypeReference qualifiedTypeReference, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
;
public boolean visit(QualifiedTypeReference qualifiedTypeReference, ClassScope scope)
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
;
public void endVisit(QualifiedTypeReference qualifiedTypeReference, ClassScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
;
public boolean visit(ReturnStatement returnStatement, BlockScope scope)
JavaAstVisitor
return ; return a; return new String("aa");In this example, return, return a, return new String("aa") is a ReturnStatement
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(ReturnStatement returnStatement, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
;
public boolean visit(SingleMemberAnnotation annotation, BlockScope scope)
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(SingleMemberAnnotation annotation, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
public boolean visit(SingleNameReference singleNameReference, BlockScope scope)
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(SingleNameReference singleNameReference, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
public boolean visit(SingleNameReference singleNameReference, ClassScope scope)
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(SingleNameReference singleNameReference, ClassScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
public boolean visit(SingleTypeReference singleTypeReference, BlockScope scope)
JavaAstVisitor
interface Y{ ... } class X implements Y { ... }In this example, Y in (implements Y) is a SingleTypeReference.
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(SingleTypeReference singleTypeReference, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
;
public boolean visit(SingleTypeReference singleTypeReference, ClassScope scope)
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
;
public void endVisit(SingleTypeReference singleTypeReference, ClassScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
;
public boolean visit(StringLiteral stringLiteral, BlockScope scope)
JavaAstVisitor
"jml4"
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(StringLiteral stringLiteral, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
;
public boolean visit(SuperReference superReference, BlockScope scope)
JavaAstVisitor
super.m();In this example, super.m() is a SuperReference.
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(SuperReference superReference, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
;
public boolean visit(SwitchStatement switchStatement, BlockScope scope)
JavaAstVisitor
switch (i) { case 0: ... break; ... default: ... }In this example, switch(i) { ... } is a Switch Statement
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(SwitchStatement switchStatement, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
;
public boolean visit(SynchronizedStatement synchronizedStatement, BlockScope scope)
JavaAstVisitor
synchronized(t) { ... } synchronized(new T()) { ... }
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(SynchronizedStatement synchronizedStatement, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
;
public boolean visit(ThisReference thisReference, BlockScope scope)
JavaAstVisitor
this.x = x; this(0,0);In this example, this.x and this(0,0) is a ThisReference.
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(ThisReference thisReference, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
;
public boolean visit(ThisReference thisReference, ClassScope scope)
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
;
public void endVisit(ThisReference thisReference, ClassScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
;
public boolean visit(ThrowStatement throwStatement, BlockScope scope)
JavaAstVisitor
throw someThrowableObject; throw new EmptyStackException();
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(ThrowStatement throwStatement, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
;
public boolean visit(TrueLiteral trueLiteral, BlockScope scope)
JavaAstVisitor
true
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(TrueLiteral trueLiteral, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
;
public boolean visit(TryStatement tryStatement, BlockScope scope)
JavaAstVisitor
try { ... } catch() { ... } try { ... } try { ... } finally { ... }
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(TryStatement tryStatement, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
;
public boolean visit(TypeDeclaration localTypeDeclaration, BlockScope scope)
JavaAstVisitor
void m() { class A { ... } }In this example, class A { ... } is a localTypeDeclaration.
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(TypeDeclaration localTypeDeclaration, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
;
public boolean visit(TypeDeclaration memberTypeDeclaration, ClassScope scope)
JavaAstVisitor
class A{ class B{ } }In this example, class B { } is a memberTypeDeclaration
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(TypeDeclaration memberTypeDeclaration, ClassScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
;
public boolean visit(TypeDeclaration typeDeclaration, CompilationUnitScope scope)
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(TypeDeclaration typeDeclaration, CompilationUnitScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
public boolean visit(TypeParameter typeParameter, BlockScope scope)
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(TypeParameter typeParameter, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
public boolean visit(TypeParameter typeParameter, ClassScope scope)
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(TypeParameter typeParameter, ClassScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
public boolean visit(UnaryExpression unaryExpression, BlockScope scope)
JavaAstVisitor
++a !a ~a z++
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(UnaryExpression unaryExpression, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
;
public boolean visit(WhileStatement whileStatement, BlockScope scope)
JavaAstVisitor
while (e); while (expression) { ... }
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(WhileStatement whileStatement, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
;
public boolean visit(Wildcard wildcard, BlockScope scope)
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(Wildcard wildcard, BlockScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
public boolean visit(Wildcard wildcard, ClassScope scope)
visit
in interface JavaAstVisitor
visit
in class ASTVisitor
public void endVisit(Wildcard wildcard, ClassScope scope)
endVisit
in interface JavaAstVisitor
endVisit
in class ASTVisitor
public boolean visit(CombinedBinaryExpression combinedBinaryExpression, BlockScope scope)
visit
in interface JavaAstVisitor
public void endVisit(CombinedBinaryExpression combinedBinaryExpression, BlockScope scope)
endVisit
in interface JavaAstVisitor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |