|
abc4j API Specification | |||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use TokenType | |
|---|---|
| abc.parser | This package contains classes for parsing tunes in abc notation. |
| scanner | This package contains classes for scanners needed for syntax analysis : a scanner is in charge of retrieving tokens from an input stream. |
| Uses of TokenType in abc.parser |
|---|
| Classes in abc.parser that implement TokenType | |
|---|---|
class |
AbcTokenType
This class defines all types of token that can be encountered while parsing a tune written using abc notation. |
| Methods in abc.parser that return TokenType | |
|---|---|
TokenType |
InvalidTokenEvent.getExpectedTokenType()
Returns the type of the token that was expected. |
| Constructors in abc.parser with parameters of type TokenType | |
|---|---|
InvalidTokenEvent(java.lang.Object source,
CharStreamPosition position,
TokenType expectedTokenType)
Creates a new event. |
|
InvalidTokenEvent(java.lang.Object source,
Token token,
TokenType expectedTokenType)
Creates a new event |
|
| Uses of TokenType in scanner |
|---|
| Fields in scanner declared as TokenType | |
|---|---|
static TokenType |
TokenType.UNKNOWN
The unknown token type. |
| Methods in scanner that return TokenType | |
|---|---|
TokenType |
Token.getType()
Returns the type of this token. |
TokenType |
State.getType()
Returns the type of this state. |
TokenType[] |
Set.getTypes()
Returns an array representation of the types contained in this set. |
| Methods in scanner with parameters of type TokenType | |
|---|---|
void |
Set.add(TokenType tokenType)
Adds the specified token type in the set. |
boolean |
Set.contains(TokenType tokenType)
Checks if a token type if contained in this set or not. |
Set |
Set.createUnion(TokenType tokenType)
Creates a new set containing tokens types from this set AND the specified token type. |
boolean |
Set.remove(TokenType tokenType)
Removes the spcified token type from this set. |
void |
State.setType(TokenType type)
Sets the type of this state. |
Set |
Set.union(TokenType tokenType)
Performs an union with the specified token type without creating any new set. |
| Constructors in scanner with parameters of type TokenType | |
|---|---|
Set(TokenType tokenType)
Creates a new set containing the specified tokenType. |
|
Set(TokenType[] tokenTypes)
Creates a new set. |
|
State(TokenType type,
boolean isTokenStateValue)
Constructs a new state. |
|
Token(java.lang.String val,
TokenType type,
CharStreamPosition position)
Creates a new token with the specified values. |
|
|
abc4j API Specification | |||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||