Interface AnnotationElementSource
- All Superinterfaces:
AnnotationElement<JavaAnnotationSource>,AnnotationTarget<JavaAnnotationSource>,AnnotationTargetSource<JavaAnnotationSource,,AnnotationElementSource> Internal,JavaDocCapable<AnnotationElementSource>,JavaDocCapableSource<AnnotationElementSource>,Named,NamedSource<AnnotationElementSource>,Origin<JavaAnnotationSource>
public interface AnnotationElementSource
extends AnnotationElement<JavaAnnotationSource>, AnnotationTargetSource<JavaAnnotationSource,AnnotationElementSource>, NamedSource<AnnotationElementSource>, JavaDocCapableSource<AnnotationElementSource>
Represents an element definition of a
JavaAnnotationSource.- Author:
- Lincoln Baxter, III, Matt Benson
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceRepresents 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
Modifier and TypeMethodDescriptionSet the type of thisAnnotationElementto the givenClasstype.Set the type of thisAnnotationElementto the given type.Set the type of thisAnnotationElementto the givenJavaSource<?>type.Methods inherited from interface org.jboss.forge.roaster.model.AnnotationElement
getTypeMethods inherited from interface org.jboss.forge.roaster.model.AnnotationTarget
hasAnnotation, hasAnnotationMethods inherited from interface org.jboss.forge.roaster.model.source.AnnotationTargetSource
addAnnotation, addAnnotation, addAnnotation, getAnnotation, getAnnotation, getAnnotations, removeAllAnnotations, removeAnnotationMethods inherited from interface org.jboss.forge.roaster.Internal
getInternalMethods inherited from interface org.jboss.forge.roaster.model.JavaDocCapable
hasJavaDocMethods inherited from interface org.jboss.forge.roaster.model.source.JavaDocCapableSource
getJavaDoc, removeJavaDocMethods inherited from interface org.jboss.forge.roaster.model.source.NamedSource
setName
-
Method Details
-
setType
Set the type of thisAnnotationElementto the givenClasstype. Attempt to add an import statement to this annotation element's baseOif required. -
setType
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
Set the type of thisAnnotationElementto the givenJavaSource<?>type. Attempt to add an import statement to this field's baseOif required. -
getDefaultValue
AnnotationElementSource.DefaultValue getDefaultValue()- Specified by:
getDefaultValuein interfaceAnnotationElement<JavaAnnotationSource>
-