javassist.bytecode
Class ClassFileWriter.FieldWriter
java.lang.Object
javassist.bytecode.ClassFileWriter.FieldWriter
- Enclosing class:
- ClassFileWriter
public static final class ClassFileWriter.FieldWriter
- extends java.lang.Object
Field.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
output
protected javassist.bytecode.ByteStream output
constPool
protected ClassFileWriter.ConstPoolWriter constPool
add
public void add(int accessFlags,
java.lang.String name,
java.lang.String descriptor,
ClassFileWriter.AttributeWriter aw)
- Adds a new field.
- Parameters:
accessFlags
- access flags.name
- the field name.descriptor
- the field type.aw
- the attributes of the field. may be null.- See Also:
AccessFlag
add
public void add(int accessFlags,
int name,
int descriptor,
ClassFileWriter.AttributeWriter aw)
- Adds a new field.
- Parameters:
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.- See Also:
AccessFlag
Copyright © 2011. All Rights Reserved.