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 java.util.VectorargumentTypesprotected java.lang.Classtype-
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 voidaddArgument(java.lang.Class argumentType, java.lang.String argumentName)protected booleanargumentsEqual(MethodDefinition methodDefinition)protected java.util.VectorgetArgumentTypeNames()java.util.VectorgetArgumentTypes()java.lang.StringgetReturnType()java.lang.ClassgetReturnTypeClass()voidsetReturnTypeClass(java.lang.Class type)protected voidwriteArguments(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
-
addArgument
public void addArgument(java.lang.Class argumentType, java.lang.String argumentName)
-
argumentsEqual
protected boolean argumentsEqual(MethodDefinition methodDefinition)
- Specified by:
argumentsEqualin classMethodDefinition
-
getArgumentTypeNames
protected java.util.Vector getArgumentTypeNames()
- Specified by:
getArgumentTypeNamesin classMethodDefinition
-
getArgumentTypes
public java.util.Vector getArgumentTypes()
- Specified by:
getArgumentTypesin classMethodDefinition
-
writeArguments
protected void writeArguments(CodeGenerator generator)
- Specified by:
writeArgumentsin classMethodDefinition
-
getReturnTypeClass
public java.lang.Class getReturnTypeClass()
-
setReturnTypeClass
public void setReturnTypeClass(java.lang.Class type)
-
getReturnType
public java.lang.String getReturnType()
- Overrides:
getReturnTypein classMethodDefinition
-
-