de.unkrig.commons.text.scanner
Class AbstractScanner.Token<TT extends java.lang.Enum<TT>>
java.lang.Object
de.unkrig.commons.text.scanner.AbstractScanner.Token<TT>
- Type Parameters:
TT -
- Enclosing class:
- AbstractScanner<TT extends java.lang.Enum<TT>>
public static class AbstractScanner.Token<TT extends java.lang.Enum<TT>>
- extends java.lang.Object
Representation of a scanned token.
|
Field Summary |
java.lang.String |
text
The text of this token, exactly as read from the document. |
TT |
type
The type of this token. |
|
Method Summary |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
type
public final TT extends java.lang.Enum<TT> type
- The type of this token.
text
public final java.lang.String text
- The text of this token, exactly as read from the document.
AbstractScanner.Token
public AbstractScanner.Token(TT type,
java.lang.String text)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object