|
||||||||||
| 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.SgArgument
public final class SgArgument
Argument for a behavior (constructor or method).
| Constructor Summary | |
|---|---|
SgArgument(SgBehavior owner,
SgArgument argument)
Constructor with argument. |
|
SgArgument(SgBehavior owner,
SgClass type,
String name)
Constructor with type and name. |
|
SgArgument(SgBehavior owner,
String modifiers,
SgClass type,
String name)
Constructor with type and name. |
|
| Method Summary | |
|---|---|
SgBehavior |
getOwner()
Returns the method or constructor this argument 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 SgArgument(SgBehavior owner,
SgArgument argument)
owner.
owner - The constructor or method the argument belongs to.argument - Argument to copy type and name from - Cannot be null.
public SgArgument(SgBehavior owner,
SgClass type,
String name)
owner.
owner - The constructor or method the argument belongs to.type - Type - Cannot be null.name - Name - Cannot be null and cannot be empty.
public SgArgument(SgBehavior owner,
String modifiers,
SgClass type,
String name)
owner.
owner - The constructor or method the argument belongs to.modifiers - Modifiers (separated by space) - Cannot be null (but empty).type - Type - Cannot be null.name - Name - Cannot be null and cannot be empty.| Method Detail |
|---|
public final SgBehavior getOwner()
public final String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||