Package org.smtlib.sexpr
Class Lexer.LexToken
java.lang.Object
org.smtlib.sexpr.Lexer.LexToken
- All Implemented Interfaces:
ILexToken,Lexer.IPLexToken
- Enclosing class:
Lexer
A lexical token class for single punctuation characters.
-
Field Summary
Fields inherited from interface org.smtlib.sexpr.Lexer.IPLexToken
EMPTY, LP, RP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisError()Returns true if this token represents a lexical error.booleanisLP()Returns true if this token is a left parenthesis.booleanisRP()Returns true if this token is a right parenthesis.kind()A short word characterizing the class of token (e.g.pos()The lexical position of the tokentoString()
-
Constructor Details
-
LexToken
-
-
Method Details
-
pos
Description copied from interface:ILexTokenThe lexical position of the token- Specified by:
posin interfaceILexToken- Specified by:
posin interfaceLexer.IPLexToken
-
isError
public boolean isError()Description copied from interface:ILexTokenReturns true if this token represents a lexical error. -
isLP
public boolean isLP()Description copied from interface:ILexTokenReturns true if this token is a left parenthesis. -
isRP
public boolean isRP()Description copied from interface:ILexTokenReturns true if this token is a right parenthesis. -
toString
-
kind
Description copied from interface:ILexTokenA short word characterizing the class of token (e.g."numeral","symbol").- Specified by:
kindin interfaceILexToken- Specified by:
kindin interfaceLexer.IPLexToken
-