Package net.fauxpark.stringes
Class Token<T>
- java.lang.Object
-
- net.fauxpark.stringes.Stringe
-
- net.fauxpark.stringes.Token<T>
-
- Type Parameters:
T
- The identifier type.
- All Implemented Interfaces:
CharSequence
,Iterable<Chare>
public final class Token<T> extends Stringe
Represents a Token with a string value and a custom identifier.
-
-
Method Summary
-
Methods inherited from class net.fauxpark.stringes.Stringe
between, charAt, chareAt, dilate, empty, endsWith, equals, equalsIgnoreCase, equalsIgnoreCase, getColumn, getEnd, getLine, getNextIndex, getOccurrenceCount, getParent, getValue, hashCode, indexOf, indexOf, indexOf, indexOf, indexOfIgnoreCase, indexOfIgnoreCase, indexOfTotal, indexOfTotal, indexOfTotal, indexOfTotal, indexOfTotalIgnoreCase, indexOfTotalIgnoreCase, isEmpty, isLeftPadded, isNullOrEmpty, isRightPadded, isSubstring, isSubstringeOf, iterator, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOfIgnoreCase, lastIndexOfIgnoreCase, lastIndexOfTotal, lastIndexOfTotal, lastIndexOfTotal, lastIndexOfTotal, lastIndexOfTotalIgnoreCase, lastIndexOfTotalIgnoreCase, length, mutate, offset, range, slice, split, split, split, split, split, split, startsWith, startsWith, subSequence, substringe, substringe, toLowerCase, toStringe, toUpperCase, trim, trim, trimEnd, trimStart
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.CharSequence
chars, codePoints
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
getId
public T getId()
Returns the token identifier.- Returns:
- The identifier of the token.
-
toString
public String toString()
Returns a string representation of the current token.- Specified by:
toString
in interfaceCharSequence
- Overrides:
toString
in classStringe
- Returns:
- A string containing the value of the token, as well as its line and column numbers.
-
-