public class PrimitiveFactory
extends java.lang.Object
Constructor and Description |
---|
PrimitiveFactory() |
Modifier and Type | Method and Description |
---|---|
static Primitive |
createAddAnnotationToClassPrimitive(java.lang.Class<?> clazz,
java.lang.Class<?>[] annotations)
Creates
createAddAnnotationToClassPrimitive |
static Primitive |
createAddAnnotationToMethodPrimitive(java.lang.reflect.Method met,
java.lang.Class<?>[] annotations)
Creates
createAddAnnotationToMethodPrimitive |
static Primitive |
createAddFieldPrimitive(java.lang.Class<?> clazz,
int modifiers,
java.lang.Class<?> type,
java.lang.String name,
java.lang.String init)
Creates
AddFieldPrimitive |
static Primitive |
createAddGenericTypeToClassPrimitive(java.lang.Class<?> clazz,
TypeVariable<?>[] tvs)
Creates
createAddGenericTypeToClassPrimitive |
static Primitive |
createAddGenericTypeToMethodPrimitive(java.lang.reflect.Method met,
TypeVariable<?>[] tvs)
Creates
createAddGenericTypeToMethodPrimitive |
static Primitive |
createAddImportPrimitive(java.lang.Class<?> clazz,
java.lang.String[] imports)
Creates
AddImportPrimitive |
static Primitive |
createAddInterfacePrimitive(java.lang.Class<?> clazz,
java.lang.Class<?> interf,
java.lang.Class<?>... typeParameters)
Creates
AddInterfacePrimitive |
static Primitive |
createAddMethodPrimitive(java.lang.Class<?> clazz,
java.lang.String name,
java.lang.invoke.MethodType type,
java.lang.String[] paramNames,
java.lang.String body,
int modifiers,
java.lang.Class<?>... exceptions)
Creates
AddMethodPrimitive |
static Primitive |
createAddMethodPrimitive(java.lang.Class<?> clazz,
java.lang.String name,
java.lang.invoke.MethodType type,
java.lang.String[] paramNames,
java.lang.String body,
int modifiers,
java.lang.reflect.Type[] genericParamTypes,
java.lang.reflect.Type genericReturnType,
TypeVariable<?>[] methodTypeParameters,
java.lang.Class<?>... exceptions)
Creates
AddMethodPrimitive |
static Primitive |
createDeleteFieldPrimitive(java.lang.Class<?> clazz,
java.lang.String name)
Creates
DeleteFieldPrimitive |
static Primitive |
createDeleteMethodPrimitive(java.lang.Class<?> clazz,
java.lang.String name)
Creates
DeleteMethodPrimitive |
static Primitive |
createDeleteMethodPrimitive(java.lang.Class<?> clazz,
java.lang.String name,
java.lang.invoke.MethodType type)
Creates
DeleteMethodPrimitive |
static Primitive |
createGetImportPrimitive(java.lang.Class<?> clazz)
Creates
GetImportPrimitive |
static Primitive |
createRemoveInterfacePrimitive(java.lang.Class<?> clazz,
java.lang.Class<?> interf)
Creates
RemoveInterfacePrimitive |
static Primitive |
createRemoveSuperClassPrimitive(java.lang.Class<?> clazz)
Creates
RemoveSuperClassPrimitive |
static Primitive |
createReplaceFieldPrimitive(java.lang.Class<?> clazz,
java.lang.String name,
java.lang.Class<?> newType,
java.lang.String newInit)
Creates
ReplaceFieldPrimitive |
static Primitive |
createReplaceImplementationPrimitive(java.lang.Class<?> clazz,
java.lang.String name,
java.lang.invoke.MethodType type,
java.lang.String body)
Creates
ReplaceImplementationPrimitive |
static Primitive |
createReplaceImplementationPrimitive(java.lang.Class<?> clazz,
java.lang.String name,
java.lang.String body)
Creates
ReplaceImplementationPrimitive |
static Primitive |
createReplaceMethodPrimitive(java.lang.Class<?> clazz,
java.lang.String name,
java.lang.invoke.MethodType methodType,
java.lang.invoke.MethodType newMethodType,
java.lang.String body)
Creates
ReplaceMethodPrimitive |
static Primitive |
createReplaceMethodPrimitive(java.lang.Class<?> clazz,
java.lang.String name,
java.lang.invoke.MethodType newMethodType,
java.lang.String body)
Creates
ReplaceMethodPrimitive |
static Primitive |
createSetAnnotationToClassPrimitive(java.lang.Class<?> clazz,
java.lang.Class<?>[] annotations)
Creates
createSetAnnotationToClassPrimitive |
static Primitive |
createSetAnnotationToMethodPrimitive(java.lang.reflect.Method met,
java.lang.Class<?>[] annotations)
Creates
createSetAnnotationToMethodPrimitive |
static Primitive |
createSetGenericTypeToClassPrimitive(java.lang.Class<?> clazz,
TypeVariable<?>[] tvs)
Creates
createSetGenericTypeToClassPrimitive |
static Primitive |
createSetGenericTypeToMethodPrimitive(java.lang.reflect.Method met,
TypeVariable<?>[] tvs)
Creates
createSetGenericTypeToMethodPrimitive |
static Primitive |
createSetImportPrimitive(java.lang.Class<?> clazz,
java.lang.String[] imports)
Creates
SetImportPrimitive |
static Primitive |
createSetSuperClassPrimitive(java.lang.Class<?> clazz,
java.lang.Class<?> superclazz,
java.lang.Class<?>... typeParameters)
Creates
SetSuperClassPrimitive |
public static Primitive createAddMethodPrimitive(java.lang.Class<?> clazz, java.lang.String name, java.lang.invoke.MethodType type, java.lang.String[] paramNames, java.lang.String body, int modifiers, java.lang.Class<?>... exceptions) throws StructuralIntercessionException
AddMethodPrimitive
clazz
- The class to modifyname
- The name of the methodtype
- The type of the methodparamNames
- The parameter namesbody
- The body of the methodmodifiers
- The modifiers of the methodexceptions
- The exceptions of the methodPrimitive
ready to be executedStructuralIntercessionException
public static Primitive createAddMethodPrimitive(java.lang.Class<?> clazz, java.lang.String name, java.lang.invoke.MethodType type, java.lang.String[] paramNames, java.lang.String body, int modifiers, java.lang.reflect.Type[] genericParamTypes, java.lang.reflect.Type genericReturnType, TypeVariable<?>[] methodTypeParameters, java.lang.Class<?>... exceptions) throws StructuralIntercessionException
AddMethodPrimitive
clazz
- The class to modifyname
- The name of the methodtype
- The type of the methodparamNames
- The parameter namesbody
- The body of the methodmodifiers
- The modifiers of the methodexceptions
- The exceptions of the methodPrimitive
ready to be executedStructuralIntercessionException
public static Primitive createDeleteMethodPrimitive(java.lang.Class<?> clazz, java.lang.String name) throws StructuralIntercessionException
DeleteMethodPrimitive
clazz
- The class to modifyname
- The name of the methodPrimitive
ready to be executedStructuralIntercessionException
public static Primitive createDeleteMethodPrimitive(java.lang.Class<?> clazz, java.lang.String name, java.lang.invoke.MethodType type) throws StructuralIntercessionException
DeleteMethodPrimitive
clazz
- The class to modifyname
- The name of the methodtype
- The type of the methodPrimitive
ready to be executedStructuralIntercessionException
public static Primitive createReplaceImplementationPrimitive(java.lang.Class<?> clazz, java.lang.String name, java.lang.String body) throws StructuralIntercessionException
ReplaceImplementationPrimitive
clazz
- The class to modifyname
- The name of the methodbody
- The new bodyPrimitive
ready to be executedStructuralIntercessionException
public static Primitive createReplaceImplementationPrimitive(java.lang.Class<?> clazz, java.lang.String name, java.lang.invoke.MethodType type, java.lang.String body) throws StructuralIntercessionException
ReplaceImplementationPrimitive
clazz
- The class to modifyname
- The name of the methodtype
- The type of the methodbody
- The new bodyPrimitive
ready to be executedStructuralIntercessionException
public static Primitive createReplaceMethodPrimitive(java.lang.Class<?> clazz, java.lang.String name, java.lang.invoke.MethodType newMethodType, java.lang.String body) throws StructuralIntercessionException
ReplaceMethodPrimitive
clazz
- The class to modifyname
- The name of the methodnewMethodType
- The new method typebody
- The new bodyPrimitive
ready to be executedStructuralIntercessionException
public static Primitive createReplaceMethodPrimitive(java.lang.Class<?> clazz, java.lang.String name, java.lang.invoke.MethodType methodType, java.lang.invoke.MethodType newMethodType, java.lang.String body) throws StructuralIntercessionException
ReplaceMethodPrimitive
clazz
- The class to modifyname
- The name of the methodmethodType
- The method typenewMethodType
- The new method typebody
- The new bodyPrimitive
ready to be executedStructuralIntercessionException
public static Primitive createAddFieldPrimitive(java.lang.Class<?> clazz, int modifiers, java.lang.Class<?> type, java.lang.String name, java.lang.String init) throws StructuralIntercessionException
AddFieldPrimitive
clazz
- The class to modifymodifiers
- The modifiers of the fieldtype
- The type of the fieldname
- The name of the fieldinit
- The initialization sequence of the fieldPrimitive
ready to be executedStructuralIntercessionException
public static Primitive createDeleteFieldPrimitive(java.lang.Class<?> clazz, java.lang.String name) throws StructuralIntercessionException
DeleteFieldPrimitive
clazz
- The class to modifyname
- The name of the fieldPrimitive
ready to be executedStructuralIntercessionException
public static Primitive createReplaceFieldPrimitive(java.lang.Class<?> clazz, java.lang.String name, java.lang.Class<?> newType, java.lang.String newInit) throws StructuralIntercessionException
ReplaceFieldPrimitive
clazz
- The class to modifyname
- The name of the fieldnewType
- The new typenewInit
- The new initialization sequencePrimitive
ready to be executedStructuralIntercessionException
public static Primitive createAddInterfacePrimitive(java.lang.Class<?> clazz, java.lang.Class<?> interf, java.lang.Class<?>... typeParameters) throws StructuralIntercessionException
AddInterfacePrimitive
clazz
- Class to add interface tointerf
- Interface to add to the classtypeParameters
- Type of the generic parameters of the interface to add (optional)Primitive
ready to be executedStructuralIntercessionException
public static Primitive createRemoveInterfacePrimitive(java.lang.Class<?> clazz, java.lang.Class<?> interf) throws StructuralIntercessionException
RemoveInterfacePrimitive
clazz
- Class to add interface tointerf
- Interface to add to the classPrimitive
ready to be executedStructuralIntercessionException
public static Primitive createSetSuperClassPrimitive(java.lang.Class<?> clazz, java.lang.Class<?> superclazz, java.lang.Class<?>... typeParameters) throws StructuralIntercessionException
SetSuperClassPrimitive
clazz
- Class to add interface tointerf
- Interface to add to the classPrimitive
ready to be executedStructuralIntercessionException
public static Primitive createRemoveSuperClassPrimitive(java.lang.Class<?> clazz) throws StructuralIntercessionException
RemoveSuperClassPrimitive
clazz
- Class to add interface toPrimitive
ready to be executedStructuralIntercessionException
public static Primitive createAddImportPrimitive(java.lang.Class<?> clazz, java.lang.String[] imports) throws StructuralIntercessionException
AddImportPrimitive
clazz
- Primitive
ready to be executedStructuralIntercessionException
public static Primitive createSetImportPrimitive(java.lang.Class<?> clazz, java.lang.String[] imports) throws StructuralIntercessionException
SetImportPrimitive
clazz
- Primitive
ready to be executedStructuralIntercessionException
public static Primitive createGetImportPrimitive(java.lang.Class<?> clazz) throws StructuralIntercessionException
GetImportPrimitive
clazz
- Primitive
ready to be executedStructuralIntercessionException
public static Primitive createAddAnnotationToClassPrimitive(java.lang.Class<?> clazz, java.lang.Class<?>[] annotations) throws StructuralIntercessionException
createAddAnnotationToClassPrimitive
clazz
- Primitive
ready to be executedStructuralIntercessionException
public static Primitive createSetAnnotationToClassPrimitive(java.lang.Class<?> clazz, java.lang.Class<?>[] annotations) throws StructuralIntercessionException
createSetAnnotationToClassPrimitive
clazz
- Primitive
ready to be executedStructuralIntercessionException
public static Primitive createAddAnnotationToMethodPrimitive(java.lang.reflect.Method met, java.lang.Class<?>[] annotations) throws StructuralIntercessionException
createAddAnnotationToMethodPrimitive
clazz
- Primitive
ready to be executedStructuralIntercessionException
public static Primitive createSetAnnotationToMethodPrimitive(java.lang.reflect.Method met, java.lang.Class<?>[] annotations) throws StructuralIntercessionException
createSetAnnotationToMethodPrimitive
met
- Method to add an annotationPrimitive
ready to be executedStructuralIntercessionException
public static Primitive createAddGenericTypeToClassPrimitive(java.lang.Class<?> clazz, TypeVariable<?>[] tvs) throws StructuralIntercessionException
createAddGenericTypeToClassPrimitive
clazz
- Primitive
ready to be executedStructuralIntercessionException
public static Primitive createSetGenericTypeToClassPrimitive(java.lang.Class<?> clazz, TypeVariable<?>[] tvs) throws StructuralIntercessionException
createSetGenericTypeToClassPrimitive
clazz
- Primitive
ready to be executedStructuralIntercessionException
public static Primitive createAddGenericTypeToMethodPrimitive(java.lang.reflect.Method met, TypeVariable<?>[] tvs) throws StructuralIntercessionException
createAddGenericTypeToMethodPrimitive
clazz
- Primitive
ready to be executedStructuralIntercessionException
public static Primitive createSetGenericTypeToMethodPrimitive(java.lang.reflect.Method met, TypeVariable<?>[] tvs) throws StructuralIntercessionException
createSetGenericTypeToMethodPrimitive
clazz
- Primitive
ready to be executedStructuralIntercessionException