public class DefaultMemberFactory extends Object
Class to create implementations of the JavassistMethod, JavassistConstructor
and JavassistField interfaces.
This implementation simply creates implementations that use reflection
| Constructor and Description |
|---|
DefaultMemberFactory() |
| Modifier and Type | Method and Description |
|---|---|
static JavassistConstructor |
createJavassistConstructor(JavassistConstructorInfo constructorInfo)
Creates a new
JavassistConstructor implementation for a given constructor |
static JavassistField |
createJavassistField(JavassistFieldInfo fieldInfo)
Creates a new
JavassistField implementation for a given field |
static JavassistMethod |
createJavassistMethod(JavassistMethodInfo methodInfo)
Creates a new
JavassistMethod implementation for a given method |
public static JavassistMethod createJavassistMethod(JavassistMethodInfo methodInfo)
JavassistMethod implementation for a given methodmethodInfo - the CtMethod for which we want to create a JavassistMethod implementationRuntimeException - if an error ocurredpublic static JavassistConstructor createJavassistConstructor(JavassistConstructorInfo constructorInfo)
JavassistConstructor implementation for a given constructorconstructorInfo - the CtConstructor for which we want to create a JavassistConstructor implementationRuntimeException - if an error ocurredpublic static JavassistField createJavassistField(JavassistFieldInfo fieldInfo)
JavassistField implementation for a given fieldfieldInfo - the CtField for which we want to create a JavassistField implementationRuntimeException - if an error ocurredCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.