|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.fuin.srcgen4javassist.SgVariable
public abstract class SgVariable
Base class for fields and arguments.
| Constructor Summary | |
|---|---|
SgVariable(java.lang.String modifiers,
SgClass type,
java.lang.String name)
Constructor with modifiers, class and name. |
|
| Method Summary | |
|---|---|
void |
addAnnotation(SgAnnotation annotation)
Adds an annotation. |
void |
addAnnotations(java.util.List<SgAnnotation> annotations)
Adds a list of annotations. |
java.util.List<SgAnnotation> |
getAnnotations()
Returns the annotations for this field. |
java.lang.String |
getModifiers()
Returns the modifiers. |
java.lang.String |
getName()
Returns the name. |
SgClass |
getType()
Returns the type of the field. |
boolean |
hasAnnotation(java.lang.String name)
Checks if a given annotation is in the list. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SgVariable(java.lang.String modifiers,
SgClass type,
java.lang.String name)
modifiers - Modifiers (separated by space) - Cannot be null (but empty).type - Type of the field - Cannot be null.name - Name of the field - Cannot be null.| Method Detail |
|---|
public final java.lang.String getModifiers()
public final SgClass getType()
public final java.lang.String getName()
public final java.util.List<SgAnnotation> getAnnotations()
public final void addAnnotation(SgAnnotation annotation)
annotation - Annotation to add - Cannot be null.public final void addAnnotations(java.util.List<SgAnnotation> annotations)
addAll(..).
annotations - Annotations to add - Cannot be null.public final boolean hasAnnotation(java.lang.String name)
name - Name of the annotation to find - Cannot be null.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||