|
Forge - Parent 1.0.6-SNAPSHOT | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.forge.parser.java.impl.FieldImpl<O>
public class FieldImpl<O extends JavaSource<O>>
| Constructor Summary | |
|---|---|
FieldImpl(O parent)
|
|
FieldImpl(O parent,
Object internal)
|
|
FieldImpl(O parent,
String declaration)
|
|
| Method Summary | |
|---|---|
Annotation<O> |
addAnnotation()
Add a new annotation instance to this T. |
Annotation<O> |
addAnnotation(Class<? extends Annotation> clazz)
Add a new annotation instance to this T, using the given Class as the annotation type. |
Annotation<O> |
addAnnotation(String className)
Add a new annotation instance to this T, using the given String className as the annotation type. |
boolean |
equals(Object obj)
|
Annotation<O> |
getAnnotation(Class<? extends Annotation> type)
|
Annotation<O> |
getAnnotation(String type)
|
List<Annotation<O>> |
getAnnotations()
|
Object |
getInternal()
Returns the implementation-specific Object representing this. |
String |
getLiteralInitializer()
|
String |
getName()
|
O |
getOrigin()
|
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 |
Visibility |
getVisibility()
|
boolean |
hasAnnotation(Class<? extends Annotation> type)
|
boolean |
hasAnnotation(String type)
|
int |
hashCode()
|
boolean |
isFinal()
|
boolean |
isPackagePrivate()
|
boolean |
isPrimitive()
|
boolean |
isPrivate()
|
boolean |
isProtected()
|
boolean |
isPublic()
|
boolean |
isStatic()
|
boolean |
isType(Class<?> type)
Attempt to determine if this field is of the same type as the given type. |
boolean |
isType(String name)
Attempt to determine if this field is of the same type as the given type. |
Field<O> |
removeAnnotation(Annotation<O> annotation)
|
Field<O> |
setFinal(boolean finl)
|
Field<O> |
setLiteralInitializer(String value)
|
Field<O> |
setName(String name)
|
Field<O> |
setPackagePrivate()
|
Field<O> |
setPrivate()
|
Field<O> |
setProtected()
|
Field<O> |
setPublic()
|
Field<O> |
setStatic(boolean statc)
|
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<?> source)
Set the type of this Field to the given JavaSource> type. |
Field<O> |
setType(String typeName)
Set the type of this Field to the given type. |
Field<O> |
setVisibility(Visibility scope)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FieldImpl(O parent)
public FieldImpl(O parent,
String declaration)
public FieldImpl(O parent,
Object internal)
| Method Detail |
|---|
public O getOrigin()
getOrigin in interface Origin<O extends JavaSource<O>>public Object getInternal()
Internalthis. Do not call this method unless
you are willing to risk breaking backwards compatibility if future versions do not use the same internal object
implementations.
getInternal in interface Internalpublic Annotation<O> addAnnotation()
AnnotationTargetT. (Note that an import statement must be added manually if
required.)
addAnnotation in interface AnnotationTarget<O extends JavaSource<O>,Field<O extends JavaSource<O>>>public Annotation<O> addAnnotation(Class<? extends Annotation> clazz)
AnnotationTargetT, using the given Class as the annotation type. Attempt to
add an import statement to this object's O if required.
addAnnotation in interface AnnotationTarget<O extends JavaSource<O>,Field<O extends JavaSource<O>>>public Annotation<O> addAnnotation(String className)
AnnotationTargetT, using the given String className as the annotation type.
Attempt to add an import statement to this object's O if required. (Note that the given className must be
fully-qualified in order to properly import required classes)
addAnnotation in interface AnnotationTarget<O extends JavaSource<O>,Field<O extends JavaSource<O>>>public List<Annotation<O>> getAnnotations()
getAnnotations in interface AnnotationTarget<O extends JavaSource<O>,Field<O extends JavaSource<O>>>public boolean hasAnnotation(Class<? extends Annotation> type)
hasAnnotation in interface AnnotationTarget<O extends JavaSource<O>,Field<O extends JavaSource<O>>>public boolean hasAnnotation(String type)
hasAnnotation in interface AnnotationTarget<O extends JavaSource<O>,Field<O extends JavaSource<O>>>public Annotation<O> getAnnotation(Class<? extends Annotation> type)
getAnnotation in interface AnnotationTarget<O extends JavaSource<O>,Field<O extends JavaSource<O>>>public Annotation<O> getAnnotation(String type)
getAnnotation in interface AnnotationTarget<O extends JavaSource<O>,Field<O extends JavaSource<O>>>public Field<O> removeAnnotation(Annotation<O> annotation)
removeAnnotation in interface AnnotationTarget<O extends JavaSource<O>,Field<O extends JavaSource<O>>>public String toString()
toString in class Objectpublic boolean isFinal()
isFinal in interface Member<O extends JavaSource<O>,Field<O extends JavaSource<O>>>public Field<O> setFinal(boolean finl)
setFinal in interface Member<O extends JavaSource<O>,Field<O extends JavaSource<O>>>public boolean isStatic()
isStatic in interface Member<O extends JavaSource<O>,Field<O extends JavaSource<O>>>public Field<O> setStatic(boolean statc)
setStatic in interface Member<O extends JavaSource<O>,Field<O extends JavaSource<O>>>public boolean isPackagePrivate()
isPackagePrivate in interface VisibilityScoped<Field<O extends JavaSource<O>>>public Field<O> setPackagePrivate()
setPackagePrivate in interface VisibilityScoped<Field<O extends JavaSource<O>>>public boolean isPublic()
isPublic in interface VisibilityScoped<Field<O extends JavaSource<O>>>public Field<O> setPublic()
setPublic in interface VisibilityScoped<Field<O extends JavaSource<O>>>public boolean isPrivate()
isPrivate in interface VisibilityScoped<Field<O extends JavaSource<O>>>public Field<O> setPrivate()
setPrivate in interface VisibilityScoped<Field<O extends JavaSource<O>>>public boolean isProtected()
isProtected in interface VisibilityScoped<Field<O extends JavaSource<O>>>public Field<O> setProtected()
setProtected in interface VisibilityScoped<Field<O extends JavaSource<O>>>public Visibility getVisibility()
getVisibility in interface VisibilityScoped<Field<O extends JavaSource<O>>>public Field<O> setVisibility(Visibility scope)
setVisibility in interface VisibilityScoped<Field<O extends JavaSource<O>>>public String getName()
getName in interface Member<O extends JavaSource<O>,Field<O extends JavaSource<O>>>public Field<O> setName(String name)
setName in interface Field<O extends JavaSource<O>>public String getType()
Field
getType in interface Field<O extends JavaSource<O>>public String getQualifiedType()
Field
getQualifiedType in interface Field<O extends JavaSource<O>>public Type<O> getTypeInspector()
FieldType
getTypeInspector in interface Field<O extends JavaSource<O>>public boolean isType(Class<?> type)
Field
isType in interface Field<O extends JavaSource<O>>public boolean isType(String name)
Field
isType in interface Field<O extends JavaSource<O>>public Field<O> setType(Class<?> clazz)
FieldField to the given Class type. Attempt to add an import statement to this
field's base O if required.
setType in interface Field<O extends JavaSource<O>>public Field<O> setType(JavaSource<?> source)
FieldField to the given JavaSource> type. Attempt to add an import statement to
this field's base O if required.
setType in interface Field<O extends JavaSource<O>>public Field<O> setType(String typeName)
FieldField 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)
setType in interface Field<O extends JavaSource<O>>public String getLiteralInitializer()
getLiteralInitializer in interface Field<O extends JavaSource<O>>public String getStringInitializer()
getStringInitializer in interface Field<O extends JavaSource<O>>public Field<O> setLiteralInitializer(String value)
setLiteralInitializer in interface Field<O extends JavaSource<O>>public Field<O> setStringInitializer(String value)
setStringInitializer in interface Field<O extends JavaSource<O>>public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic boolean isPrimitive()
isPrimitive in interface Field<O extends JavaSource<O>>
|
Forge - Parent 1.0.6-SNAPSHOT | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||