Top Description Fields Constructors Methods
org.codehaus.groovy.classgen.asm.util

public abstract Class TypeUtil

extends Object
Class Inheritance
Imports
groovy.lang.Tuple2, org.apache.groovy.util.Maps, org.codehaus.groovy.ast.ClassNode, org.objectweb.asm.Type, java.util.Map

A utility for getting information of types
Since
2.5.0

Field Summary

Modifier and TypeField and Description
private static final Map<String, ClassNode>
private static final Map<ClassNode, String>
private static final Map<Type, Integer>
private static final Map<Type, Integer>
private static final Map<Type, String>
private static final Map<Class<T>, Class<T>>
private static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static Class<T>
autoboxType(Class<T> type)

private static Tuple2<ClassNode, Integer>
public static String
public static String
public static int
public static int
public static String
public static boolean
public static boolean
public static boolean
private static String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

NAME_TO_PRIMITIVE_TYPE_MAPback to summary
private static final Map<String, ClassNode> NAME_TO_PRIMITIVE_TYPE_MAP
PRIMITIVE_TYPE_TO_DESCRIPTION_MAPback to summary
private static final Map<ClassNode, String> PRIMITIVE_TYPE_TO_DESCRIPTION_MAP
PRIMITIVE_TYPE_TO_LOAD_INSN_MAPback to summary
private static final Map<Type, Integer> PRIMITIVE_TYPE_TO_LOAD_INSN_MAP
PRIMITIVE_TYPE_TO_RETURN_INSN_MAPback to summary
private static final Map<Type, Integer> PRIMITIVE_TYPE_TO_RETURN_INSN_MAP
PRIMITIVE_TYPE_TO_WRAPPED_CLASS_DESCRIPTOR_MAPback to summary
private static final Map<Type, String> PRIMITIVE_TYPE_TO_WRAPPED_CLASS_DESCRIPTOR_MAP
PRIMITIVE_TYPE_TO_WRAPPED_CLASS_MAPback to summary
private static final Map<Class<T>, Class<T>> PRIMITIVE_TYPE_TO_WRAPPED_CLASS_MAP
REF_DESCRIPTIONback to summary
private static final String REF_DESCRIPTION

Constructor Detail

TypeUtilback to summary
public TypeUtil()

Method Detail

autoboxTypeback to summary
public static Class<T> autoboxType(Class<T> type)
extractArrayInfoback to summary
private static Tuple2<ClassNode, Integer> extractArrayInfo(ClassNode type)
getDescriptionByNameback to summary
public static String getDescriptionByName(String name)
getDescriptionByTypeback to summary
public static String getDescriptionByType(ClassNode type)
getLoadInsnByTypeback to summary
public static int getLoadInsnByType(Type type)
getReturnInsnByTypeback to summary
public static int getReturnInsnByType(Type type)
getWrappedClassDescriptorback to summary
public static String getWrappedClassDescriptor(Type type)
isPrimitiveTypeback to summary
public static boolean isPrimitiveType(Type type)
isPrimitiveTypeback to summary
public static boolean isPrimitiveType(String name)
isPrimitiveTypeback to summary
public static boolean isPrimitiveType(ClassNode type)
makeRefDescriptionback to summary
private static String makeRefDescription(String name)