Class Lexer.Token
java.lang.Object
com.github.zafarkhaja.semver.expr.Lexer.Token
- Enclosing class:
Lexer
This class holds the information about lexemes in the input stream.
- Since:
- 0.7.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static enumValid token types. -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final StringThe lexeme of this token.(package private) final intThe position of this token.(package private) final Lexer.Token.TypeThe type of this token. -
Constructor Summary
ConstructorsConstructorDescriptionToken(Lexer.Token.Type type, String lexeme, int position) Constructs aTokeninstance with the type, lexeme and position. -
Method Summary
-
Field Details
-
type
The type of this token. -
lexeme
The lexeme of this token. -
position
final int positionThe position of this token.
-
-
Constructor Details
-
Token
Token(Lexer.Token.Type type, String lexeme, int position) Constructs aTokeninstance with the type, lexeme and position.- Parameters:
type- the type of this tokenlexeme- the lexeme of this tokenposition- the position of this token
-
-
Method Details
-
equals
-
hashCode
-
toString
-