abc.parser
Class AbcTokenType

java.lang.Object
  extended byabc.parser.AbcTokenType
All Implemented Interfaces:
TokenType

public class AbcTokenType
extends java.lang.Object
implements TokenType

This class defines all types of token that can be encountered while parsing a tune written using abc notation.


Field Summary
static AbcTokenType ACCIDENTAL
           
static AbcTokenType ALPHA
          The ALPHA token type : characters from a to z and A to Z.
static AbcTokenType BARLINE
           
static AbcTokenType BASE_NOTE
          The base note token type : from 'A' to 'G' and from 'a' to 'g'.
static AbcTokenType BEGIN_SLUR
           
static AbcTokenType BROKEN_RHYTHM
           
static AbcTokenType C_METER
          The meter C token type : "C" for 4/4, "C|" for 2/2.
static AbcTokenType C_TEMPO
          The C tempo token type : character 'C'.
static AbcTokenType CHORD_NAME
          The chord name token type : character '"'.
static AbcTokenType CHORD_TYPE
           
static AbcTokenType COMA
           
static AbcTokenType COMMENT
          The comment token type : character '%'.
static AbcTokenType DIGIT
          The digit token type : from 1 to 9.
static AbcTokenType END_SLUR
           
static AbcTokenType EQUALS
          The equals token type : character '='.
static AbcTokenType FIELD_AREA
          The aread field token type : A:.
static AbcTokenType FIELD_BOOK
          The book field token type : B:.
static AbcTokenType FIELD_COMPOSER
          The composer field token type : C:.
static AbcTokenType FIELD_DEFAULT_LENGTH
          The default length field token type : L:.
static AbcTokenType FIELD_DISCOGRAPHY
          The discography field token type : D:.
static AbcTokenType FIELD_GROUP
          The group field token type : G:.
static AbcTokenType FIELD_HISTORY
          The history field token type : H:.
static AbcTokenType FIELD_INFORMATION
          The information field token type : I:.
static AbcTokenType FIELD_KEY
          The key field token type : K:.
static AbcTokenType FIELD_METER
          The meter field token type : M:.
static AbcTokenType FIELD_NOTES
          The notes field token type : N:.
static AbcTokenType FIELD_NUMBER
          The reference number field token type : X:.
static AbcTokenType FIELD_ORIGIN
          The origin field token type : O:.
static AbcTokenType FIELD_PARTS
          The parts field token type : P:.
static AbcTokenType FIELD_RHYTHM
          The rhythm field token type : R:.
static AbcTokenType FIELD_SOURCE
          The source field token type : S:.
static AbcTokenType FIELD_TEMPO
          The tempo field token type : Q:.
static AbcTokenType FIELD_TITLE
          The title field token type : T:.
static AbcTokenType FIELD_TRANSCRNOTES
          The transcription notes field token type : Z:.
static AbcTokenType FIELD_WORDS
          The words field token type : W:.
static AbcTokenType FRACTION
          The fraction token type : character '/'.
static AbcTokenType GRACING
           
static AbcTokenType GRACING_BEGIN
           
static AbcTokenType GRACING_END
           
static AbcTokenType GUITAR_CHORD
           
static AbcTokenType KEY_ACCIDENTAL
          The key accidental token type : '#' or 'b'.
static AbcTokenType KEY_HP
          The HP key specification token type : "HP" or "Hp".
static AbcTokenType LINE_BREAK
          The line break token type : character '!'.
static AbcTokenType LINE_FEED
          The line feed token type : character '\n'.
static AbcTokenType MODE
          The mode token type : m or M or or or or or or or .
static AbcTokenType MULTI_NOTE_BEGIN
           
static AbcTokenType MULTI_NOTE_END
           
static AbcTokenType NO_LINE_BREAK
          The no line break token type : character '\'.
static AbcTokenType NTH_REPEAT
           
static AbcTokenType NUMBER
          The number token type.
static AbcTokenType OCTAVE
           
static AbcTokenType PARENTHESIS_CLOSE
          The parenthesis close token type : character ')'.
static AbcTokenType PARENTHESIS_OPEN
          The parenthesis open token type : character '('.
static AbcTokenType PART
           
static AbcTokenType REPEAT_CLOSE
           
static AbcTokenType REPEAT_OPEN
           
static AbcTokenType REST
           
static AbcTokenType SPACE
           
static AbcTokenType TEXT
          The text token type : all characters, excluding '%'.
static AbcTokenType TIE
           
static AbcTokenType TUPLET_SPEC
           
static AbcTokenType USER_DEFINED
           
 
Fields inherited from interface scanner.TokenType
UNKNOWN
 
Constructor Summary
AbcTokenType(java.lang.String typeName)
           
 
Method Summary
 boolean isField()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ALPHA

public static AbcTokenType ALPHA
The ALPHA token type : characters from a to z and A to Z.


FIELD_AREA

public static AbcTokenType FIELD_AREA
The aread field token type : A:.


FIELD_BOOK

public static AbcTokenType FIELD_BOOK
The book field token type : B:.


FIELD_COMPOSER

public static AbcTokenType FIELD_COMPOSER
The composer field token type : C:.


FIELD_DISCOGRAPHY

public static AbcTokenType FIELD_DISCOGRAPHY
The discography field token type : D:.


