public interface FieldSource<O extends JavaSource<O>> extends Field<O>, MemberSource<O,FieldSource<O>>
| Modifier and Type | Method and Description |
|---|---|
FieldSource<O> |
setLiteralInitializer(String value) |
FieldSource<O> |
setStringInitializer(String value) |
FieldSource<O> |
setType(Class<?> clazz)
|
FieldSource<O> |
setType(JavaType<?> entity)
Set the type of this
Field to the given JavaSource> type. |
FieldSource<O> |
setType(String type)
Set the type of this
Field to the given type. |
getLiteralInitializer, getStringInitializer, getType, isTransient, isVolatilesetFinal, setStaticaddAnnotation, addAnnotation, addAnnotation, getAnnotation, getAnnotation, getAnnotations, removeAnnotationhasAnnotation, hasAnnotationgetInternalsetPackagePrivate, setPrivate, setProtected, setPublic, setVisibilitygetVisibility, isPackagePrivate, isPrivate, isProtected, isPublicsetNameFieldSource<O> setType(Class<?> clazz)
FieldSource<O> setType(String type)
Field to the given type. Attempt to add an import statement to this field's
base O if required. (Note that the given className must be fully-qualified in order to properly import
required classes)FieldSource<O> setType(JavaType<?> entity)
Field to the given JavaSource> type. Attempt to add an import
statement to this field's base O if required.FieldSource<O> setLiteralInitializer(String value)
FieldSource<O> setStringInitializer(String value)
Copyright © 2014 JBoss by Red Hat. All rights reserved.