Class KeywordToken
java.lang.Object
net.apartium.cocoabeans.commands.lexer.CommandToken
net.apartium.cocoabeans.commands.lexer.KeywordToken
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
SimpleKeywordToken
A Keyword token that represents an keyword
- See Also:
-
Field Summary
Fields inherited from class net.apartium.cocoabeans.commands.lexer.CommandToken
from, text, to -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedKeywordToken(int from, int to, String text) Create a new keyword token -
Method Summary
Methods inherited from class net.apartium.cocoabeans.commands.lexer.CommandToken
from, to
-
Constructor Details
-
KeywordToken
Create a new keyword token- Parameters:
from- starting indexto- ending indextext- the entire text of command
-
-
Method Details
-
getType
Get the type of the token- Specified by:
getTypein classCommandToken- Returns:
- CommandTokenType.KEYWORD
-
getKeyword
Get the keyword- Returns:
- the keyword
-