public class ConstructorMatcher extends Object implements Matcher<ConstructorMetadata>
ConstructorMetadata-specific implementation of Matcher.
Currently ConstructorMetadata instances are only matched based on parameter
types.| Constructor and Description |
|---|
ConstructorMatcher(org.springframework.roo.model.CustomDataKey<ConstructorMetadata> customDataKey,
Collection<? extends org.springframework.roo.model.JavaType> parameterTypes)
Constructor
|
ConstructorMatcher(org.springframework.roo.model.CustomDataKey<ConstructorMetadata> customDataKey,
T... parameterTypes)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
org.springframework.roo.model.CustomDataKey<ConstructorMetadata> |
getCustomDataKey()
Returns a key indicating the type of custom data returned by
Matcher.matches(List) |
Object |
getTagValue(ConstructorMetadata key)
Returns the value associated with the given key that should be applied to
the matched instance.
|
List<ConstructorMetadata> |
matches(List<MemberHoldingTypeDetails> memberHoldingTypeDetailsList)
Returns the
CustomDataAccessors for any elements of the given
list that meet this matcher's inclusion criteria. |
public ConstructorMatcher(org.springframework.roo.model.CustomDataKey<ConstructorMetadata> customDataKey, Collection<? extends org.springframework.roo.model.JavaType> parameterTypes)
customDataKey - (required)parameterTypes - can be null for nonepublic ConstructorMatcher(org.springframework.roo.model.CustomDataKey<ConstructorMetadata> customDataKey, T... parameterTypes)
T - JavaType or any subclasscustomDataKey - (required)parameterTypes - public org.springframework.roo.model.CustomDataKey<ConstructorMetadata> getCustomDataKey()
MatcherMatcher.matches(List)getCustomDataKey in interface Matcher<ConstructorMetadata>null keypublic Object getTagValue(ConstructorMetadata key)
MatchergetTagValue in interface Matcher<ConstructorMetadata>key - the custom data keypublic List<ConstructorMetadata> matches(List<MemberHoldingTypeDetails> memberHoldingTypeDetailsList)
MatcherCustomDataAccessors for any elements of the given
list that meet this matcher's inclusion criteria.matches in interface Matcher<ConstructorMetadata>memberHoldingTypeDetailsList - the list to check for matchesnull listCopyright © 2009–2016. All rights reserved.