Class SNBTTokenizer.Token
java.lang.Object
de.pauleff.formats.snbt.SNBTTokenizer.Token
-
Constructor Summary
ConstructorsConstructorDescriptionToken(SNBTTokenizer.TokenType type, String value, int position) Creates a new token. -
Method Summary
-
Constructor Details
-
Token
Creates a new token.- Parameters:
type- the token typevalue- the token valueposition- the position in the input where this token starts
-
-
Method Details
-
getType
-
getValue
-
getPosition
public int getPosition()Returns the position where this token starts in the input.- Returns:
- the starting position
-
toString
-