public abstract class MethodDefinition extends CodeDefinition
Purpose: Model a method for code generation purposes.
Constructor and Description |
---|
MethodDefinition() |
Modifier and Type | Method and Description |
---|---|
void |
addException(String exceptionTypeName) |
void |
addLine(String line) |
void |
addToBuffer(String partOfLine)
This method can be used to store a string that will be prepended to the very next line of code entered
|
Iterator |
argumentNames() |
int |
argumentNamesSize() |
boolean |
equals(Object object) |
String |
getArgumentName(int index) |
Vector |
getLines() |
String |
getReturnType() |
int |
hashCode() |
boolean |
isAbstract() |
boolean |
isConstructor() |
void |
setIsAbstract(boolean isAbstract) |
void |
setIsConstructor(boolean isConstructor) |
void |
setReturnType(String returnType) |
void |
writeBody(CodeGenerator generator)
Write the code out to the generator's stream.
|
getAccessLevel, getComment, getName, setAccessLevel, setComment, setName, toString, write
public void addException(String exceptionTypeName)
public void addLine(String line)
public void addToBuffer(String partOfLine)
public String getArgumentName(int index)
public Iterator argumentNames()
public int argumentNamesSize()
public Vector getLines()
public String getReturnType()
public boolean isAbstract()
public boolean isConstructor()
public void setIsAbstract(boolean isAbstract)
public void setIsConstructor(boolean isConstructor)
public void setReturnType(String returnType)
public void writeBody(CodeGenerator generator)
writeBody
in class CodeDefinition
EclipseLink 2.5.2, "build v20140319-9ad6abd" API Reference