public class MemberDetailsImpl extends Object implements MemberDetails
MemberDetails.| Constructor and Description |
|---|
MemberDetailsImpl(Collection<? extends MemberHoldingTypeDetails> details)
Constructs a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
AnnotationMetadata |
getAnnotation(org.springframework.roo.model.JavaType type)
Locates the specified type-level annotation on any of the
MemberHoldingTypeDetails in this MemberDetails. |
List<ConstructorMetadata> |
getConstructors()
Searches all
MemberHoldingTypeDetails and returns all
constructors. |
List<MemberHoldingTypeDetails> |
getDetails()
Returns an immutable representation of the member holders.
|
List<String> |
getDynamicFinderNames()
Returns the names of this type's dynamic finders
|
List<FieldMetadata> |
getFields()
Searches all
MemberHoldingTypeDetails and returns all fields. |
MethodMetadata |
getMethod(org.springframework.roo.model.JavaSymbolName methodName)
Locates a method with the name presented.
|
MethodMetadata |
getMethod(org.springframework.roo.model.JavaSymbolName methodName,
List<org.springframework.roo.model.JavaType> parameters)
Locates a method with the name and parameter signature presented.
|
MethodMetadata |
getMethod(org.springframework.roo.model.JavaSymbolName methodName,
List<org.springframework.roo.model.JavaType> parameters,
String excludingMid)
Locates a method with the name and parameter signature presented that is
not declared by the presented MID.
|
List<MethodMetadata> |
getMethods()
Searches all
MemberHoldingTypeDetails and returns all methods. |
List<MethodMetadata> |
getMethodsWithTag(Object tagKey)
Searches all
MemberDetails and returns all methods which contain
a given CustomData tag. |
MethodMetadata |
getMostConcreteMethodWithTag(Object tagKey)
Determines the most concrete
MemberHoldingTypeDetails in cases
where multiple matches are found for a given tag. |
Set<org.springframework.roo.model.JavaType> |
getPersistentFieldTypes(org.springframework.roo.model.JavaType thisType,
PersistenceMemberLocator persistenceMemberLocator)
Returns the type of this class' persistent fields, including those in
collections, but excluding:
the ID field
the version field
JPA-transient fields
immutable fields (i.e. that don't have both a getter and a setter)
embedded ID fields
the collection types themselves
|
boolean |
isMethodDeclaredByAnother(org.springframework.roo.model.JavaSymbolName methodName,
List<org.springframework.roo.model.JavaType> parameterTypes,
String declaredByMetadataId)
Indicates whether a method specified by the method attributes is present
and isn't declared by the passed in MID.
|
boolean |
isRequestingAnnotatedWith(AnnotationMetadata annotationMetadata,
String requestingMid)
Indicates whether the requesting MID is annotated with the specified
annotation.
|
public MemberDetailsImpl(Collection<? extends MemberHoldingTypeDetails> details)
details - the member holders that should be stored in this instance
(can be null)public AnnotationMetadata getAnnotation(org.springframework.roo.model.JavaType type)
MemberDetailsMemberHoldingTypeDetails in this MemberDetails.getAnnotation in interface MemberDetailstype - the type of annotation to locate (required)null if not foundpublic List<ConstructorMetadata> getConstructors()
MemberDetailsMemberHoldingTypeDetails and returns all
constructors.getConstructors in interface MemberDetailspublic List<MemberHoldingTypeDetails> getDetails()
MemberDetailsgetDetails in interface MemberDetailspublic List<String> getDynamicFinderNames()
MemberDetailsgetDynamicFinderNames in interface MemberDetailsnull listpublic List<FieldMetadata> getFields()
MemberDetailsMemberHoldingTypeDetails and returns all fields.getFields in interface MemberDetailspublic MethodMetadata getMethod(org.springframework.roo.model.JavaSymbolName methodName)
MemberDetailsMemberDetails until the first such method is located or none can
be found.getMethod in interface MemberDetailsmethodName - the method name to locate (can be null)null if the method name
is null or such a method cannot be foundpublic MethodMetadata getMethod(org.springframework.roo.model.JavaSymbolName methodName, List<org.springframework.roo.model.JavaType> parameters)
MemberDetailsMemberDetails until the first such method is located
or none can be found.getMethod in interface MemberDetailsmethodName - the method name to locate (can be null)parameters - the method parameter signature to locate (can be null
if no parameters are required)null if the method name
is null or such a method cannot be foundpublic MethodMetadata getMethod(org.springframework.roo.model.JavaSymbolName methodName, List<org.springframework.roo.model.JavaType> parameters, String excludingMid)
MemberDetailsgetMethod in interface MemberDetailsmethodName - the method name to locate (can be null)parameters - the method parameter signature to locate (can be null
if no parameters are required)excludingMid - the MID that a found method cannot be declared bynull if the method name
is null or such a method cannot be foundpublic List<MethodMetadata> getMethods()
MemberDetailsMemberHoldingTypeDetails and returns all methods.getMethods in interface MemberDetailspublic List<MethodMetadata> getMethodsWithTag(Object tagKey)
MemberDetailsMemberDetails and returns all methods which contain
a given CustomData tag.getMethodsWithTag in interface MemberDetailstagKey - the CustomData key to search forpublic MethodMetadata getMostConcreteMethodWithTag(Object tagKey)
MemberDetailsMemberHoldingTypeDetails in cases
where multiple matches are found for a given tag.getMostConcreteMethodWithTag in interface MemberDetailstagKey - the CustomData key to search for (required)null if not foundpublic Set<org.springframework.roo.model.JavaType> getPersistentFieldTypes(org.springframework.roo.model.JavaType thisType, PersistenceMemberLocator persistenceMemberLocator)
MemberDetailsgetPersistentFieldTypes in interface MemberDetailsthisType - the owning Java type (required)persistenceMemberLocator - for finding the ID and version fields
(required)null set with stable iteration orderpublic boolean isMethodDeclaredByAnother(org.springframework.roo.model.JavaSymbolName methodName,
List<org.springframework.roo.model.JavaType> parameterTypes,
String declaredByMetadataId)
MemberDetailsisMethodDeclaredByAnother in interface MemberDetailsmethodName - the name of the method being searched forparameterTypes - the parameters of the method being searched fordeclaredByMetadataId - the MID to be used to see if a found method
is declared by the MIDpublic boolean isRequestingAnnotatedWith(AnnotationMetadata annotationMetadata, String requestingMid)
MemberDetailsisRequestingAnnotatedWith in interface MemberDetailsannotationMetadata - the annotation to look forrequestingMid - the MID interested inCopyright © 2009–2016. All rights reserved.