public class GetManagedFieldCount extends ClassMethod
access, argNames, argTypes, enhancer, exceptions, methodName, returnType, visitor
Constructor and Description |
---|
GetManagedFieldCount(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 GetManagedFieldCount |
getInstance(ClassEnhancer enhancer) |
close, equals, getAccess, getClassEnhancer, getDescriptor, getMethodAdditionMessage, getName, getNamer, hashCode, initialise, initialise
public GetManagedFieldCount(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 GetManagedFieldCount getInstance(ClassEnhancer enhancer)
public void execute()
return dnFieldNames.length + superClass.dnGetManagedFieldCount();
but due to initializing issues [ENHANCER-58], we use constants instead, e.g.:
return {number of managed fields}+superClass.dnGetManagedFieldCount();
execute
in class ClassMethod
Copyright © 2019. All rights reserved.