Inherited by org.qscript.Argument, and org.qscript.operator.Operator.
|
| void | setTextPosition (int charStart, int charWidth) |
| |
|
void | setTextPosition (int line, int charStart, int charWidth) |
| |
| int | getLine () |
| |
| int | getCharStart () |
| |
| int | getCharWidth () |
| |
|
boolean | isArgument () |
| |
|
boolean | isFlowAction () |
| |
|
boolean | isVariable () |
| |
|
boolean | isThing () |
| |
|
boolean | isOperator () |
| |
|
boolean | isFlowOperator () |
| |
| String | forListing () |
| |
|
|
int | line |
| |
|
int | charStart |
| |
|
int | charWidth |
| |
This is the base class for operators and arguments.
The attributes of this class are used to store the location and size of the 'characters' in the original text so they can to highlight errors and tokens if the script is being traced.
- Author
- Peter Lager
| org.qscript.Token.Token |
( |
| ) |
|
|
protected |
| String org.qscript.Token.forListing |
( |
| ) |
|
Used in Script and Parser classes when listing
| int org.qscript.Token.getCharStart |
( |
| ) |
|
Get the start position in the script line for this token
| int org.qscript.Token.getCharWidth |
( |
| ) |
|
Get the number of characters used by this token in the script line
| int org.qscript.Token.getLine |
( |
| ) |
|
Get the line number for this token
| void org.qscript.Token.setTextPosition |
( |
int |
charStart, |
|
|
int |
charWidth |
|
) |
| |
Used during parsing to record the text position of the ParseToken in the script.
The documentation for this class was generated from the following file:
- /Users/peter/git/qscript-repos/Q-script/src/org/qscript/Token.java