|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fuin.srcgen4javassist.SgBehavior
org.fuin.srcgen4javassist.SgConstructor
public final class SgConstructor
A constructor.
| Constructor Summary | |
|---|---|
SgConstructor(SgClass owner)
Constructor with class. |
|
SgConstructor(SgClass owner,
String modifiers)
Constructor with class and modifiers. |
|
| Method Summary | |
|---|---|
void |
addBodyLine(String line)
Add a new line to the body. |
List<String> |
getBody()
Returns the body of the constructor. |
String |
getSignature()
Returns the "signature" of the constructor. |
String |
toString()
|
| Methods inherited from class org.fuin.srcgen4javassist.SgBehavior |
|---|
addAnnotation, addAnnotations, addArgument, addException, getAnnotations, getArguments, getArguments, getCommaSeparatedArgumentNames, getCommaSeparatedArgumentNames, getExceptions, getLastArgument, getModifiers, getOwner, hasAnnotation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SgConstructor(SgClass owner)
owner.
owner - Class the behavior belongs to - Cannot be null.
public SgConstructor(SgClass owner,
String modifiers)
owner.
owner - Class the behavior belongs to - Cannot be null.modifiers - Modifiers for the constructor/method - Cannot be null (but
empty).| Method Detail |
|---|
public final List<String> getBody()
public final void addBodyLine(String line)
line - Line to add - Cannot be null (but empty).public final String getSignature()
public final String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||