Methods Summary |
---|
public void | accept(IClassDefVisitor visitor, java.lang.Object ctx)
|
public int | add(Field_info field)Adds a new Field_info descriptor to this collection. No duplicate
checks are made. It is the responsibility of the caller to ensure
that all data referenced in 'field' will eventually appear in the
constant pool.
|
public java.lang.Object | clone()
|
public Field_info | get(int offset)Returns {@link Field_info} descriptor at a given offset.
|
public int[] | get(ClassDef cls, java.lang.String name)Returns an array of offsets for fields named 'name' (empty array if no
matching fields found). Note: even though Java syntax disallows for a class
to have multiple fields with the same name it is possible at the bytecode
level (as long as the type descriptors disambiguate).
|
public Field_info | set(int offset, Field_info field)Replaces the Field_info descriptor at a given offset. No duplicate
checks are made. No field type compatibility checks are made. It is
the responsibility of the caller to ensure that all data referenced
in 'field' will eventually appear in the constant pool.
|
public int | size()Returns the number of fields in this collection [can be 0].
|