Interface AnnotationElementSource
-
- All Superinterfaces:
AnnotationElement<JavaAnnotationSource>,AnnotationTarget<JavaAnnotationSource>,AnnotationTargetSource<JavaAnnotationSource,AnnotationElementSource>,Internal,Named,NamedSource<AnnotationElementSource>,Origin<JavaAnnotationSource>
public interface AnnotationElementSource extends AnnotationElement<JavaAnnotationSource>, AnnotationTargetSource<JavaAnnotationSource,AnnotationElementSource>, NamedSource<AnnotationElementSource>
Represents an element definition of aJavaAnnotationSource.- Author:
- Lincoln Baxter, III, Matt Benson
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceAnnotationElementSource.DefaultValueRepresents the default value of anAnnotationElementSourceand provides mechanisms to set that value.-
Nested classes/interfaces inherited from interface org.jboss.forge.roaster.model.AnnotationElement
AnnotationElement.ReadDefaultValue<O extends JavaAnnotation<O>>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AnnotationElementSource.DefaultValuegetDefaultValue()AnnotationElementSourcesetType(java.lang.Class<?> clazz)Set the type of thisAnnotationElementto the givenClasstype.AnnotationElementSourcesetType(java.lang.String type)Set the type of thisAnnotationElementto the given type.AnnotationElementSourcesetType(JavaType<?> entity)Set the type of thisAnnotationElementto the givenJavaSourcetype.-
Methods inherited from interface org.jboss.forge.roaster.model.AnnotationElement
getType
-
Methods inherited from interface org.jboss.forge.roaster.model.AnnotationTarget
hasAnnotation, hasAnnotation
-
Methods inherited from interface org.jboss.forge.roaster.model.source.AnnotationTargetSource
addAnnotation, addAnnotation, addAnnotation, getAnnotation, getAnnotation, getAnnotations, removeAllAnnotations, removeAnnotation
-
Methods inherited from interface org.jboss.forge.roaster.Internal
getInternal
-
Methods inherited from interface org.jboss.forge.roaster.model.source.NamedSource
setName
-
-
-
-
Method Detail
-
setType
AnnotationElementSource setType(java.lang.Class<?> clazz)
Set the type of thisAnnotationElementto the givenClasstype. Attempt to add an import statement to this annotation element's baseOif required.
-
setType
AnnotationElementSource setType(java.lang.String type)
Set the type of thisAnnotationElementto the given type. Attempt to add an import statement to this annotation element's baseOif required. (Note that the given className must be fully-qualified in order to properly import required classes)
-
setType
AnnotationElementSource setType(JavaType<?> entity)
Set the type of thisAnnotationElementto the givenJavaSourcetype. Attempt to add an import statement to this field's baseOif required.
-
getDefaultValue
AnnotationElementSource.DefaultValue getDefaultValue()
- Specified by:
getDefaultValuein interfaceAnnotationElement<JavaAnnotationSource>
-
-