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 ({ (( })


Variable Index

 o activePos
Active position in the parsed String.
 o close
 o open

Constructor Index

 o BracketST(String, String, String, String)

Method Index

 o getNextPos()
Returns the start position of the next Token.
 o nextElement()
 o nextToken()
Returns the next Token.

Variables

 o open
 protected String open
 o close
 protected String close
 o activePos
 protected int activePos
Active position in the parsed String.

Constructors

 o BracketST
 public BracketST(String eingabe,
                  String Trenner,
                  String Open,
                  String Close)

Methods

 o 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.

 o nextElement
 public Object nextElement()
Overrides:
nextElement in class StringTokenizer
 o 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