public abstract class AstNodePropertyIterator extends Object
hasNext() method, like the Iterator. Instead
it only offers a next() method, which returns true
if the iterator points to a valid property after the call to
next().
Example loop:
AstNodePropertyIterator i = iterateProperties();
while (i.next())
{
// Call getName(), getValue() or setValue()
// (these do NOT move the iterator)
}
| Constructor and Description |
|---|
AstNodePropertyIterator() |
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
protected abstract String |
getName(int index) |
protected abstract int |
getPropertyCount() |
Object |
getValue() |
protected abstract Object |
getValue(int index) |
boolean |
next() |
protected abstract Object |
setValue(int index,
Object value) |
Object |
setValue(Object value) |
Copyright © 2009–2017 University of Erlangen-Nürnberg - Open Source Research Group. All rights reserved.