Package spoon.pattern.internal.node
Interface PrimitiveMatcher
-
- All Superinterfaces:
Matchers
,RepeatableMatcher
,RootNode
- All Known Implementing Classes:
ConstantNode
,ElementNode
,MapEntryNode
,ParameterNode
,StringNode
public interface PrimitiveMatcher extends RepeatableMatcher
Defines API of a primitive matcher - matcher for single target object
-
-
Field Summary
-
Fields inherited from interface spoon.pattern.internal.node.RootNode
MATCH_ALL, MATCH_PART
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ImmutableMap
matchTarget(Object target, ImmutableMap parameters)
-
Methods inherited from interface spoon.pattern.internal.node.RepeatableMatcher
getMatchingStrategy, isMandatory, isRepeatable, isTryNextMatch
-
Methods inherited from interface spoon.pattern.internal.node.RootNode
forEachParameterInfo, generateTargets, isSimplifyGenerated, matchAllWith, matchTargets, replaceNode, setSimplifyGenerated
-
-
-
-
Method Detail
-
matchTarget
ImmutableMap matchTarget(Object target, ImmutableMap parameters)
- Parameters:
target
- - to be matched elementparameters
- will receive the matching parameter values- Returns:
- true if `element` matches with pattern of this matcher
-
-