Methods Summary |
---|
public void | accept(IClassDefVisitor visitor, java.lang.Object ctx)
|
public int | add(Method_info method)Adds a new Method_info descriptor to this collection. No duplicate
checks are made. It is the responsibility of the caller to ensure
that all data referenced in 'method' will eventually appear in the
constant pool.
|
public java.lang.Object | clone()
|
public Method_info | get(int offset)Returns {@link Method_info} descriptor at a given offset.
|
public int[] | get(ClassDef cls, java.lang.String name)Returns an array of offsets for methods named 'name' (empty array if no
matching fields found).
|
public Method_info | remove(int offset)Removes the Method_info descriptor at a given offset. It is
the responsibility of the caller to ensure that the class definition
remains consistent after this change.
|
public Method_info | set(int offset, Method_info method)Replaces the Method_info descriptor at a given offset. No duplicate
checks are made. No method type compatibility checks are made. It is
the responsibility of the caller to ensure that all data referenced
in 'method' will eventually appear in the constant pool.
|
public int | size()Returns the number of methods in this collection [can be 0].
|