Package net.sf.cglib.core
Class TypeUtils
- java.lang.Object
-
- net.sf.cglib.core.TypeUtils
-
public class TypeUtils extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Maprtransformsprivate static java.util.Maptransforms
-
Constructor Summary
Constructors Modifier Constructor Description privateTypeUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.objectweb.asm.Type[]add(org.objectweb.asm.Type[] types, org.objectweb.asm.Type extra)static org.objectweb.asm.Type[]add(org.objectweb.asm.Type[] t1, org.objectweb.asm.Type[] t2)static intDCONST(double value)static java.lang.StringemulateClassGetName(org.objectweb.asm.Type type)static java.lang.StringescapeType(java.lang.String s)static intFCONST(float value)static org.objectweb.asm.TypefromInternalName(java.lang.String name)static org.objectweb.asm.Type[]fromInternalNames(java.lang.String[] names)static org.objectweb.asm.TypegetBoxedType(org.objectweb.asm.Type type)static java.lang.StringgetClassName(org.objectweb.asm.Type type)static org.objectweb.asm.TypegetComponentType(org.objectweb.asm.Type type)static java.lang.StringgetPackageName(java.lang.String className)static java.lang.StringgetPackageName(org.objectweb.asm.Type type)static intgetStackSize(org.objectweb.asm.Type[] types)static org.objectweb.asm.TypegetType(java.lang.String className)static org.objectweb.asm.Type[]getTypes(java.lang.Class[] classes)static org.objectweb.asm.TypegetUnboxedType(org.objectweb.asm.Type type)static intICONST(int value)static booleanisAbstract(int access)static booleanisArray(org.objectweb.asm.Type type)static booleanisBridge(int access)static booleanisConstructor(MethodInfo method)static booleanisFinal(int access)static booleanisInterface(int access)static booleanisPrimitive(org.objectweb.asm.Type type)static booleanisPrivate(int access)static booleanisProtected(int access)static booleanisPublic(int access)static booleanisStatic(int access)static booleanisSynthetic(int access)static intLCONST(long value)private static java.lang.Stringmap(java.lang.String type)static intNEWARRAY(org.objectweb.asm.Type type)static SignatureparseConstructor(java.lang.String sig)static SignatureparseConstructor(org.objectweb.asm.Type[] types)static SignatureparseSignature(java.lang.String s)static org.objectweb.asm.TypeparseType(java.lang.String s)static org.objectweb.asm.Type[]parseTypes(java.lang.String s)private static java.util.ListparseTypes(java.lang.String s, int mark, int end)static java.lang.String[]toInternalNames(org.objectweb.asm.Type[] types)static java.lang.StringupperFirst(java.lang.String s)
-
-
-
Method Detail
-
getType
public static org.objectweb.asm.Type getType(java.lang.String className)
-
isFinal
public static boolean isFinal(int access)
-
isStatic
public static boolean isStatic(int access)
-
isProtected
public static boolean isProtected(int access)
-
isPublic
public static boolean isPublic(int access)
-
isAbstract
public static boolean isAbstract(int access)
-
isInterface
public static boolean isInterface(int access)
-
isPrivate
public static boolean isPrivate(int access)
-
isSynthetic
public static boolean isSynthetic(int access)
-
isBridge
public static boolean isBridge(int access)
-
getPackageName
public static java.lang.String getPackageName(org.objectweb.asm.Type type)
-
getPackageName
public static java.lang.String getPackageName(java.lang.String className)
-
upperFirst
public static java.lang.String upperFirst(java.lang.String s)
-
getClassName
public static java.lang.String getClassName(org.objectweb.asm.Type type)
-
add
public static org.objectweb.asm.Type[] add(org.objectweb.asm.Type[] types, org.objectweb.asm.Type extra)
-
add
public static org.objectweb.asm.Type[] add(org.objectweb.asm.Type[] t1, org.objectweb.asm.Type[] t2)
-
fromInternalName
public static org.objectweb.asm.Type fromInternalName(java.lang.String name)
-
fromInternalNames
public static org.objectweb.asm.Type[] fromInternalNames(java.lang.String[] names)
-
getStackSize
public static int getStackSize(org.objectweb.asm.Type[] types)
-
toInternalNames
public static java.lang.String[] toInternalNames(org.objectweb.asm.Type[] types)
-
parseSignature
public static Signature parseSignature(java.lang.String s)
-
parseType
public static org.objectweb.asm.Type parseType(java.lang.String s)
-
parseTypes
public static org.objectweb.asm.Type[] parseTypes(java.lang.String s)
-
parseConstructor
public static Signature parseConstructor(org.objectweb.asm.Type[] types)
-
parseConstructor
public static Signature parseConstructor(java.lang.String sig)
-
parseTypes
private static java.util.List parseTypes(java.lang.String s, int mark, int end)
-
map
private static java.lang.String map(java.lang.String type)
-
getBoxedType
public static org.objectweb.asm.Type getBoxedType(org.objectweb.asm.Type type)
-
getUnboxedType
public static org.objectweb.asm.Type getUnboxedType(org.objectweb.asm.Type type)
-
isArray
public static boolean isArray(org.objectweb.asm.Type type)
-
getComponentType
public static org.objectweb.asm.Type getComponentType(org.objectweb.asm.Type type)
-
isPrimitive
public static boolean isPrimitive(org.objectweb.asm.Type type)
-
emulateClassGetName
public static java.lang.String emulateClassGetName(org.objectweb.asm.Type type)
-
isConstructor
public static boolean isConstructor(MethodInfo method)
-
getTypes
public static org.objectweb.asm.Type[] getTypes(java.lang.Class[] classes)
-
ICONST
public static int ICONST(int value)
-
LCONST
public static int LCONST(long value)
-
FCONST
public static int FCONST(float value)
-
DCONST
public static int DCONST(double value)
-
NEWARRAY
public static int NEWARRAY(org.objectweb.asm.Type type)
-
escapeType
public static java.lang.String escapeType(java.lang.String s)
-
-