|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.roo.classpath.details.MemberFindingUtils
public abstract class MemberFindingUtils
Utility methods for finding members in MemberHoldingTypeDetails
instances.
Constructor Summary | |
---|---|
MemberFindingUtils()
|
Method Summary | |
---|---|
static AnnotationMetadata |
getAnnotationOfType(List<? extends AnnotationMetadata> annotations,
org.springframework.roo.model.JavaType type)
Locates an annotation with the specified type from a list of annotations. |
static ConstructorMetadata |
getDeclaredConstructor(MemberHoldingTypeDetails memberHoldingTypeDetails,
List<org.springframework.roo.model.JavaType> parameters)
Locates the specified constructor. |
static FieldMetadata |
getDeclaredField(MemberHoldingTypeDetails memberHoldingTypeDetails,
org.springframework.roo.model.JavaSymbolName fieldName)
Locates the specified field. |
static List<FieldMetadata> |
getDeclaredFields(MemberHoldingTypeDetails memberHoldingTypeDetails)
Returns all declared fields |
static MethodMetadata |
getDeclaredMethod(MemberHoldingTypeDetails memberHoldingTypeDetails,
org.springframework.roo.model.JavaSymbolName methodName,
List<org.springframework.roo.model.JavaType> parameters)
Locates the specified method. |
static AnnotationMetadata |
getDeclaredTypeAnnotation(MemberHoldingTypeDetails memberHoldingTypeDetails,
org.springframework.roo.model.JavaType type)
Locates the specified type-level annotation. |
static FieldMetadata |
getField(ClassOrInterfaceTypeDetails classOrInterfaceTypeDetails,
org.springframework.roo.model.JavaSymbolName fieldName)
Searches up the inheritance hierarchy until the first field with the specified name is located. |
static List<FieldMetadata> |
getFieldsWithAnnotation(ClassOrInterfaceTypeDetails classOrInterfaceTypeDetails,
org.springframework.roo.model.JavaType annotation)
Searches up the inheritance hierarchy and locates all declared fields which are annotated with the specified annotation. |
static MethodMetadata |
getMethod(ClassOrInterfaceTypeDetails classOrInterfaceTypeDetails,
org.springframework.roo.model.JavaSymbolName methodName,
List<org.springframework.roo.model.JavaType> parameters)
Searches up the inheritance hierarchy until the first method with the specified name and parameters is located. |
static List<MethodMetadata> |
getMethods(ClassOrInterfaceTypeDetails classOrInterfaceTypeDetails)
Locates all methods on this class and its superclasses. |
static AnnotationMetadata |
getTypeAnnotation(ClassOrInterfaceTypeDetails classOrInterfaceTypeDetails,
org.springframework.roo.model.JavaType annotationType)
Locates an annotation on this class and its superclasses. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MemberFindingUtils()
Method Detail |
---|
public static final FieldMetadata getDeclaredField(MemberHoldingTypeDetails memberHoldingTypeDetails, org.springframework.roo.model.JavaSymbolName fieldName)
memberHoldingTypeDetails
- the MemberHoldingTypeDetails
to search (required)fieldName
- to locate (required)
public static final List<FieldMetadata> getDeclaredFields(MemberHoldingTypeDetails memberHoldingTypeDetails)
memberHoldingTypeDetails
- the MemberHoldingTypeDetails
to search (required)
public static final MethodMetadata getDeclaredMethod(MemberHoldingTypeDetails memberHoldingTypeDetails, org.springframework.roo.model.JavaSymbolName methodName, List<org.springframework.roo.model.JavaType> parameters)
memberHoldingTypeDetails
- the MemberHoldingTypeDetails
to search (required)methodName
- to locate (required)parameters
- to locate (can be null if there are no parameters)
public static final ConstructorMetadata getDeclaredConstructor(MemberHoldingTypeDetails memberHoldingTypeDetails, List<org.springframework.roo.model.JavaType> parameters)
memberHoldingTypeDetails
- the MemberHoldingTypeDetails
to search (required)parameters
- to locate (can be null if there are no parameters)
public static final AnnotationMetadata getDeclaredTypeAnnotation(MemberHoldingTypeDetails memberHoldingTypeDetails, org.springframework.roo.model.JavaType type)
memberHoldingTypeDetails
- the MemberHoldingTypeDetails
to search (required)type
- to locate (required)
public static final AnnotationMetadata getAnnotationOfType(List<? extends AnnotationMetadata> annotations, org.springframework.roo.model.JavaType type)
annotations
- to search (required)type
- to locate (required)
public static final AnnotationMetadata getTypeAnnotation(ClassOrInterfaceTypeDetails classOrInterfaceTypeDetails, org.springframework.roo.model.JavaType annotationType)
classOrInterfaceTypeDetails
- to search (required)annotationType
- annotation to locate (required)
public static final List<MethodMetadata> getMethods(ClassOrInterfaceTypeDetails classOrInterfaceTypeDetails)
classOrInterfaceTypeDetails
- to search (required)
public static final FieldMetadata getField(ClassOrInterfaceTypeDetails classOrInterfaceTypeDetails, org.springframework.roo.model.JavaSymbolName fieldName)
classOrInterfaceTypeDetails
- to search (required)fieldName
- to locate (required)
public static final List<FieldMetadata> getFieldsWithAnnotation(ClassOrInterfaceTypeDetails classOrInterfaceTypeDetails, org.springframework.roo.model.JavaType annotation)
classOrInterfaceTypeDetails
- to search (required)annotation
- to locate (required)
public static final MethodMetadata getMethod(ClassOrInterfaceTypeDetails classOrInterfaceTypeDetails, org.springframework.roo.model.JavaSymbolName methodName, List<org.springframework.roo.model.JavaType> parameters)
classOrInterfaceTypeDetails
- to search (required)methodName
- to locate (required)parameters
- to locate (can be null if there are no parameters)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |