Interface FieldSource<O extends JavaSource<O>>
- All Superinterfaces:
AnnotationTarget<O>,AnnotationTargetSource<O,,FieldSource<O>> Field<O>,FinalCapable,FinalCapableSource<FieldSource<O>>,Internal,JavaDocCapable<FieldSource<O>>,JavaDocCapableSource<FieldSource<O>>,LocationCapable,Member<O>,MemberSource<O,,FieldSource<O>> Named,NamedSource<FieldSource<O>>,Origin<O>,StaticCapable,StaticCapableSource<FieldSource<O>>,VisibilityScoped,VisibilityScopedSource<FieldSource<O>>
public interface FieldSource<O extends JavaSource<O>>
extends Field<O>, MemberSource<O,FieldSource<O>>
- Author:
- Lincoln Baxter, III
-
Method Summary
Modifier and TypeMethodDescriptionsetLiteralInitializer(String value) setStringInitializer(String value) setTransient(boolean value) Set the type of thisFieldto the given type.Set the type of thisFieldto the givenJavaSource<?>type.setVolatile(boolean value) Methods 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.model.Field
getLiteralInitializer, getStringInitializer, getType, isTransient, isVolatileMethods inherited from interface org.jboss.forge.roaster.model.FinalCapable
isFinalMethods inherited from interface org.jboss.forge.roaster.model.source.FinalCapableSource
setFinalMethods 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.LocationCapable
getColumnNumber, getEndPosition, getLineNumber, getStartPositionMethods inherited from interface org.jboss.forge.roaster.model.source.NamedSource
setNameMethods inherited from interface org.jboss.forge.roaster.model.StaticCapable
isStaticMethods inherited from interface org.jboss.forge.roaster.model.source.StaticCapableSource
setStaticMethods inherited from interface org.jboss.forge.roaster.model.VisibilityScoped
getVisibility, isPackagePrivate, isPrivate, isProtected, isPublicMethods inherited from interface org.jboss.forge.roaster.model.source.VisibilityScopedSource
setPackagePrivate, setPrivate, setProtected, setPublic, setVisibility
-
Method Details
-
setType
Set the type of thisFieldto the givenClasstype. Attempt to add an import statement to this field's baseFieldSourceif required. -
setType
Set the type of thisFieldto the given type. Attempt to add an import statement to this field's baseFieldSourceif required. (Note that the given className must be fully-qualified in order to properly import required classes) -
setType
Set the type of thisFieldto the givenJavaSource<?>type. Attempt to add an import statement to this field's baseFieldSourceif required. -
setLiteralInitializer
-
setStringInitializer
-
setTransient
-
setVolatile
-