Module org.eclipse.persistence.core
Class ReflectiveMethodDefinition
java.lang.Object
org.eclipse.persistence.internal.codegen.CodeDefinition
org.eclipse.persistence.internal.codegen.MethodDefinition
org.eclipse.persistence.internal.codegen.ReflectiveMethodDefinition
INTERNAL:
Purpose: Model a method for code generation purposes, using java.lang.Class for the parameter types.
- Since:
- TopLink 5.0
-
Field Summary
FieldsFields 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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
addArgument
(Class<?> argumentType, String argumentName) protected boolean
argumentsEqual
(MethodDefinition methodDefinition) Class
<?> 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
-
Field Details
-
argumentTypes
-
type
-
-
Constructor Details
-
ReflectiveMethodDefinition
public ReflectiveMethodDefinition()
-
-
Method Details
-
addArgument
-
argumentsEqual
- Specified by:
argumentsEqual
in classMethodDefinition
-
getArgumentTypeNames
- Specified by:
getArgumentTypeNames
in classMethodDefinition
-
getArgumentTypes
- Specified by:
getArgumentTypes
in classMethodDefinition
-
writeArguments
- Specified by:
writeArguments
in classMethodDefinition
-
getReturnTypeClass
-
setReturnTypeClass
-
getReturnType
- Overrides:
getReturnType
in classMethodDefinition
-