Package io.activej.codegen.util
Class Utils
java.lang.Object
io.activej.codegen.util.Utils
public final class Utils extends Object
-
Constructor Summary
Constructors Constructor Description Utils() -
Method Summary
Modifier and Type Method Description static StringexceptionInGeneratedClass(Context ctx)static voidinvokeVirtualOrInterface(org.objectweb.asm.commons.GeneratorAdapter g, Class<?> owner, org.objectweb.asm.commons.Method method)static booleanisPrimitiveType(org.objectweb.asm.Type type)static booleanisValidCast(org.objectweb.asm.Type from, org.objectweb.asm.Type to)static booleanisWrapperType(org.objectweb.asm.Type type)static org.objectweb.asm.commons.MethodtoPrimitive(org.objectweb.asm.Type type)static org.objectweb.asm.Typeunwrap(@NotNull org.objectweb.asm.Type type)static org.objectweb.asm.Typewrap(org.objectweb.asm.Type type)
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
isPrimitiveType
public static boolean isPrimitiveType(org.objectweb.asm.Type type) -
isWrapperType
public static boolean isWrapperType(org.objectweb.asm.Type type) -
toPrimitive
public static org.objectweb.asm.commons.Method toPrimitive(org.objectweb.asm.Type type) -
wrap
public static org.objectweb.asm.Type wrap(org.objectweb.asm.Type type) -
unwrap
public static org.objectweb.asm.Type unwrap(@NotNull @NotNull org.objectweb.asm.Type type) -
invokeVirtualOrInterface
public static void invokeVirtualOrInterface(org.objectweb.asm.commons.GeneratorAdapter g, Class<?> owner, org.objectweb.asm.commons.Method method) -
exceptionInGeneratedClass
-
isValidCast
public static boolean isValidCast(org.objectweb.asm.Type from, org.objectweb.asm.Type to)
-