Interface MultiMatcher<T extends com.sun.source.tree.Tree,N extends com.sun.source.tree.Tree>
- Type Parameters:
T
- the type of the node to match onN
- the type of the subnode that the given matcher should match
- All Superinterfaces:
Matcher<T>
,Serializable
- All Known Implementing Classes:
AnnotationMatcher
,ChildMultiMatcher
,ConstructorOfClass
,HasArguments
,MethodHasParameters
public interface MultiMatcher<T extends com.sun.source.tree.Tree,N extends com.sun.source.tree.Tree>
extends Matcher<T>
An matcher that applies a single matcher across multiple tree nodes.
- Author:
- eaftan@google.com (Eddie Aftandilian)
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
MultiMatcher.MultiMatchResult<N extends com.sun.source.tree.Tree>
A result from the call ofmultiMatchResult(Tree, VisitorState)
, containing information about whether it matched, and if so, what nodes matched. -
Method Summary
Modifier and TypeMethodDescriptionmultiMatchResult
(T tree, VisitorState vs) Attempt to match the given node, and return the associated subnodes that matched.
-
Method Details
-
multiMatchResult
Attempt to match the given node, and return the associated subnodes that matched.
-