public class TokenValue extends Object
Modifier and Type | Field and Description |
---|---|
int |
byteOffset
The byte offset in the file at which the token is found in the source file.
|
String |
filename
The name of the source file.
|
int |
line
The line on which the token is found in the source file.
|
String |
text
The text in the source file that comprises the token.
|
Modifier and Type | Method and Description |
---|---|
boolean |
toBoolean()
Attempts to parse the token's text as if it represented a boolean value.
|
String |
toChar()
Attempts to parse the token's text as if it represented a character value.
|
double |
toDouble()
Attempts to parse the token's text as if it represented a double precision floating point
value.
|
double |
toFloat()
Attempts to parse the token's text as if it represented a double precision floating point
value.
|
int |
toInt()
Attempts to parse the token's text as if it represented an integer.
|
long |
toLong()
Attempts to parse the token's text as if it represented an integer.
|
String |
toString()
Return the token's text in a
String . |
public int line
public int byteOffset
public String text
public String filename
public String toString()
String
.public int toInt()
public long toLong()
public double toFloat()
public double toDouble()
public boolean toBoolean()
public String toChar()
Copyright © 2016. All rights reserved.