public static final class ClassFileWriter.FieldWriter extends Object
| Modifier and Type | Field | Description |
|---|---|---|
protected ClassFileWriter.ConstPoolWriter |
constPool |
|
protected javassist.bytecode.ByteStream |
output |
| Modifier and Type | Method | Description |
|---|---|---|
void |
add(int accessFlags,
int name,
int descriptor,
ClassFileWriter.AttributeWriter aw) |
Adds a new field.
|
void |
add(int accessFlags,
String name,
String descriptor,
ClassFileWriter.AttributeWriter aw) |
Adds a new field.
|
protected javassist.bytecode.ByteStream output
protected ClassFileWriter.ConstPoolWriter constPool
public void add(int accessFlags,
String name,
String descriptor,
ClassFileWriter.AttributeWriter aw)
accessFlags - access flags.name - the field name.descriptor - the field type.aw - the attributes of the field. may be null.AccessFlagpublic void add(int accessFlags,
int name,
int descriptor,
ClassFileWriter.AttributeWriter aw)
accessFlags - access flags.name - the field name. an index indicating its CONSTANT_Utf8_info.descriptor - the field type. an index indicating its CONSTANT_Utf8_info.aw - the attributes of the field. may be null.AccessFlagCopyright © 2018 Shigeru Chiba, www.javassist.org. All rights reserved.