|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.roo.model.AbstractCustomDataAccessorBuilder<T>
org.springframework.roo.classpath.details.AbstractIdentifiableJavaStructureBuilder<T>
org.springframework.roo.classpath.details.AbstractIdentifiableAnnotatedJavaStructureBuilder<T>
org.springframework.roo.classpath.details.AbstractMemberHoldingTypeDetailsBuilder<ItdTypeDetails>
org.springframework.roo.classpath.details.ItdTypeDetailsBuilder
public class ItdTypeDetailsBuilder
Assists in the building of an 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 Summary | |
|---|---|
ItdTypeDetailsBuilder(ItdTypeDetails existing)
Constructor based on an existing ITD |
|
ItdTypeDetailsBuilder(String declaredByMetadataId,
ClassOrInterfaceTypeDetails governor,
org.springframework.roo.model.JavaType aspect,
boolean privilegedAspect)
Constructor |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.springframework.roo.classpath.details.AbstractIdentifiableAnnotatedJavaStructureBuilder |
|---|
addAnnotation, addAnnotation, buildAnnotations, getAnnotations, getDeclaredTypeAnnotation, removeAnnotation, setAnnotations, setAnnotations, updateTypeAnnotation, updateTypeAnnotation, updateTypeAnnotation |
| Methods inherited from class org.springframework.roo.classpath.details.AbstractIdentifiableJavaStructureBuilder |
|---|
getDeclaredByMetadataId, getModifier, setModifier |
| Methods inherited from class org.springframework.roo.model.AbstractCustomDataAccessorBuilder |
|---|
append, getCustomData, putCustomData, setCustomData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public 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 - | Method Detail |
|---|
public void addFieldAnnotation(DeclaredFieldAnnotationDetails declaredFieldAnnotationDetails)
public void addImports(Collection<ImportMetadata> imports)
AbstractMemberHoldingTypeDetailsBuilder
addImports 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)
AbstractMemberHoldingTypeDetailsBuilder
onAddMethod in class AbstractMemberHoldingTypeDetailsBuilder<ItdTypeDetails>md - the method being added; never null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||