Package org.apache.cxf.common.util
Class ASMHelperImpl
- java.lang.Object
-
- org.apache.cxf.common.util.ASMHelperImpl
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.cxf.common.util.ASMHelper
ASMHelper.AnnotationVisitor, ASMHelper.ASMType, ASMHelper.ClassWriter, ASMHelper.FieldVisitor, ASMHelper.Label, ASMHelper.MethodVisitor
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
badASM
protected static Map<Class<?>,String>
NONPRIMITIVE_MAP
protected static Map<Class<?>,String>
PRIMITIVE_MAP
protected static Map<Class<?>,Integer>
PRIMITIVE_ZERO_MAP
-
Constructor Summary
Constructors Constructor Description ASMHelperImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ASMHelper.ClassWriter
createClassWriter()
ASMHelper.Label
createLabel()
Class<?>
getASMClass()
String
getClassCode(Class<?> cl)
String
getClassCode(Type type)
String
getMethodSignature(Method m)
String
getNonPrimitive(Class<?> tp)
OpcodesProxy
getOpCodes()
String
getPrimitive(Class<?> tp)
ASMHelper.ASMType
getType(String type)
void
setBadASM(boolean b)
-
-
-
Method Detail
-
getASMClass
public Class<?> getASMClass() throws ClassNotFoundException
- Specified by:
getASMClass
in interfaceASMHelper
- Throws:
ClassNotFoundException
-
getOpCodes
public OpcodesProxy getOpCodes()
- Specified by:
getOpCodes
in interfaceASMHelper
-
setBadASM
public void setBadASM(boolean b)
-
getMethodSignature
public String getMethodSignature(Method m)
- Specified by:
getMethodSignature
in interfaceASMHelper
-
getNonPrimitive
public String getNonPrimitive(Class<?> tp)
- Specified by:
getNonPrimitive
in interfaceASMHelper
-
getPrimitive
public String getPrimitive(Class<?> tp)
- Specified by:
getPrimitive
in interfaceASMHelper
-
getClassCode
public String getClassCode(Class<?> cl)
- Specified by:
getClassCode
in interfaceASMHelper
-
getClassCode
public String getClassCode(Type type)
- Specified by:
getClassCode
in interfaceASMHelper
-
createClassWriter
public ASMHelper.ClassWriter createClassWriter()
- Specified by:
createClassWriter
in interfaceASMHelper
-
getType
public ASMHelper.ASMType getType(String type)
-
createLabel
public ASMHelper.Label createLabel()
- Specified by:
createLabel
in interfaceASMHelper
-
-