public class ClassWriter extends Object
构造器和说明 |
---|
ClassWriter() |
限定符和类型 | 方法和说明 |
---|---|
com.alibaba.fastjson.asm.Item |
newClassItem(String value) |
com.alibaba.fastjson.asm.Item |
newNameTypeItem(String name,
String desc)
Adds a name and type to the constant pool of the class being build.
|
int |
newUTF8(String value) |
byte[] |
toByteArray()
Returns the bytecode of the class that was build with this class writer.
|
void |
visit(int version,
int access,
String name,
String superName,
String[] interfaces) |
public void visit(int version, int access, String name, String superName, String[] interfaces)
public byte[] toByteArray()
public int newUTF8(String value)
public com.alibaba.fastjson.asm.Item newClassItem(String value)
public com.alibaba.fastjson.asm.Item newNameTypeItem(String name, String desc)
name
- a name.desc
- a type descriptor.Copyright © 2012–2016 Alibaba Group. All rights reserved.