public class JdoGetManagedFieldCount extends ClassMethod
access, argNames, argTypes, enhancer, exceptions, LOCALISER, methodName, returnType, visitor
Constructor and Description |
---|
JdoGetManagedFieldCount(ClassEnhancer enhancer,
String name,
int access,
Object returnType,
Object[] argTypes,
String[] argNames)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
execute()
Method to add the contents of the class method.
|
static JdoGetManagedFieldCount |
getInstance(ClassEnhancer enhancer) |
close, equals, getAccess, getClassEnhancer, getDescriptor, getMethodAdditionMessage, getName, getNamer, hashCode, initialise, initialise
public JdoGetManagedFieldCount(ClassEnhancer enhancer, String name, int access, Object returnType, Object[] argTypes, String[] argNames)
enhancer
- ClassEnhancername
- Name of methodaccess
- Access typereturnType
- Return typeargTypes
- Argument typesargNames
- Argument namespublic static JdoGetManagedFieldCount getInstance(ClassEnhancer enhancer)
public void execute()
return jdoFieldNames.length + superClass.jdoGetManagedFieldCount();
but due to initializing issues [ENHANCER-58], we use constants instead, e.g.:
return {number of managed fields}+superClass.jdoGetManagedFieldCount();
execute
in class ClassMethod
Copyright © 2021. All rights reserved.