|
Forge - Parent 1.2.2-SNAPSHOT | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Field<O extends JavaSource<O>>
| Method Summary | |
|---|---|
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)
Set the type of this Field to the given Class type. |
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. |
| Methods inherited from interface org.jboss.forge.parser.java.Member |
|---|
getName, isFinal, isStatic, setFinal, setStatic |
| Methods inherited from interface org.jboss.forge.parser.java.VisibilityScoped |
|---|
getVisibility, isPackagePrivate, isPrivate, isProtected, isPublic, setPackagePrivate, setPrivate, setProtected, setPublic, setVisibility |
| Methods inherited from interface org.jboss.forge.parser.java.AnnotationTarget |
|---|
addAnnotation, addAnnotation, addAnnotation, getAnnotation, getAnnotation, getAnnotations, hasAnnotation, hasAnnotation, removeAnnotation |
| Methods inherited from interface org.jboss.forge.parser.Internal |
|---|
getInternal |
| Methods inherited from interface org.jboss.forge.parser.Origin |
|---|
getOrigin |
| Method Detail |
|---|
Field<O> setName(String name)
String getType()
String getQualifiedType()
Type<O> getTypeInspector()
Type
boolean isType(Class<?> type)
boolean isType(String type)
Field<O> setType(Class<?> clazz)
Field to the given Class type. Attempt to add an import statement to this
field's base O if required.
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()
Field<O> setLiteralInitializer(String value)
Field<O> setStringInitializer(String value)
boolean isPrimitive()
|
Forge - Parent 1.2.2-SNAPSHOT | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||