All Packages Class Hierarchy This Package Previous Next Index
Class term.BracketST
java.lang.Object
|
+----java.util.StringTokenizer
|
+----term.BracketST
- public class BracketST
- extends StringTokenizer
Tokenize Strings at given characters considering brackets !
Needs brackets to be set correctly, i.e. not like
({)}
or ({ (( })
-
activePos
- Active position in the parsed String.
-
close
-
-
open
-
-
BracketST(String, String, String, String)
-
-
getNextPos()
- Returns the start position of the next Token.
-
nextElement()
-
-
nextToken()
- Returns the next Token.
open
protected String open
close
protected String close
activePos
protected int activePos
- Active position in the parsed String.
BracketST
public BracketST(String eingabe,
String Trenner,
String Open,
String Close)
getNextPos
public int getNextPos()
- Returns the start position of the next Token.
Points beyond the length of the parsed String if there
is no further Token left.
nextElement
public Object nextElement()
- Overrides:
- nextElement in class StringTokenizer
nextToken
public String nextToken()
- Returns the next Token. Checks the token for the correct number
of opening and closing brackets adding characters until the brackets
are completed.
- Overrides:
- nextToken in class StringTokenizer
All Packages Class Hierarchy This Package Previous Next Index