public interface Field<O extends JavaSource<O>> extends Member<O,Field<O>>
| Modifier and Type | Method and Description |
|---|---|
String |
getLiteralInitializer() |
String |
getQualifiedType()
Get this field's fully qualified type.
|
String |
getStringInitializer() |
String |
getType()
Get this field's type.
|
Type<O> |
getTypeInspector()
Get this field's
Type |
boolean |
isPrimitive() |
boolean |
isType(Class<?> type)
Attempt to determine if this field is of the same type as the given type.
|
boolean |
isType(String type)
Attempt to determine if this field is of the same type as the given type.
|
Field<O> |
setLiteralInitializer(String value) |
Field<O> |
setName(String name) |
Field<O> |
setStringInitializer(String value) |
Field<O> |
setType(Class<?> clazz)
|
Field<O> |
setType(JavaSource<?> entity)
Set the type of this
Field to the given JavaSource> type. |
Field<O> |
setType(String type)
Set the type of this
Field to the given type. |
getName, isFinal, isStatic, setFinal, setStaticgetVisibility, isPackagePrivate, isPrivate, isProtected, isPublic, setPackagePrivate, setPrivate, setProtected, setPublic, setVisibilityaddAnnotation, addAnnotation, addAnnotation, getAnnotation, getAnnotation, getAnnotations, hasAnnotation, hasAnnotation, removeAnnotationgetInternalString getType()
String getQualifiedType()
boolean isType(Class<?> type)
boolean isType(String type)
Field<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)Field<O> setType(JavaSource<?> entity)
Field to the given JavaSource> type. Attempt to add an import statement to
this field's base O if required.String getStringInitializer()
String getLiteralInitializer()
boolean isPrimitive()
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.