|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.roo.classpath.scanner.MemberDetailsImpl
public class MemberDetailsImpl
Default implementation of MemberDetails.
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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()
MemberDetails
getDetails in interface MemberDetailspublic List<String> getDynamicFinderNames()
MemberDetails
getDynamicFinderNames 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 found
public 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 found
public MethodMetadata getMethod(org.springframework.roo.model.JavaSymbolName methodName,
List<org.springframework.roo.model.JavaType> parameters,
String excludingMid)
MemberDetails
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)excludingMid - the MID that a found method cannot be declared by
null 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 for
public 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 found
public Set<org.springframework.roo.model.JavaType> getPersistentFieldTypes(org.springframework.roo.model.JavaType thisType,
PersistenceMemberLocator persistenceMemberLocator)
MemberDetails
getPersistentFieldTypes in interface MemberDetailsthisType - the owning Java type (required)persistenceMemberLocator - for finding the ID and version fields
(required)
null set with stable iteration order
public boolean isMethodDeclaredByAnother(org.springframework.roo.model.JavaSymbolName methodName,
List<org.springframework.roo.model.JavaType> parameterTypes,
String declaredByMetadataId)
MemberDetails
isMethodDeclaredByAnother 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 MID
public boolean isRequestingAnnotatedWith(AnnotationMetadata annotationMetadata,
String requestingMid)
MemberDetails
isRequestingAnnotatedWith in interface MemberDetailsannotationMetadata - the annotation to look forrequestingMid - the MID interested in
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||