oracle.toplink.tools.codegen
Class MethodDefinition
java.lang.Object
|
+--oracle.toplink.tools.codegen.CodeDefinition
|
+--oracle.toplink.tools.codegen.MethodDefinition
- public class MethodDefinition
- extends CodeDefinition
Purpose: Model a method for code generation purposes.
- Since:
- TopLink 3.0
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
MethodDefinition
public MethodDefinition()
equals
public boolean equals(java.lang.Object object)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
addArgument
public void addArgument(java.lang.Class argumentType,
java.lang.String argumentName)
addLine
public void addLine(java.lang.String line)
getArgumentNames
public java.util.Vector getArgumentNames()
getArgumentTypes
public java.util.Vector getArgumentTypes()
getLines
public java.util.Vector getLines()
getReturnType
public java.lang.String getReturnType()
getThrowsClause
public java.lang.String getThrowsClause()
hasThrowsClause
public boolean hasThrowsClause()
isConstructor
public boolean isConstructor()
setArgumentNames
public void setArgumentNames(java.util.Vector argumentNames)
setArgumentTypes
public void setArgumentTypes(java.util.Vector argumentTypes)
setIsConstructor
public void setIsConstructor(boolean isConstructor)
setLines
public void setLines(java.util.Vector lines)
setReturnType
public void setReturnType(java.lang.String returnType)
setThrowsClause
public void setThrowsClause(java.lang.String throwsClause)
writeBody
public void writeBody(CodeGenerator generator)
- Write the code out to the generator's stream.
- Overrides:
writeBody
in class CodeDefinition