FIELD_GROUP

public static AbcTokenType FIELD_GROUP
The group field token type : G:.


FIELD_HISTORY

public static AbcTokenType FIELD_HISTORY
The history field token type : H:.


FIELD_INFORMATION

public static AbcTokenType FIELD_INFORMATION
The information field token type : I:.


FIELD_DEFAULT_LENGTH

public static AbcTokenType FIELD_DEFAULT_LENGTH
The default length field token type : L:.


FIELD_KEY

public static AbcTokenType FIELD_KEY
The key field token type : K:.


FIELD_METER

public static AbcTokenType FIELD_METER
The meter field token type : M:.


FIELD_NOTES

public static AbcTokenType FIELD_NOTES
The notes field token type : N:.


FIELD_ORIGIN

public static AbcTokenType FIELD_ORIGIN
The origin field token type : O:.


FIELD_PARTS

public static AbcTokenType FIELD_PARTS
The parts field token type : P:.


FIELD_TEMPO

public static AbcTokenType FIELD_TEMPO
The tempo field token type : Q:.


FIELD_RHYTHM

public static AbcTokenType FIELD_RHYTHM
The rhythm field token type : R:.


FIELD_SOURCE

public static AbcTokenType FIELD_SOURCE
The source field token type : S:.


FIELD_TITLE

public static AbcTokenType FIELD_TITLE
The title field token type : T:.


FIELD_NUMBER

public static AbcTokenType FIELD_NUMBER
The reference number field token type : X:.


FIELD_TRANSCRNOTES

public static AbcTokenType FIELD_TRANSCRNOTES
The transcription notes field token type : Z:.


FIELD_WORDS

public static AbcTokenType FIELD_WORDS
The words field token type : W:.


TEXT

public static AbcTokenType TEXT
The text token type : all characters, excluding '%'.


CHORD_NAME

public static AbcTokenType CHORD_NAME
The chord name token type : character '"'.


COMMENT

public static AbcTokenType COMMENT
The comment token type : character '%'.


NUMBER

public static AbcTokenType NUMBER
The number token type.


DIGIT

public static AbcTokenType DIGIT
The digit token type : from 1 to 9.


FRACTION

public static AbcTokenType FRACTION
The fraction token type : character '/'.


PARENTHESIS_OPEN

public static AbcTokenType PARENTHESIS_OPEN
The parenthesis open token type : character '('.


PARENTHESIS_CLOSE

public static AbcTokenType PARENTHESIS_CLOSE
The parenthesis close token type : character ')'.


LINE_FEED

public static AbcTokenType LINE_FEED
The line feed token type : character '\n'.


LINE_BREAK

public static AbcTokenType LINE_BREAK
The line break token type : character '!'.


NO_LINE_BREAK

public static AbcTokenType NO_LINE_BREAK
The no line break token type : character '\'.


MODE

public static AbcTokenType MODE
The mode token type : m or M or or or or or or or .


KEY_HP

public static AbcTokenType KEY_HP
The HP key specification token type : "HP" or "Hp".


KEY_ACCIDENTAL

public static AbcTokenType KEY_ACCIDENTAL
The key accidental token type : '#' or 'b'.


C_METER

public static AbcTokenType C_METER
The meter C token type : "C" for 4/4, "C|" for 2/2.


EQUALS

public static AbcTokenType EQUALS
The equals token type : character '='.


C_TEMPO

public static AbcTokenType C_TEMPO
The C tempo token type : character 'C'.


BASE_NOTE

public static AbcTokenType BASE_NOTE
The base note token type : from 'A' to 'G' and from 'a' to 'g'.


PART

public static AbcTokenType PART

ACCIDENTAL

public static AbcTokenType ACCIDENTAL

REST

public static AbcTokenType REST

BARLINE

public static AbcTokenType BARLINE

REPEAT_OPEN

public static AbcTokenType REPEAT_OPEN

REPEAT_CLOSE

public static AbcTokenType REPEAT_CLOSE

SPACE

public static AbcTokenType SPACE

GUITAR_CHORD

public static AbcTokenType GUITAR_CHORD

BEGIN_SLUR

public static AbcTokenType BEGIN_SLUR

END_SLUR

public static AbcTokenType END_SLUR

GRACING_BEGIN

public static AbcTokenType GRACING_BEGIN

GRACING_END

public static AbcTokenType GRACING_END

GRACING

public static AbcTokenType GRACING

OCTAVE

public static AbcTokenType OCTAVE

TIE

public static AbcTokenType TIE

BROKEN_RHYTHM

public static AbcTokenType BROKEN_RHYTHM

MULTI_NOTE_BEGIN

public static AbcTokenType MULTI_NOTE_BEGIN

MULTI_NOTE_END

public static AbcTokenType MULTI_NOTE_END

TUPLET_SPEC

public static AbcTokenType TUPLET_SPEC

USER_DEFINED

public static AbcTokenType USER_DEFINED

NTH_REPEAT

public static AbcTokenType NTH_REPEAT

CHORD_TYPE

public static AbcTokenType CHORD_TYPE

COMA

public static AbcTokenType COMA
Constructor Detail

AbcTokenType

public AbcTokenType(java.lang.String typeName)
Method Detail

isField

public boolean isField()

toString

public java.lang.String toString()