|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fuin.srcgen4javassist.SgVariable
org.fuin.srcgen4javassist.SgField
public final class SgField
A field of a class.
| Constructor Summary | |
|---|---|
SgField(SgClass owner,
String modifiers,
SgClass type,
String name,
String initializer)
Constructor with modifiers, class and name. |
|
| Method Summary | |
|---|---|
String |
getInitializer()
Returns the initializer. |
SgClass |
getOwner()
Returns the type this field belongs to. |
String |
toString()
|
| Methods inherited from class org.fuin.srcgen4javassist.SgVariable |
|---|
addAnnotation, addAnnotations, getAnnotations, getModifiers, getName, getType, hasAnnotation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SgField(SgClass owner,
String modifiers,
SgClass type,
String name,
String initializer)
owner.
owner - The type or method the field belongs to.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.initializer - Initializer for the field - Can be null but should normally be
set to an empty String instead.| Method Detail |
|---|
public final SgClass getOwner()
public final String getInitializer()
public final String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||