|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vladium.jcd.cls.MethodCollection
final class MethodCollection
| Field Summary | |
|---|---|
private java.util.List |
m_methods
|
| Constructor Summary | |
|---|---|
MethodCollection(int capacity)
|
|
| Method Summary | |
|---|---|
void |
accept(IClassDefVisitor visitor,
java.lang.Object ctx)
|
int |
add(Method_info method)
Adds a new Method_info descriptor to this collection. |
java.lang.Object |
clone()
Performs a deep copy. |
int[] |
get(ClassDef cls,
java.lang.String name)
Returns an array of offsets for methods named 'name' (empty array if no matching fields found). |
Method_info |
get(int offset)
Returns Method_info descriptor at a given offset. |
Method_info |
remove(int offset)
Removes the Method_info descriptor at a given offset. |
Method_info |
set(int offset,
Method_info method)
Replaces the Method_info descriptor at a given offset. |
int |
size()
Returns the number of methods in this collection [can be 0]. |
void |
writeInClassFormat(UDataOutputStream out)
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.util.List m_methods
| Constructor Detail |
|---|
MethodCollection(int capacity)
| Method Detail |
|---|
public Method_info get(int offset)
IMethodCollectionMethod_info descriptor at a given offset.
get in interface IMethodCollectionoffset - method offset [must be in [0, size()) range; input not checked]
public int[] get(ClassDef cls,
java.lang.String name)
IMethodCollection
get in interface IMethodCollectioncls - class definition providing the constant pool against which to
resolve names [may not be null]name - method name [null or empty will result in no matches]
public int size()
IMethodCollection
size in interface IMethodCollectionpublic java.lang.Object clone()
clone in interface IMethodCollectionclone in class java.lang.Object
public void writeInClassFormat(UDataOutputStream out)
throws java.io.IOException
writeInClassFormat in interface IClassFormatOutputjava.io.IOException
public void accept(IClassDefVisitor visitor,
java.lang.Object ctx)
accept in interface IMethodCollectionpublic int add(Method_info method)
IMethodCollection
add in interface IMethodCollectionmethod - new method descriptor [may not be null]
public Method_info set(int offset,
Method_info method)
IMethodCollection
set in interface IMethodCollectionoffset - method offset [must be in [0, size()) range; input not checked]method - new method descriptor [may not be null]
public Method_info remove(int offset)
IMethodCollection
remove in interface IMethodCollectionoffset - method offset [must be in [0, size()) range; input not checked]
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||