public class ItdTypeDetailsBuilder extends AbstractMemberHoldingTypeDetailsBuilder<ItdTypeDetails>
ItdTypeDetails instance.
All methods on this class (which does NOT include the constructor) accept
null arguments, and will automatically ignore any attempt to add an
IdentifiableJavaStructure that is not use the same
declaredByMetadataId as when the instance was constructed.
In addition, any method on this class which accepts an
InvocableMemberMetadata will verify a
InvocableMemberMetadata.getBody() is provided. This therefore detects
programming errors which result from requesting a member to be included in an
ITD but without providing the actual executable body for that member.
| Constructor and Description |
|---|
ItdTypeDetailsBuilder(ItdTypeDetails existing)
Constructor based on an existing ITD
|
ItdTypeDetailsBuilder(String declaredByMetadataId,
ClassOrInterfaceTypeDetails governor,
org.springframework.roo.model.JavaType aspect,
boolean privilegedAspect)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFieldAnnotation(DeclaredFieldAnnotationDetails declaredFieldAnnotationDetails) |
void |
addImports(Collection<ImportMetadata> imports)
Adds the given imports to this builder if not already present
|
void |
addMethodAnnotation(DeclaredMethodAnnotationDetails declaredMethodAnnotationDetails) |
void |
addTypeAnnotation(AnnotationMetadata annotationMetadata)
Deprecated.
|
ItdTypeDetails |
build() |
org.springframework.roo.model.ImportRegistrationResolver |
getImportRegistrationResolver() |
protected void |
onAddAnnotation(AnnotationMetadataBuilder md) |
protected void |
onAddConstructor(ConstructorMetadataBuilder md) |
protected void |
onAddExtendsTypes(org.springframework.roo.model.JavaType type) |
protected void |
onAddField(FieldMetadataBuilder md) |
protected void |
onAddImplementType(org.springframework.roo.model.JavaType type) |
void |
onAddInnerType(ClassOrInterfaceTypeDetailsBuilder cid) |
protected void |
onAddMethod(MethodMetadataBuilder md)
Subclasses can perform their own actions upon a method builder being
added.
|
void |
setDeclarePrecedence(org.springframework.roo.model.JavaType... aspects)
Set the aspects to use on
declare precedence
AspectJ declaration. |
addConstructor, addConstructor, addExtendsTypes, addField, addField, addImplementsType, addInitializer, addInnerType, addInnerType, addMethod, addMethod, buildConstructors, buildFields, buildInitializers, buildInnerTypes, buildMethods, clearDeclaredMethods, getDeclaredConstructors, getDeclaredFields, getDeclaredInitializers, getDeclaredInnerTypes, getDeclaredMethods, getExtendsTypes, getImplementsTypes, onAddInitializer, removeAll, removeExtendsTypes, setDeclaredConstructors, setDeclaredFields, setDeclaredInitializers, setDeclaredInnerTypes, setDeclaredMethods, setExtendsTypes, setImplementsTypesaddAnnotation, addAnnotation, buildAnnotations, getAnnotations, getDeclaredTypeAnnotation, removeAnnotation, setAnnotations, setAnnotations, updateTypeAnnotation, updateTypeAnnotation, updateTypeAnnotationgetDeclaredByMetadataId, getModifier, setModifierpublic ItdTypeDetailsBuilder(ItdTypeDetails existing)
existing - (required)public ItdTypeDetailsBuilder(String declaredByMetadataId, ClassOrInterfaceTypeDetails governor, org.springframework.roo.model.JavaType aspect, boolean privilegedAspect)
declaredByMetadataId - governor - (required)aspect - (required)privilegedAspect - public void addFieldAnnotation(DeclaredFieldAnnotationDetails declaredFieldAnnotationDetails)
public void addImports(Collection<ImportMetadata> imports)
AbstractMemberHoldingTypeDetailsBuilderaddImports in class AbstractMemberHoldingTypeDetailsBuilder<ItdTypeDetails>imports - the imports to add; can be nullpublic void addMethodAnnotation(DeclaredMethodAnnotationDetails declaredMethodAnnotationDetails)
@Deprecated public void addTypeAnnotation(AnnotationMetadata annotationMetadata)
public void setDeclarePrecedence(org.springframework.roo.model.JavaType... aspects)
declare precedence
AspectJ declaration.aspects - public ItdTypeDetails build()
public org.springframework.roo.model.ImportRegistrationResolver getImportRegistrationResolver()
protected void onAddAnnotation(AnnotationMetadataBuilder md)
onAddAnnotation in class AbstractIdentifiableAnnotatedJavaStructureBuilder<ItdTypeDetails>protected void onAddConstructor(ConstructorMetadataBuilder md)
onAddConstructor in class AbstractMemberHoldingTypeDetailsBuilder<ItdTypeDetails>protected void onAddExtendsTypes(org.springframework.roo.model.JavaType type)
onAddExtendsTypes in class AbstractMemberHoldingTypeDetailsBuilder<ItdTypeDetails>protected void onAddField(FieldMetadataBuilder md)
onAddField in class AbstractMemberHoldingTypeDetailsBuilder<ItdTypeDetails>protected void onAddImplementType(org.springframework.roo.model.JavaType type)
onAddImplementType in class AbstractMemberHoldingTypeDetailsBuilder<ItdTypeDetails>public void onAddInnerType(ClassOrInterfaceTypeDetailsBuilder cid)
onAddInnerType in class AbstractMemberHoldingTypeDetailsBuilder<ItdTypeDetails>protected void onAddMethod(MethodMetadataBuilder md)
AbstractMemberHoldingTypeDetailsBuilderonAddMethod in class AbstractMemberHoldingTypeDetailsBuilder<ItdTypeDetails>md - the method being added; never nullCopyright © 2009–2018 Pivotal Software, Inc.. All rights reserved.