public static class TypeState.TypesObjectsIterator extends Object
TypesObjectsIterator toi = state.getTypesObjectsIterator();
while(toi.hasNextType()) {
AnalysisType t = toi.nextType();
// use type here
while(toi.hasNextObject(t)) {
AnalysisObject o = toi.nextObject(t);
// use object here
}
}
Constructor and Description |
---|
TypesObjectsIterator(TypeState state) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNextObject(AnalysisType type)
Returns true if there are more objects of the current type.
|
boolean |
hasNextType()
Returns true if there is a next type in the objects array, i.e., there are objects of a
type other than the current type.
|
AnalysisObject |
nextObject(AnalysisType type)
Gets the next object.
|
AnalysisType |
nextType()
Gets the next type.
|
public TypesObjectsIterator(TypeState state)
public boolean hasNextType()
public boolean hasNextObject(AnalysisType type)
public AnalysisType nextType()
public AnalysisObject nextObject(AnalysisType type)