Package org.helm.notation2
Class SimpleNotationGroupIterator
java.lang.Object
org.helm.notation2.SimpleNotationGroupIterator
public class SimpleNotationGroupIterator extends Object
Iterator class for groups within a simple notation string
- Author:
- maisel
-
Field Summary
Fields Modifier and Type Field Description protected char[]charactersprotected StringnotationStringprotected intposition -
Constructor Summary
Constructors Constructor Description SimpleNotationGroupIterator(String notationString)Constructs a group iterator for a notation string -
Method Summary
Modifier and Type Method Description booleanhasNextGroup()Checks if there is a next groupStringnextGroup()Returns the next group
-
Field Details
-
characters
protected char[] characters -
notationString
-
position
protected int position
-
-
Constructor Details
-
SimpleNotationGroupIterator
Constructs a group iterator for a notation string- Parameters:
notationString- input notation string
-
-
Method Details
-
hasNextGroup
public boolean hasNextGroup()Checks if there is a next group- Returns:
- true if the iterator has another group otherwise false
-
nextGroup
Returns the next group- Returns:
- notation group
-