public class ReflectAccessorFactory extends Object
Class to create implementations of the MethodAccessor, ConstructorAccessor
and FieldAccessor interfaces.
This implementation simply creates implementations that use reflection
| Constructor and Description |
|---|
ReflectAccessorFactory() |
| Modifier and Type | Method and Description |
|---|---|
static ConstructorAccessor |
createConstructorAccessor(BytecodeConstructorInfo constructorInfo)
Creates a new ConstructorAccessor implementation for a given constructor
|
static FieldAccessor |
createFieldAccessor(BytecodeFieldInfo fieldInfo)
Creates a new FieldAccessor implementation for a given field
|
static MethodAccessor |
createMethodAccessor(BytecodeMethodInfo methodInfo)
Creates a new MethodAccessor implementation for a given method
|
public static MethodAccessor createMethodAccessor(BytecodeMethodInfo methodInfo)
methodInfo - the method for which we want to create a MethodAccessor implementationRuntimeException - if an error ocurredpublic static ConstructorAccessor createConstructorAccessor(BytecodeConstructorInfo constructorInfo)
constructorInfo - the constructor for which we want to create a ConstructorAccessor implementationRuntimeException - if an error ocurredpublic static FieldAccessor createFieldAccessor(BytecodeFieldInfo fieldInfo)
fieldInfo - the field for which we want to create a JavassistField implementationRuntimeException - if an error ocurredCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.