Class ClassWriter


  • public class ClassWriter
    extends Object
    Author:
    Eric Bruneton
    • Constructor Detail

      • ClassWriter

        public ClassWriter()
    • 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)
      • newNameTypeItem

        public com.alibaba.fastjson.asm.Item newNameTypeItem​(String name,
                                                             String desc)