public abstract class AbstractMemberHoldingTypeDetails extends AbstractIdentifiableAnnotatedJavaStructureProvider implements MemberHoldingTypeDetails
MemberHoldingTypeDetails implementations.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractMemberHoldingTypeDetails(org.springframework.roo.model.CustomData customData,
String declaredByMetadataId,
int modifier,
Collection<AnnotationMetadata> annotations)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getAnnotation, getAnnotations, getTypeAnnotationgetDeclaredByMetadataId, getModifiergetCustomDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitextendsType, getDeclaredConstructors, getDeclaredFields, getDeclaredInitializers, getDeclaredInnerTypes, getDeclaredMethods, getDynamicFinderNames, getExtendsTypes, getImplementsTypes, getImports, implementsAnygetName, getPhysicalTypeCategory, getTypegetAnnotation, getAnnotations, getTypeAnnotationgetDeclaredByMetadataId, getModifierprotected AbstractMemberHoldingTypeDetails(org.springframework.roo.model.CustomData customData,
String declaredByMetadataId,
int modifier,
Collection<AnnotationMetadata> annotations)
customData - declaredByMetadataId - modifier - annotations - public ConstructorMetadata getDeclaredConstructor(List<org.springframework.roo.model.JavaType> parameters)
MemberHoldingTypeDetailsgetDeclaredConstructor 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)
MemberHoldingTypeDetailsgetDeclaredField in interface MemberHoldingTypeDetailsfieldName - to locate (can be null)null if not foundpublic ClassOrInterfaceTypeDetails getDeclaredInnerType(org.springframework.roo.model.JavaType typeName)
MemberHoldingTypeDetailsgetDeclaredInnerType in interface MemberHoldingTypeDetailstypeName - to locate (required)public FieldMetadata getField(org.springframework.roo.model.JavaSymbolName fieldName)
MemberHoldingTypeDetailsgetField in interface MemberHoldingTypeDetailsfieldName - to locate (required)public List<FieldMetadata> getFieldsWithAnnotation(org.springframework.roo.model.JavaType annotation)
MemberHoldingTypeDetailsgetFieldsWithAnnotation in interface MemberHoldingTypeDetailsannotation - to locate (required)public List<org.springframework.roo.model.JavaType> getLayerEntities()
MemberHoldingTypeDetailsgetLayerEntities in interface MemberHoldingTypeDetailsnull list (may be empty)public MethodMetadata getMethod(org.springframework.roo.model.JavaSymbolName methodName)
MemberHoldingTypeDetailsgetMethod in interface MemberHoldingTypeDetailsmethodName - to locate (required)public MethodMetadata getMethod(org.springframework.roo.model.JavaSymbolName methodName, List<org.springframework.roo.model.JavaType> parameters)
MemberHoldingTypeDetailsgetMethod in interface MemberHoldingTypeDetailsmethodName - to locate (required)parameters - to locate (can be null if there are no parameters)null if not foundpublic List<MethodMetadata> getMethods()
MemberHoldingTypeDetailsgetMethods in interface MemberHoldingTypeDetailspublic org.springframework.roo.model.JavaSymbolName getUniqueFieldName(String proposedName)
MemberHoldingTypeDetailsgetUniqueFieldName 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 MemberHoldingTypeDetailsCopyright © 2009–2016. All rights reserved.