|
||||||||||
| 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(String modifiers,
SgClass type,
String name)
Constructor with modifiers, class and name. |
|
| Method Summary | |
|---|---|
void |
addAnnotation(SgAnnotation annotation)
Adds an annotation. |
void |
addAnnotations(List<SgAnnotation> annotations)
Adds a list of annotations. |
List<SgAnnotation> |
getAnnotations()
Returns the annotations for this field. |
String |
getModifiers()
Returns the modifiers. |
String |
getName()
Returns the name. |
SgClass |
getType()
Returns the type of the field. |
boolean |
hasAnnotation(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(String modifiers,
SgClass type,
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 String getModifiers()
public final SgClass getType()
public final String getName()
public final List<SgAnnotation> getAnnotations()
public final void addAnnotation(SgAnnotation annotation)
annotation - Annotation to add - Cannot be null.public final void addAnnotations(List<SgAnnotation> annotations)
addAll(..).
annotations - Annotations to add - Cannot be null.public final boolean hasAnnotation(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 | |||||||||