Class AjASTMatcher
java.lang.Object
org.aspectj.org.eclipse.jdt.core.dom.ASTMatcher
org.aspectj.org.eclipse.jdt.core.dom.AjASTMatcher
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new AST matcher instance.AjASTMatcher(boolean matchDocTags) Creates a new AST matcher instance. -
Method Summary
Modifier and TypeMethodDescriptionbooleanmatch(AfterAdviceDeclaration node, Object other) booleanmatch(AndPointcut node, Object other) booleanmatch(AndTypePattern node, Object other) booleanmatch(AnyTypePattern node, Object other) booleanmatch(AnyWithAnnotationTypePattern node, Object other) booleanmatch(AroundAdviceDeclaration node, Object other) booleanmatch(BeforeAdviceDeclaration node, Object other) booleanmatch(CflowPointcut node, Object other) booleanmatch(DeclareDeclaration node, Object other) booleanmatch(DefaultPointcut node, Object other) booleanmatch(DefaultTypePattern node, Object other) booleanmatch(EllipsisTypePattern node, Object other) booleanmatch(HasMemberTypePattern node, Object other) booleanmatch(IdentifierTypePattern node, Object other) booleanmatch(InterTypeFieldDeclaration node, Object other) booleanmatch(InterTypeMethodDeclaration node, Object other) booleanmatch(NotPointcut node, Object other) booleanmatch(NotTypePattern node, Object other) booleanmatch(NoTypePattern node, Object other) booleanmatch(OrPointcut node, Object other) booleanmatch(OrTypePattern node, Object other) booleanbooleanbooleanmatch(PerTypeWithin node, Object other) booleanmatch(PointcutDeclaration node, Object other) booleanmatch(ReferencePointcut node, Object other) booleanmatch(SignaturePattern node, Object other) booleanmatch(TypeCategoryTypePattern node, Object other) booleanMethods inherited from class ASTMatcher
match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, safeEquals, safeSubtreeListMatch, safeSubtreeMatchModifier and TypeMethodDescriptionbooleanmatch(AnnotationTypeDeclaration node, Object other) Returns whether the given node and the other object match.booleanmatch(AnnotationTypeMemberDeclaration node, Object other) Returns whether the given node and the other object match.booleanmatch(AnonymousClassDeclaration node, Object other) Returns whether the given node and the other object match.booleanmatch(ArrayAccess node, Object other) Returns whether the given node and the other object match.booleanmatch(ArrayCreation node, Object other) Returns whether the given node and the other object object match.booleanmatch(ArrayInitializer node, Object other) Returns whether the given node and the other object match.booleanReturns whether the given node and the other object match.booleanmatch(AssertStatement node, Object other) Returns whether the given node and the other object match.booleanmatch(Assignment node, Object other) Returns whether the given node and the other object match.booleanmatch(BlockComment node, Object other) Returns whether the given node and the other object match.booleanReturns whether the given node and the other object match.booleanmatch(BooleanLiteral node, Object other) Returns whether the given node and the other object match.booleanmatch(BreakStatement node, Object other) Returns whether the given node and the other object match.booleanmatch(CaseDefaultExpression node, Object other) Returns whether the given node and the other object match.booleanmatch(CastExpression node, Object other) Returns whether the given node and the other object match.booleanmatch(CatchClause node, Object other) Returns whether the given node and the other object match.booleanmatch(CharacterLiteral node, Object other) Returns whether the given node and the other object match.booleanmatch(ClassInstanceCreation node, Object other) Returns whether the given node and the other object match.booleanmatch(CompilationUnit node, Object other) Returns whether the given node and the other object match.booleanmatch(ConditionalExpression node, Object other) Returns whether the given node and the other object match.booleanmatch(ConstructorInvocation node, Object other) Returns whether the given node and the other object match.booleanmatch(ContinueStatement node, Object other) Returns whether the given node and the other object match.booleanmatch(CreationReference node, Object other) Returns whether the given node and the other object match.booleanReturns whether the given node and the other object match.booleanmatch(DoStatement node, Object other) Returns whether the given node and the other object match.booleanmatch(EitherOrMultiPattern node, Object other) Returns whether the given node and the other object match.booleanmatch(EmptyStatement node, Object other) Returns whether the given node and the other object match.booleanmatch(EnhancedForStatement node, Object other) Returns whether the given node and the other object match.booleanmatch(EnumConstantDeclaration node, Object other) Returns whether the given node and the other object match.booleanmatch(EnumDeclaration node, Object other) Returns whether the given node and the other object match.booleanmatch(ExportsDirective node, Object other) Returns whether the given node and the other object match.booleanmatch(ExpressionMethodReference node, Object other) Returns whether the given node and the other object match.booleanmatch(ExpressionStatement node, Object other) Returns whether the given node and the other object match.booleanmatch(FieldAccess node, Object other) Returns whether the given node and the other object match.booleanmatch(FieldDeclaration node, Object other) Returns whether the given node and the other object match.booleanmatch(ForStatement node, Object other) Returns whether the given node and the other object match.booleanmatch(GuardedPattern node, Object other) Returns whether the given node and the other object match.booleanmatch(IfStatement node, Object other) Returns whether the given node and the other object match.booleanmatch(ImplicitTypeDeclaration node, Object other) Returns whether the given node and the other object match.booleanmatch(ImportDeclaration node, Object other) Returns whether the given node and the other object match.booleanmatch(InfixExpression node, Object other) Returns whether the given node and the other object match.booleanmatch(Initializer node, Object other) Returns whether the given node and the other object match.booleanmatch(InstanceofExpression node, Object other) Returns whether the given node and the other object match.booleanmatch(IntersectionType node, Object other) Returns whether the given node and the other object match.booleanmatch(JavaDocRegion node, Object other) Returns whether the given node and the other object match.booleanReturns whether the given node and the other object match.booleanmatch(JavaDocTextElement node, Object other) Returns whether the given node and the other object match.booleanmatch(LabeledStatement node, Object other) Returns whether the given node and the other object match.booleanmatch(LambdaExpression node, Object other) Returns whether the given node and the other object match.booleanmatch(LineComment node, Object other) Returns whether the given node and the other object match.booleanmatch(MarkerAnnotation node, Object other) Returns whether the given node and the other object match.booleanReturns whether the given node and the other object match.booleanmatch(MemberValuePair node, Object other) Returns whether the given node and the other object match.booleanmatch(MethodDeclaration node, Object other) Returns whether the given node and the other object match.booleanmatch(MethodInvocation node, Object other) Returns whether the given node and the other object match.booleanmatch(MethodRefParameter node, Object other) Returns whether the given node and the other object match.booleanReturns whether the given node and the other object match.booleanReturns whether the given node and the other object match.booleanmatch(ModuleDeclaration node, Object other) Returns whether the given node and the other object match.booleanmatch(ModuleModifier node, Object other) Returns whether the given node and the other object match.booleanmatch(ModuleQualifiedName node, Object other) Returns whether the given node and the other object match.booleanmatch(NameQualifiedType node, Object other) Returns whether the given node and the other object match.booleanmatch(NormalAnnotation node, Object other) Returns whether the given node and the other object match.booleanmatch(NullLiteral node, Object other) Returns whether the given node and the other object match.booleanmatch(NullPattern node, Object other) Returns whether the given node and the other object match.booleanmatch(NumberLiteral node, Object other) Returns whether the given node and the other object match.booleanmatch(OpensDirective node, Object other) Returns whether the given node and the other object match.booleanmatch(PackageDeclaration node, Object other) Returns whether the given node and the other object match.booleanmatch(ParameterizedType node, Object other) Returns whether the given node and the other object match.booleanmatch(ParenthesizedExpression node, Object other) Returns whether the given node and the other object match.booleanmatch(PatternInstanceofExpression node, Object other) Returns whether the given node and the other object match.booleanmatch(PostfixExpression node, Object other) Returns whether the given node and the other object match.booleanmatch(PrefixExpression node, Object other) Returns whether the given node and the other object match.booleanmatch(PrimitiveType node, Object other) Returns whether the given node and the other object match.booleanmatch(ProvidesDirective node, Object other) Returns whether the given node and the other object match.booleanmatch(QualifiedName node, Object other) Returns whether the given node and the other object match.booleanmatch(QualifiedType node, Object other) Returns whether the given node and the other object match.booleanmatch(RecordDeclaration node, Object other) Returns whether the given node and the other object match.booleanmatch(RecordPattern node, Object other) Returns whether the given node and the other object match.booleanmatch(RequiresDirective node, Object other) Returns whether the given node and the other object match.booleanmatch(ReturnStatement node, Object other) Returns whether the given node and the other object match.booleanmatch(SimpleName node, Object other) Returns whether the given node and the other object match.booleanmatch(SimpleType node, Object other) Returns whether the given node and the other object match.booleanmatch(SingleMemberAnnotation node, Object other) Returns whether the given node and the other object match.booleanmatch(SingleVariableDeclaration node, Object other) Returns whether the given node and the other object match.booleanmatch(StringLiteral node, Object other) Returns whether the given node and the other object match.booleanmatch(SuperConstructorInvocation node, Object other) Returns whether the given node and the other object match.booleanmatch(SuperFieldAccess node, Object other) Returns whether the given node and the other object match.booleanmatch(SuperMethodInvocation node, Object other) Returns whether the given node and the other object match.booleanmatch(SuperMethodReference node, Object other) Returns whether the given node and the other object match.booleanmatch(SwitchCase node, Object other) Returns whether the given node and the other object match.booleanmatch(SwitchExpression node, Object other) Returns whether the given node and the other object match.booleanmatch(SwitchStatement node, Object other) Returns whether the given node and the other object match.booleanmatch(SynchronizedStatement node, Object other) Returns whether the given node and the other object match.booleanmatch(TagElement node, Object other) Returns whether the given node and the other object match.booleanmatch(TagProperty node, Object other) Returns whether the given node and the other object match.booleanReturns whether the given node and the other object match.booleanmatch(TextElement node, Object other) Returns whether the given node and the other object match.booleanmatch(ThisExpression node, Object other) Returns whether the given node and the other object match.booleanmatch(ThrowStatement node, Object other) Returns whether the given node and the other object match.booleanmatch(TryStatement node, Object other) Returns whether the given node and the other object match.booleanmatch(TypeDeclaration node, Object other) Returns whether the given node and the other object match.booleanmatch(TypeDeclarationStatement node, Object other) Returns whether the given node and the other object match.booleanmatch(TypeLiteral node, Object other) Returns whether the given node and the other object match.booleanmatch(TypeMethodReference node, Object other) Returns whether the given node and the other object match.booleanmatch(TypeParameter node, Object other) Returns whether the given node and the other object match.booleanmatch(TypePattern node, Object other) Returns whether the given node and the other object match.booleanReturns whether the given node and the other object match.booleanmatch(UsesDirective node, Object other) Returns whether the given node and the other object match.booleanmatch(VariableDeclarationExpression node, Object other) Returns whether the given node and the other object match.booleanmatch(VariableDeclarationFragment node, Object other) Returns whether the given node and the other object match.booleanmatch(VariableDeclarationStatement node, Object other) Returns whether the given node and the other object match.booleanmatch(WhileStatement node, Object other) Returns whether the given node and the other object match.booleanmatch(WildcardType node, Object other) Returns whether the given node and the other object match.booleanmatch(YieldStatement node, Object other) Returns whether the given node and the other object match.static booleansafeEquals(Object o1, Object o2) Returns whether the given objects are equal according toequals.final booleansafeSubtreeListMatch(List list1, List list2) Returns whether the given lists of AST nodes match pair wise according toASTNode.subtreeMatch.final booleansafeSubtreeMatch(Object node1, Object node2) Returns whether the given nodes match according toAST.subtreeMatch.
-
Constructor Details
-
AjASTMatcher
public AjASTMatcher()Creates a new AST matcher instance.For backwards compatibility, the matcher ignores tag elements below doc comments by default. Use
AjASTMatcher(true)for a matcher that compares doc tags by default. -
AjASTMatcher
public AjASTMatcher(boolean matchDocTags) Creates a new AST matcher instance.- Parameters:
matchDocTags-trueif doc comment tags are to be compared by default, andfalseotherwise- Since:
- 3.0
- See Also:
-
-
Method Details
-
match
-
match
-
match
-
match
-
match
-
match
-
match
-
match
-
match
-
match
-
match
-
match
-
match
-
match
-
match
-
match
-
match
-
match
-
match
-
match
-
match
-
match
-
match
-
match
-
match
-
match
-
match
-
match
-
match
-