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>>
Represents a field of a JavaClassSource, JavaInterfaceSource, or JavaEnumSource.
Author:
Lincoln Baxter, III
  • Method Details

    • setType

      FieldSource<O> setType(Class<?> clazz)
      Set the type of this Field to the given Class type. Attempt to add an import statement to this field's base FieldSource if required.
    • setType

      FieldSource<O> setType(String type)
      Set the type of this Field to the given type. Attempt to add an import statement to this field's base FieldSource if 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 this Field to the given JavaSource<?> type. Attempt to add an import statement to this field's base FieldSource if required.
    • setLiteralInitializer

      FieldSource<O> setLiteralInitializer(String value)
    • setStringInitializer

      FieldSource<O> setStringInitializer(String value)
    • setTransient

      FieldSource<O> setTransient(boolean value)
    • setVolatile

      FieldSource<O> setVolatile(boolean value)