Package com.alibaba.fastjson.asm
Class ClassWriter
- java.lang.Object
-
- com.alibaba.fastjson.asm.ClassWriter
-
public class ClassWriter extends Object
- Author:
- Eric Bruneton
-
-
Constructor Summary
Constructors Constructor Description ClassWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.alibaba.fastjson.asm.ItemnewClassItem(String value)com.alibaba.fastjson.asm.ItemnewNameTypeItem(String name, String desc)intnewUTF8(String value)byte[]toByteArray()Returns the bytecode of the class that was build with this class writer.voidvisit(int version, int access, String name, String superName, String[] interfaces)
-
-
-
Method Detail
-
visit
public void visit(int version, int access, String name, String superName, String[] interfaces)
-
toByteArray
public byte[] toByteArray()
Returns the bytecode of the class that was build with this class writer.- Returns:
- the bytecode of the class that was build with this class writer.
-
newUTF8
public int newUTF8(String value)
-
newClassItem
public com.alibaba.fastjson.asm.Item newClassItem(String value)
-
-