net.sf.jett.parser
Enum StyleScanner.Token

java.lang.Object
  extended by java.lang.Enum<StyleScanner.Token>
      extended by net.sf.jett.parser.StyleScanner.Token
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<StyleScanner.Token>
Enclosing class:
StyleScanner

public static enum StyleScanner.Token
extends java.lang.Enum<StyleScanner.Token>

Enumeration for the different types of Tokens in "CSS".


Enum Constant Summary
TOKEN_BEGIN_BRACE
           
TOKEN_COLON
           
TOKEN_COMMENT
           
TOKEN_END_BRACE
           
TOKEN_EOI
           
TOKEN_ERROR_BUF_NULL
           
TOKEN_ERROR_EOI_IN_COMMENT
           
TOKEN_PERIOD
           
TOKEN_SEMICOLON
           
TOKEN_STRING
           
TOKEN_UNKNOWN
           
TOKEN_WHITESPACE
           
 
Method Summary
 int getCode()
          Returns the unique code associated with this Token.
static StyleScanner.Token valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static StyleScanner.Token[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

TOKEN_ERROR_EOI_IN_COMMENT

public static final StyleScanner.Token TOKEN_ERROR_EOI_IN_COMMENT

TOKEN_ERROR_BUF_NULL

public static final StyleScanner.Token TOKEN_ERROR_BUF_NULL

TOKEN_UNKNOWN

public static final StyleScanner.Token TOKEN_UNKNOWN

TOKEN_WHITESPACE

public static final StyleScanner.Token TOKEN_WHITESPACE

TOKEN_STRING

public static final StyleScanner.Token TOKEN_STRING

TOKEN_COLON

public static final StyleScanner.Token TOKEN_COLON

TOKEN_PERIOD

public static final StyleScanner.Token TOKEN_PERIOD

TOKEN_BEGIN_BRACE

public static final StyleScanner.Token TOKEN_BEGIN_BRACE

TOKEN_END_BRACE

public static final StyleScanner.Token TOKEN_END_BRACE

TOKEN_SEMICOLON

public static final StyleScanner.Token TOKEN_SEMICOLON

TOKEN_COMMENT

public static final StyleScanner.Token TOKEN_COMMENT

TOKEN_EOI

public static final StyleScanner.Token TOKEN_EOI
Method Detail

values

public static final StyleScanner.Token[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(StyleScanner.Token c : StyleScanner.Token.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static StyleScanner.Token valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

getCode

public int getCode()
Returns the unique code associated with this Token.

Returns:
The unique code.


Copyright © 2012-2013 Jett Team. All Rights Reserved.