public class ClassWriter extends Object
| Constructor and Description |
|---|
ClassWriter() |
| Modifier and Type | Method and Description |
|---|---|
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–2017 Alibaba Group. All rights reserved.