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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FieldSource<O>setLiteralInitializer(java.lang.String value)FieldSource<O>setStringInitializer(java.lang.String value)FieldSource<O>setTransient(boolean value)FieldSource<O>setType(java.lang.Class<?> clazz)Set the type of thisFieldto the givenClasstype.FieldSource<O>setType(java.lang.String type)Set the type of thisFieldto the given type.FieldSource<O>setType(JavaType<?> entity)Set the type of thisFieldto the givenJavaSourcetype.FieldSource<O>setVolatile(boolean value)-
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.model.Field
getLiteralInitializer, getStringInitializer, getType, isTransient, isVolatile
-
Methods inherited from interface org.jboss.forge.roaster.model.FinalCapable
isFinal
-
Methods inherited from interface org.jboss.forge.roaster.model.source.FinalCapableSource
setFinal
-
Methods inherited from interface org.jboss.forge.roaster.Internal
getInternal
-
Methods inherited from interface org.jboss.forge.roaster.model.JavaDocCapable
hasJavaDoc
-
Methods inherited from interface org.jboss.forge.roaster.model.source.JavaDocCapableSource
getJavaDoc, removeJavaDoc
-
Methods inherited from interface org.jboss.forge.roaster.model.source.LocationCapable
getColumnNumber, getEndPosition, getLineNumber, getStartPosition
-
Methods inherited from interface org.jboss.forge.roaster.model.source.NamedSource
setName
-
Methods inherited from interface org.jboss.forge.roaster.model.StaticCapable
isStatic
-
Methods inherited from interface org.jboss.forge.roaster.model.source.StaticCapableSource
setStatic
-
Methods inherited from interface org.jboss.forge.roaster.model.VisibilityScoped
getVisibility, isPackagePrivate, isPrivate, isProtected, isPublic
-
Methods inherited from interface org.jboss.forge.roaster.model.source.VisibilityScopedSource
setPackagePrivate, setPrivate, setProtected, setPublic, setVisibility
-
-
-
-
Method Detail
-
setType
FieldSource<O> setType(java.lang.Class<?> clazz)
Set the type of thisFieldto the givenClasstype. Attempt to add an import statement to this field's baseFieldSourceif required.
-
setType
FieldSource<O> setType(java.lang.String type)
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
FieldSource<O> setType(JavaType<?> entity)
Set the type of thisFieldto the givenJavaSourcetype. Attempt to add an import statement to this field's baseFieldSourceif required.
-
setLiteralInitializer
FieldSource<O> setLiteralInitializer(java.lang.String value)
-
setStringInitializer
FieldSource<O> setStringInitializer(java.lang.String value)
-
setTransient
FieldSource<O> setTransient(boolean value)
-
setVolatile
FieldSource<O> setVolatile(boolean value)
-
-