- java.lang.Object
-
- org.mal_lang.lib.Position
-
- org.mal_lang.lib.Token
-
- All Implemented Interfaces:
Comparable<Position>
public class Token extends Position
-
-
Field Summary
Fields Modifier and Type Field Description double
doubleValue
int
intValue
List<Token>
postComments
List<Token>
preComments
String
stringValue
TokenType
type
-
Constructor Summary
Constructors Constructor Description Token(Token tok, List<Token> preComments, List<Token> postComments)
Token(TokenType type, String filename, int line, int col)
Token(TokenType type, String filename, int line, int col, double doubleValue)
Token(TokenType type, String filename, int line, int col, int intValue)
Token(TokenType type, String filename, int line, int col, String stringValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
-