class Token extends Object implements Comparable<Token>
Modifier and Type | Field and Description |
---|---|
(package private) static Token |
__CONST |
(package private) static Token |
__INTERFACE |
(package private) static Token |
AUTO |
(package private) static Token |
CLASS |
(package private) static int |
COMMENT |
(package private) static Token |
CONST |
(package private) static Token |
CONSTEXPR |
(package private) static Token |
DECLTYPE |
(package private) static Token |
DEFAULT |
(package private) static Token |
DEFINE |
(package private) static Token |
DELETE |
(package private) static Token |
ELIF |
(package private) static Token |
ELSE |
(package private) static Token |
ENDIF |
(package private) static Token |
ENUM |
(package private) static Token |
EOF |
(package private) static Token |
EXPLICIT |
(package private) static Token |
EXTERN |
(package private) File |
file |
(package private) static Token |
FINAL |
(package private) static int |
FLOAT |
(package private) static Token |
FRIEND |
(package private) static int |
IDENTIFIER |
(package private) static Token |
IF |
(package private) static Token |
IFDEF |
(package private) static Token |
IFNDEF |
(package private) static Token |
INLINE |
(package private) static int |
INTEGER |
(package private) static Token |
INTERFACE |
(package private) int |
lineNumber |
(package private) static Token |
MUTABLE |
(package private) static Token |
NAMESPACE |
(package private) static Token |
NEW |
(package private) static Token |
OPERATOR |
(package private) static Token |
PRIVATE |
(package private) static Token |
PROTECTED |
(package private) static Token |
PUBLIC |
(package private) static Token |
REGISTER |
(package private) String |
spacing |
(package private) static Token |
STATIC |
(package private) static int |
STRING |
(package private) static Token |
STRUCT |
(package private) static int |
SYMBOL |
(package private) static Token |
TEMPLATE |
(package private) String |
text |
(package private) static Token |
THREAD_LOCAL |
(package private) int |
type |
(package private) static Token |
TYPEDEF |
(package private) static Token |
TYPENAME |
(package private) static Token |
UNION |
(package private) static Token |
USING |
(package private) String |
value |
(package private) static Token |
VIRTUAL |
(package private) static Token |
VOLATILE |
Constructor and Description |
---|
Token() |
Token(int type,
String value) |
Token(Token t) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Token t) |
boolean |
equals(Object obj) |
(package private) Token |
expect(Object... tokens) |
int |
hashCode() |
(package private) boolean |
isEmpty() |
(package private) boolean |
match(Object... tokens) |
String |
toString() |
static final int INTEGER
static final int FLOAT
static final int STRING
static final int COMMENT
static final int IDENTIFIER
static final int SYMBOL
static final Token EOF
static final Token AUTO
static final Token CONST
static final Token __CONST
static final Token CONSTEXPR
static final Token DECLTYPE
static final Token DEFAULT
static final Token DEFINE
static final Token IF
static final Token IFDEF
static final Token IFNDEF
static final Token ELIF
static final Token ELSE
static final Token ENDIF
static final Token ENUM
static final Token EXPLICIT
static final Token EXTERN
static final Token FINAL
static final Token FRIEND
static final Token INLINE
static final Token STATIC
static final Token CLASS
static final Token INTERFACE
static final Token __INTERFACE
static final Token MUTABLE
static final Token STRUCT
static final Token UNION
static final Token TEMPLATE
static final Token TYPEDEF
static final Token TYPENAME
static final Token USING
static final Token NAMESPACE
static final Token NEW
static final Token DELETE
static final Token OPERATOR
static final Token PRIVATE
static final Token PROTECTED
static final Token PUBLIC
static final Token REGISTER
static final Token THREAD_LOCAL
static final Token VIRTUAL
static final Token VOLATILE
File file
String text
int lineNumber
int type
String spacing
String value
boolean match(Object... tokens)
Token expect(Object... tokens) throws ParserException
ParserException
boolean isEmpty()
public int compareTo(Token t)
compareTo
in interface Comparable<Token>
Copyright © 2020. All rights reserved.