de.unkrig.commons.text.scanner
Class AbstractScanner.Token<TT extends java.lang.Enum<TT>>

java.lang.Object
  extended by 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.
 
Constructor Summary
AbstractScanner.Token(TT type, java.lang.String text)
           
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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.

Constructor Detail

AbstractScanner.Token

public AbstractScanner.Token(TT type,
                             java.lang.String text)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object