|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
be.lassi.lanbox.tools
Class Tokenizer
java.lang.Objectbe.lassi.lanbox.tools.Tokenizer
public class Tokenizer
- extends java.lang.Object
Splits up a string in tokens.
| Constructor Summary | |
|---|---|
Tokenizer(java.lang.String string)
Constructs a new instance. |
|
| Method Summary | |
|---|---|
boolean |
contains(java.lang.String tokenString)
Indicates whether the string contains a token that matches given string. |
java.lang.String |
getString()
Gets the complete string. |
boolean |
hasNext()
Indicates whether there are more tokens. |
Token |
next()
Gets the next token. |
Token |
previous()
Gets the previous token. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
Tokenizer
public Tokenizer(java.lang.String string)
- Constructs a new instance.
- Parameters:
string- the string to be splitted up in tokens
| Method Detail |
|---|
contains
public boolean contains(java.lang.String tokenString)
- Indicates whether the string contains a token that matches given string.
- Parameters:
tokenString- the string to compare with- Returns:
- true if the string contains given string
getString
public java.lang.String getString()
- Gets the complete string.
- Returns:
- the complete string
hasNext
public boolean hasNext()
- Indicates whether there are more tokens.
- Returns:
- true if there are more tokens
next
public Token next()
- Gets the next token.
- Returns:
- the next token
previous
public Token previous()
- Gets the previous token.
- Returns:
- the previous token
|
Lighting Assistant 1.2 | ||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
be.lassi.lanbox.tools.Tokenizer