public interface MemberDetails
Please note that MemberDetails as well as all types it eventually
refers to are all immutable.
MemberDetails represents a convenient, customizable aggregation of
member information at a particular point in time and for a particular
MetadataProvider. It is distinct from other key types as follows:
MetadataItems are specific to a given add-on. They also
frequently reflect a single AspectJ ITD.PhysicalTypeDetails instances only contain details of a parsed
.java source file.ItdTypeDetails instances only represent details of a created .aj
ITD source file.MemberHoldingTypeDetailss represent a single compilation unit.IdentifiableJavaStructures represent a single member within a
MemberHoldingTypeDetails instance.MemberDetailsrepresent all available
MemberHoldingTypeDetails for a given type at this time and for this
metadata provider.| 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> |
getMethods(org.springframework.roo.model.JavaSymbolName methodName)
Locates all methods with the name presented.
|
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.
|
AnnotationMetadata getAnnotation(org.springframework.roo.model.JavaType type)
MemberHoldingTypeDetails in this MemberDetails.type - the type of annotation to locate (required)null if not foundList<ConstructorMetadata> getConstructors()
MemberHoldingTypeDetails and returns all
constructors.List<MemberHoldingTypeDetails> getDetails()
List<String> getDynamicFinderNames()
null listList<FieldMetadata> getFields()
MemberHoldingTypeDetails and returns all fields.MethodMetadata getMethod(org.springframework.roo.model.JavaSymbolName methodName)
MemberDetails until the first such method is located or none can
be found.methodName - the method name to locate (can be null)null if the method name
is null or such a method cannot be foundList<MethodMetadata> getMethods(org.springframework.roo.model.JavaSymbolName methodName)
methodName - the method name to locate (can be null)null if the method name
is null or such a method cannot be found.MethodMetadata getMethod(org.springframework.roo.model.JavaSymbolName methodName, List<org.springframework.roo.model.JavaType> parameters)
MemberDetails until the first such method is located
or none can be found.methodName - 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 foundMethodMetadata getMethod(org.springframework.roo.model.JavaSymbolName methodName, List<org.springframework.roo.model.JavaType> parameters, String excludingMid)
methodName - 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 foundList<MethodMetadata> getMethods()
MemberHoldingTypeDetails and returns all methods.List<MethodMetadata> getMethodsWithTag(Object tagKey)
MemberDetails and returns all methods which contain
a given CustomData tag.memberDetails - the MemberDetails to search (required)tagKey - the CustomData key to search forMethodMetadata getMostConcreteMethodWithTag(Object tagKey)
MemberHoldingTypeDetails in cases
where multiple matches are found for a given tag.tagKey - the CustomData key to search for (required)null if not foundSet<org.springframework.roo.model.JavaType> getPersistentFieldTypes(org.springframework.roo.model.JavaType thisType, PersistenceMemberLocator persistenceMemberLocator)
thisType - the owning Java type (required)persistenceMemberLocator - for finding the ID and version fields
(required)null set with stable iteration orderboolean isMethodDeclaredByAnother(org.springframework.roo.model.JavaSymbolName methodName,
List<org.springframework.roo.model.JavaType> parameterTypes,
String declaredByMetadataId)
methodName - 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 MIDboolean isRequestingAnnotatedWith(AnnotationMetadata annotationMetadata, String requestingMid)
annotationMetadata - the annotation to look forrequestingMid - the MID interested inCopyright © 2009–2017. All rights reserved.