|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.roo.model.AbstractCustomDataAccessorProvider
org.springframework.roo.classpath.details.AbstractIdentifiableJavaStructureProvider
org.springframework.roo.classpath.details.AbstractIdentifiableAnnotatedJavaStructureProvider
org.springframework.roo.classpath.details.AbstractMemberHoldingTypeDetails
public abstract class AbstractMemberHoldingTypeDetails
Convenient superclass for MemberHoldingTypeDetails implementations.
| Constructor Summary | |
|---|---|
protected |
AbstractMemberHoldingTypeDetails(org.springframework.roo.model.CustomData customData,
String declaredByMetadataId,
int modifier,
Collection<AnnotationMetadata> annotations)
Constructor |
| Method Summary | |
|---|---|
ConstructorMetadata |
getDeclaredConstructor(List<org.springframework.roo.model.JavaType> parameters)
Locates the constructor with the specified parameter types. |
FieldMetadata |
getDeclaredField(org.springframework.roo.model.JavaSymbolName fieldName)
Locates the specified field. |
ClassOrInterfaceTypeDetails |
getDeclaredInnerType(org.springframework.roo.model.JavaType typeName)
Locates an inner type with the specified name. |
FieldMetadata |
getField(org.springframework.roo.model.JavaSymbolName fieldName)
Searches up the inheritance hierarchy until the first field with the specified name is located. |
List<FieldMetadata> |
getFieldsWithAnnotation(org.springframework.roo.model.JavaType annotation)
Searches up the inheritance hierarchy and locates all declared fields which are annotated with the specified annotation. |
List<org.springframework.roo.model.JavaType> |
getLayerEntities()
If this is a layering component, for example a service or repository, returns the domain entities managed by this component, otherwise returns an empty list. |
MethodMetadata |
getMethod(org.springframework.roo.model.JavaSymbolName methodName)
Searches up the inheritance hierarchy until the first method with the specified name is located; method parameters are not taken into account. |
MethodMetadata |
getMethod(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. |
List<MethodMetadata> |
getMethods()
Locates all methods on this class and its superclasses. |
org.springframework.roo.model.JavaSymbolName |
getUniqueFieldName(String proposedName)
Generates a unique name for a field, starting from the given proposed name and adding underscores until it's unique. |
boolean |
implementsType(org.springframework.roo.model.JavaType interfaceType)
Indicates whether this type implements the given interface. |
| Methods inherited from class org.springframework.roo.classpath.details.AbstractIdentifiableAnnotatedJavaStructureProvider |
|---|
getAnnotation, getAnnotations, getTypeAnnotation |
| Methods inherited from class org.springframework.roo.classpath.details.AbstractIdentifiableJavaStructureProvider |
|---|
getDeclaredByMetadataId, getModifier |
| Methods inherited from class org.springframework.roo.model.AbstractCustomDataAccessorProvider |
|---|
getCustomData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.springframework.roo.classpath.details.MemberHoldingTypeDetails |
|---|
extendsType, getDeclaredConstructors, getDeclaredFields, getDeclaredInitializers, getDeclaredInnerTypes, getDeclaredMethods, getDynamicFinderNames, getExtendsTypes, getImplementsTypes, implementsAny |
| Methods inherited from interface org.springframework.roo.classpath.PhysicalTypeDetails |
|---|
getName, getPhysicalTypeCategory, getType |
| Methods inherited from interface org.springframework.roo.classpath.details.IdentifiableAnnotatedJavaStructure |
|---|
getAnnotation, getAnnotations, getTypeAnnotation |
| Methods inherited from interface org.springframework.roo.classpath.details.IdentifiableJavaStructure |
|---|
getDeclaredByMetadataId, getModifier |
| Methods inherited from interface org.springframework.roo.model.CustomDataAccessor |
|---|
getCustomData |
| Constructor Detail |
|---|
protected AbstractMemberHoldingTypeDetails(org.springframework.roo.model.CustomData customData,
String declaredByMetadataId,
int modifier,
Collection<AnnotationMetadata> annotations)
customData - declaredByMetadataId - modifier - annotations - | Method Detail |
|---|
public ConstructorMetadata getDeclaredConstructor(List<org.springframework.roo.model.JavaType> parameters)
MemberHoldingTypeDetails
getDeclaredConstructor in interface MemberHoldingTypeDetailsparameters - to locate (can be null if there are no parameters)
null if not foundpublic FieldMetadata getDeclaredField(org.springframework.roo.model.JavaSymbolName fieldName)
MemberHoldingTypeDetails
getDeclaredField in interface MemberHoldingTypeDetailsfieldName - to locate (can be null)
null if not foundpublic ClassOrInterfaceTypeDetails getDeclaredInnerType(org.springframework.roo.model.JavaType typeName)
MemberHoldingTypeDetails
getDeclaredInnerType in interface MemberHoldingTypeDetailstypeName - to locate (required)public FieldMetadata getField(org.springframework.roo.model.JavaSymbolName fieldName)
MemberHoldingTypeDetails
getField in interface MemberHoldingTypeDetailsfieldName - to locate (required)
public List<FieldMetadata> getFieldsWithAnnotation(org.springframework.roo.model.JavaType annotation)
MemberHoldingTypeDetails
getFieldsWithAnnotation in interface MemberHoldingTypeDetailsannotation - to locate (required)
public List<org.springframework.roo.model.JavaType> getLayerEntities()
MemberHoldingTypeDetails
getLayerEntities in interface MemberHoldingTypeDetailsnull list (may be empty)public MethodMetadata getMethod(org.springframework.roo.model.JavaSymbolName methodName)
MemberHoldingTypeDetails
getMethod in interface MemberHoldingTypeDetailsmethodName - to locate (required)
public MethodMetadata getMethod(org.springframework.roo.model.JavaSymbolName methodName,
List<org.springframework.roo.model.JavaType> parameters)
MemberHoldingTypeDetails
getMethod in interface MemberHoldingTypeDetailsmethodName - to locate (required)parameters - to locate (can be null if there are no parameters)
null if not foundpublic List<MethodMetadata> getMethods()
MemberHoldingTypeDetails
getMethods in interface MemberHoldingTypeDetailspublic org.springframework.roo.model.JavaSymbolName getUniqueFieldName(String proposedName)
MemberHoldingTypeDetails
getUniqueFieldName in interface MemberHoldingTypeDetailsproposedName - the proposed field name (required)
null name that's unique within the governorMemberFindingUtils.getField(org.springframework.roo.classpath.details.MemberHoldingTypeDetails,
JavaSymbolName)public boolean implementsType(org.springframework.roo.model.JavaType interfaceType)
MemberHoldingTypeDetailsMemberHoldingTypeDetails.getImplementsTypes() and checking whether the given type
is in the returned list.
implementsType in interface MemberHoldingTypeDetails
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||