Package io.activej.codegen
Class Context
java.lang.Object
io.activej.codegen.Context
public final class Context extends Object
Contains information about a dynamic class
-
Constructor Summary
Constructors Constructor Description Context(DefiningClassLoader classLoader, ClassBuilder<?> builder, org.objectweb.asm.commons.GeneratorAdapter g, org.objectweb.asm.Type selfType, org.objectweb.asm.commons.Method method) -
Method Summary
Modifier and Type Method Description voidcast(org.objectweb.asm.Type typeFrom, org.objectweb.asm.Type typeTo)ClassBuilder<?>getClassBuilder()DefiningClassLoadergetClassLoader()Map<String,Class<?>>getFields()org.objectweb.asm.commons.GeneratorAdaptergetGeneratorAdapter()List<Class<?>>getInterfaces()org.objectweb.asm.commons.MethodgetMethod()Map<org.objectweb.asm.commons.Method,Expression>getMethods()org.objectweb.asm.TypegetSelfType()Map<org.objectweb.asm.commons.Method,Expression>getStaticMethods()Class<?>getSuperclass()org.objectweb.asm.Typeinvoke(Expression owner, String methodName, Expression... arguments)org.objectweb.asm.Typeinvoke(Expression owner, String methodName, List<Expression> arguments)org.objectweb.asm.Typeinvoke(org.objectweb.asm.Type ownerType, String methodName, org.objectweb.asm.Type... argumentTypes)org.objectweb.asm.TypeinvokeConstructor(org.objectweb.asm.Type ownerType, Expression... arguments)org.objectweb.asm.TypeinvokeConstructor(org.objectweb.asm.Type ownerType, List<Expression> arguments)org.objectweb.asm.TypeinvokeConstructor(org.objectweb.asm.Type ownerType, org.objectweb.asm.Type... argumentTypes)org.objectweb.asm.TypeinvokeStatic(org.objectweb.asm.Type ownerType, String methodName, Expression... arguments)org.objectweb.asm.TypeinvokeStatic(org.objectweb.asm.Type ownerType, String methodName, List<Expression> arguments)org.objectweb.asm.TypeinvokeStatic(org.objectweb.asm.Type ownerType, String methodName, org.objectweb.asm.Type... argumentTypes)VarLocalnewLocal(org.objectweb.asm.Type type)Class<?>toJavaType(org.objectweb.asm.Type type)
-
Constructor Details
-
Context
public Context(DefiningClassLoader classLoader, ClassBuilder<?> builder, org.objectweb.asm.commons.GeneratorAdapter g, org.objectweb.asm.Type selfType, org.objectweb.asm.commons.Method method)
-
-
Method Details
-
getClassLoader
-
getClassBuilder
-
getGeneratorAdapter
public org.objectweb.asm.commons.GeneratorAdapter getGeneratorAdapter() -
getSelfType
public org.objectweb.asm.Type getSelfType() -
getSuperclass
-
getInterfaces
-
getFields
-
getMethods
-
getStaticMethods
-
getMethod
public org.objectweb.asm.commons.Method getMethod() -
newLocal
-
toJavaType
-
cast
public void cast(org.objectweb.asm.Type typeFrom, org.objectweb.asm.Type typeTo) -
invoke
-
invoke
public org.objectweb.asm.Type invoke(Expression owner, String methodName, List<Expression> arguments) -
invoke
public org.objectweb.asm.Type invoke(org.objectweb.asm.Type ownerType, String methodName, org.objectweb.asm.Type... argumentTypes) -
invokeStatic
public org.objectweb.asm.Type invokeStatic(org.objectweb.asm.Type ownerType, String methodName, Expression... arguments) -
invokeStatic
public org.objectweb.asm.Type invokeStatic(org.objectweb.asm.Type ownerType, String methodName, List<Expression> arguments) -
invokeStatic
public org.objectweb.asm.Type invokeStatic(org.objectweb.asm.Type ownerType, String methodName, org.objectweb.asm.Type... argumentTypes) -
invokeConstructor
public org.objectweb.asm.Type invokeConstructor(org.objectweb.asm.Type ownerType, Expression... arguments) -
invokeConstructor
public org.objectweb.asm.Type invokeConstructor(org.objectweb.asm.Type ownerType, List<Expression> arguments) -
invokeConstructor
public org.objectweb.asm.Type invokeConstructor(org.objectweb.asm.Type ownerType, org.objectweb.asm.Type... argumentTypes)
-