protected static class AbstractCodeGeneratorClass.Signature extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractCodeGeneratorClass.Signature.TypeOfMethod |
| Constructor and Description |
|---|
Signature(String returnType,
String methodName) |
Signature(String returnType,
String methodName,
AbstractCodeGeneratorClass.Signature.TypeOfMethod methodType) |
| Modifier and Type | Method and Description |
|---|---|
void |
addParameter(String type,
String name) |
void |
addThrows(String type) |
String |
callMethod()
Generate what's needed to call the method.
|
String |
getMethodName() |
AbstractCodeGeneratorClass.Signature.TypeOfMethod |
getMethodType() |
String |
getReturnType() |
boolean |
isStatic() |
boolean |
isVoidReturnType() |
void |
setStatic() |
String |
toString()
int sizeFoo()
int addFoo(Foo value)
|
void |
writeMethod(JavaWriter jw) |
public Signature(String returnType, String methodName, AbstractCodeGeneratorClass.Signature.TypeOfMethod methodType)
public String getMethodName()
public String getReturnType()
public AbstractCodeGeneratorClass.Signature.TypeOfMethod getMethodType()
public boolean isStatic()
public void setStatic()
public boolean isVoidReturnType()
public void addThrows(String type)
public void writeMethod(JavaWriter jw) throws IOException
IOExceptionpublic String toString()
public String callMethod()
Copyright © 2017. All Rights Reserved.