Class ReflectiveMethodDefinition
- java.lang.Object
-
- org.eclipse.persistence.internal.codegen.CodeDefinition
-
- org.eclipse.persistence.internal.codegen.MethodDefinition
-
- org.eclipse.persistence.internal.codegen.ReflectiveMethodDefinition
-
public class ReflectiveMethodDefinition extends MethodDefinition
INTERNAL:Purpose: Model a method for code generation purposes, using java.lang.Class for the parameter types.
- Since:
- TopLink 5.0
- Author:
- Paul Fullbright
-
-
Field Summary
Fields Modifier and Type Field Description protected Vector
argumentTypes
protected Class
type
-
Fields inherited from class org.eclipse.persistence.internal.codegen.MethodDefinition
argumentNames, exceptions, isAbstract, isConstructor, lines, returnType, storedBuffer
-
Fields inherited from class org.eclipse.persistence.internal.codegen.CodeDefinition
accessLevel, comment, JAVA_LANG_PACKAGE_NAME, JAVA_UTIL_PACKAGE_NAME, name, TOPLINK_INDIRECTION_PACKAGE_NAME
-
-
Constructor Summary
Constructors Constructor Description ReflectiveMethodDefinition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addArgument(Class argumentType, String argumentName)
protected boolean
argumentsEqual(MethodDefinition methodDefinition)
protected Vector
getArgumentTypeNames()
Vector
getArgumentTypes()
String
getReturnType()
Class
getReturnTypeClass()
void
setReturnTypeClass(Class type)
protected void
writeArguments(CodeGenerator generator)
-
Methods inherited from class org.eclipse.persistence.internal.codegen.MethodDefinition
addException, addLine, addToBuffer, adjustTypeNames, argumentNames, argumentNamesSize, equals, exceptionsEqual, getArgumentName, getArgumentNames, getExceptions, getLines, hashCode, isAbstract, isConstructor, putTypeNamesInMap, replaceException, replaceLine, setIsAbstract, setIsConstructor, setReturnType, writeBody, writeThrowsClause
-
Methods inherited from class org.eclipse.persistence.internal.codegen.CodeDefinition
adjustTypeName, getAccessLevel, getComment, getName, parseForTypeNames, putTypeNameInMap, setAccessLevel, setComment, setName, toString, write
-
-
-
-
Method Detail
-
argumentsEqual
protected boolean argumentsEqual(MethodDefinition methodDefinition)
- Specified by:
argumentsEqual
in classMethodDefinition
-
getArgumentTypeNames
protected Vector getArgumentTypeNames()
- Specified by:
getArgumentTypeNames
in classMethodDefinition
-
getArgumentTypes
public Vector getArgumentTypes()
- Specified by:
getArgumentTypes
in classMethodDefinition
-
writeArguments
protected void writeArguments(CodeGenerator generator)
- Specified by:
writeArguments
in classMethodDefinition
-
getReturnTypeClass
public Class getReturnTypeClass()
-
setReturnTypeClass
public void setReturnTypeClass(Class type)
-
getReturnType
public String getReturnType()
- Overrides:
getReturnType
in classMethodDefinition
-
-