|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.datatools.sqltools.parsers.sql.lexer.SQLCharacterKindMap
public class SQLCharacterKindMap
Every character that the lexer recognizes will be given a Token kind.
This SQLCharacterKindMap
provides the mapping from
ASCII-code of a character to its Token kind, see getTokenKind(int)
.
Field Summary |
---|
Constructor Summary | |
---|---|
SQLCharacterKindMap()
Constructs a new SQLCharacterKindMap. |
Method Summary | |
---|---|
int |
getTokenKind(int asciiCode)
|
void |
setTokenKind(int asciiCode,
int newTokenKind)
Note: A specific Token kind can only be given to one character! |
void |
unsetTokenKind(int oldTokenKind)
If the given Token kind was previously mapped to an ASCII-code, the mapping will be removed, restoring the ASCII-code mapping that was active before the given Token kind was mapped. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SQLCharacterKindMap()
Method Detail |
---|
public int getTokenKind(int asciiCode)
asciiCode
.public void setTokenKind(int asciiCode, int newTokenKind)
Note: A specific Token kind can only be given to one character!
asciiCode
- The ASCII-code of the character to set the Token kind fornewTokenKind
- The tokenKind to set.public void unsetTokenKind(int oldTokenKind)
Note: There can only be one ASCII-code mapping for one Token kind
oldTokenKind
- the Token kind not to be mapped anymore by any entry
in the tokenKind
array
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |