public interface MemberHoldingTypeDetails extends PhysicalTypeDetails, IdentifiableAnnotatedJavaStructure
| Modifier and Type | Method and Description |
|---|---|
boolean |
extendsType(org.springframework.roo.model.JavaType type)
Indicates whether this type extends the given type.
|
ConstructorMetadata |
getDeclaredConstructor(List<org.springframework.roo.model.JavaType> parameters)
Locates the constructor with the specified parameter types.
|
List<? extends ConstructorMetadata> |
getDeclaredConstructors() |
FieldMetadata |
getDeclaredField(org.springframework.roo.model.JavaSymbolName fieldName)
Locates the specified field.
|
List<? extends FieldMetadata> |
getDeclaredFields() |
List<? extends InitializerMetadata> |
getDeclaredInitializers() |
ClassOrInterfaceTypeDetails |
getDeclaredInnerType(org.springframework.roo.model.JavaType typeName)
Locates an inner type with the specified name.
|
List<ClassOrInterfaceTypeDetails> |
getDeclaredInnerTypes() |
List<? extends MethodMetadata> |
getDeclaredMethods() |
List<String> |
getDynamicFinderNames()
Returns the names of any dynamic finders
|
List<org.springframework.roo.model.JavaType> |
getExtendsTypes()
Lists the classes this type extends.
|
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> |
getImplementsTypes()
Lists the classes this type implements.
|
Set<ImportMetadata> |
getImports()
Lists the imports this class includes.
|
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 |
implementsAny(org.springframework.roo.model.JavaType... type)
Indicates whether this type implements the given types.
|
boolean |
implementsType(org.springframework.roo.model.JavaType interfaceType)
Indicates whether this type implements the given interface.
|
getName, getPhysicalTypeCategory, getTypegetAnnotation, getAnnotations, getTypeAnnotationgetDeclaredByMetadataId, getModifierboolean extendsType(org.springframework.roo.model.JavaType type)
getExtendsTypes() and checking whether the given type is in the
returned list.type - the supertype being checked for (required)ConstructorMetadata getDeclaredConstructor(List<org.springframework.roo.model.JavaType> parameters)
parameters - to locate (can be null if there are no parameters)null if not foundList<? extends ConstructorMetadata> getDeclaredConstructors()
FieldMetadata getDeclaredField(org.springframework.roo.model.JavaSymbolName fieldName)
fieldName - to locate (can be null)null if not foundList<? extends FieldMetadata> getDeclaredFields()
List<? extends InitializerMetadata> getDeclaredInitializers()
ClassOrInterfaceTypeDetails getDeclaredInnerType(org.springframework.roo.model.JavaType typeName)
typeName - to locate (required)List<ClassOrInterfaceTypeDetails> getDeclaredInnerTypes()
List<? extends MethodMetadata> getDeclaredMethods()
List<String> getDynamicFinderNames()
null listList<org.springframework.roo.model.JavaType> getExtendsTypes()
While a List is used, normally in Java a class will only extend a
single other class. A List is used to support interfaces, as well
as support the special
"declare parents: DestinationType extends SuperclassType" feature of ITDs
which permits effectively multiple inheritance.
FieldMetadata getField(org.springframework.roo.model.JavaSymbolName fieldName)
fieldName - to locate (required)List<FieldMetadata> getFieldsWithAnnotation(org.springframework.roo.model.JavaType annotation)
annotation - to locate (required)List<org.springframework.roo.model.JavaType> getImplementsTypes()
A List is used to support interfaces, as well as support the
special "declare parents: DestinationType implements SomeInterfaceType"
feature of ITDs.
List<org.springframework.roo.model.JavaType> getLayerEntities()
null list (may be empty)MethodMetadata getMethod(org.springframework.roo.model.JavaSymbolName methodName)
methodName - to locate (required)MethodMetadata getMethod(org.springframework.roo.model.JavaSymbolName methodName, List<org.springframework.roo.model.JavaType> parameters)
methodName - to locate (required)parameters - to locate (can be null if there are no parameters)null if not foundList<MethodMetadata> getMethods()
org.springframework.roo.model.JavaSymbolName getUniqueFieldName(String proposedName)
proposedName - the proposed field name (required)null name that's unique within the governorMemberFindingUtils.getField(org.springframework.roo.classpath.details.MemberHoldingTypeDetails,
JavaSymbolName)Set<ImportMetadata> getImports()
boolean implementsAny(org.springframework.roo.model.JavaType... type)
getImplementsTypes() and checking whether the given
types are in the returned list.type - the interfaces being checked for (required)boolean implementsType(org.springframework.roo.model.JavaType interfaceType)
getImplementsTypes() and checking whether the given type
is in the returned list.type - the interface being checked for (required)Copyright © 2009–2016. All rights reserved.