Interface Matcher<T extends com.sun.source.tree.Tree>

Type Parameters:
T - a javac AST node
All Superinterfaces:
Serializable
All Known Subinterfaces:
MethodMatchers.AnyMethodMatcher, MethodMatchers.ConstructorClassMatcher, MethodMatchers.ConstructorMatcher, MethodMatchers.InstanceMethodMatcher, MethodMatchers.MethodClassMatcher, MethodMatchers.MethodMatcher, MethodMatchers.MethodNameMatcher, MethodMatchers.MethodSignatureMatcher, MethodMatchers.ParameterMatcher, MethodMatchers.StaticMethodMatcher, MultiMatcher<T,​N>
All Known Implementing Classes:
AbstractTypeMatcher, AnnotationDoesNotHaveArgument, AnnotationHasArgumentWithValue, AnnotationMatcher, AnnotationType, Asserts, ChildMultiMatcher, CompileTimeConstantExpressionMatcher, CompoundAssignment, ConstructorOfClass, Contains, Enclosing.Block, Enclosing.BlockOrCase, Enclosing.Class, Enclosing.Method, HasArguments, HasIdentifier, IsSameType, IsSubtypeOf, MethodHasParameters, MethodInvocation, MethodInvocationArgument, MethodInvocationMethodSelect, MethodVisibility, NullnessMatcher, Returns, StringLiteral, Throws
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface
public interface Matcher<T extends com.sun.source.tree.Tree>
extends Serializable
Define a predicate on a Tree, which also accesses the state of AST traversal.
Author:
alexeagle@google.com (Alex Eagle)
  • Method Summary

    Modifier and Type Method Description
    boolean matches​(T t, VisitorState state)  
  • Method Details