|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.multijava.util.Utils
org.multijava.mjc.CAbstractMethodSet
This class encapsulates a collection of method signatures. It is used to track the type signatures of methods declared in a class and to track the apparent methods of a class as augmented by external methods as viewed by another compilation unit.
| Nested Class Summary | |
class |
CAbstractMethodSet.Iterator
This nested class mimics the java.util.Iterator
interface but is specific to collections of
CMethod. |
| Field Summary | |
private ArrayList |
methods
The signatures of the methods in this collection. |
| Fields inherited from class org.multijava.util.Utils |
DBG_LEVEL_HIGH, DBG_LEVEL_LOW, DBG_LEVEL_NO |
| Constructor Summary | |
protected |
CAbstractMethodSet()
|
protected |
CAbstractMethodSet(CMethod[] methodArray)
|
| Method Summary | |
void |
addMethod(CMethod m)
Adds the given method to this method set. |
boolean |
contains(CMethod m)
Indicates whether this set contains the given method. |
CMethod |
getFirst()
Returns the first method in this collection or null if the collection is empty. |
CMethod |
getMethod(int i)
Returns the method with the given index. |
boolean |
isEmpty()
Indicates whether this set is empty. |
CAbstractMethodSet.Iterator |
iterator()
|
int |
size()
Indicates the number of methods in this collection. |
String |
toString()
|
| Methods inherited from class org.multijava.util.Utils |
assertTrue, assertTrue, combineArrays, escapeString, escapeString, fail, fail, getFilePath, hasFlag, hasOtherFlags, parsePathParts, relativePathTo, splitQualifiedName, splitQualifiedName, stripJavaModifiers, stripNonJavaModifiers, stripPrivateModifier, unescapeString, vectorToArray, vectorToIntArray |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private final ArrayList methods
| Constructor Detail |
protected CAbstractMethodSet()
protected CAbstractMethodSet(CMethod[] methodArray)
| Method Detail |
public int size()
public boolean isEmpty()
public boolean contains(CMethod m)
public CMethod getFirst()
public String toString()
toString in class Objectpublic void addMethod(CMethod m)
m - the method to be added to this setpublic CMethod getMethod(int i)
i - the index of the method to returnpublic CAbstractMethodSet.Iterator iterator()
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||