public class AsmFactory extends Object
Modifier and Type | Field and Description |
---|---|
ClassLoader |
targetClassLoader |
Constructor and Description |
---|
AsmFactory(ClassLoader targetClassLoader) |
Modifier and Type | Method and Description |
---|---|
<S1,S2,T> BiInstantiator<S1,S2,T> |
createBiInstantiator(Class<?> s1,
Class<?> s2,
InstantiatorDefinition instantiatorDefinition,
Map<Parameter,org.simpleflatmapper.util.BiFunction<? super S1,? super S2,?>> injections,
boolean builderIgnoresNullValues) |
Object |
createClass(String className,
byte[] bytes,
ClassLoader classLoader) |
<S,T> Instantiator<S,T> |
createEmptyArgsInstantiator(Class<S> source,
Class<? extends T> target) |
<T,P> Getter<T,P> |
createGetter(Field m) |
<T,P> Getter<T,P> |
createGetter(Method m) |
<S,T> Instantiator<S,T> |
createInstantiator(Class<S> source,
InstantiatorDefinition instantiatorDefinition,
Map<Parameter,Getter<? super S,?>> injections,
boolean builderIgnoresNullValues) |
<T,P> Setter<T,P> |
createSetter(Field field) |
<T,P> Setter<T,P> |
createSetter(Method m) |
long |
getNextClassNumber() |
String |
getPackageName(Type target) |
<T> T |
registerOrCreate(Class<T> clazz,
org.simpleflatmapper.util.UnaryFactory<AsmFactory,T> factory) |
String |
replaceArray(String simpleName) |
public final ClassLoader targetClassLoader
public AsmFactory(ClassLoader targetClassLoader)
public <S,T> Instantiator<S,T> createEmptyArgsInstantiator(Class<S> source, Class<? extends T> target) throws Exception
Exception
public <S,T> Instantiator<S,T> createInstantiator(Class<S> source, InstantiatorDefinition instantiatorDefinition, Map<Parameter,Getter<? super S,?>> injections, boolean builderIgnoresNullValues) throws Exception
Exception
public <S1,S2,T> BiInstantiator<S1,S2,T> createBiInstantiator(Class<?> s1, Class<?> s2, InstantiatorDefinition instantiatorDefinition, Map<Parameter,org.simpleflatmapper.util.BiFunction<? super S1,? super S2,?>> injections, boolean builderIgnoresNullValues) throws Exception
Exception
public long getNextClassNumber()
public <T> T registerOrCreate(Class<T> clazz, org.simpleflatmapper.util.UnaryFactory<AsmFactory,T> factory)
public Object createClass(String className, byte[] bytes, ClassLoader classLoader)
Copyright © 2019. All rights reserved.