com.itextpdf.text.pdf
Enum PRTokeniser.TokenType

java.lang.Object
  extended by java.lang.Enum<PRTokeniser.TokenType>
      extended by com.itextpdf.text.pdf.PRTokeniser.TokenType
All Implemented Interfaces:
Serializable, Comparable<PRTokeniser.TokenType>
Enclosing class:
PRTokeniser

public static enum PRTokeniser.TokenType
extends Enum<PRTokeniser.TokenType>

Enum representing the possible token types

Since:
5.0.1

Enum Constant Summary
COMMENT
           
END_ARRAY
           
END_DIC
           
ENDOFFILE
           
NAME
           
NUMBER
           
OTHER
           
REF
           
START_ARRAY
           
START_DIC
           
STRING
           
 
Method Summary
static PRTokeniser.TokenType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PRTokeniser.TokenType[] 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

NUMBER

public static final PRTokeniser.TokenType NUMBER

STRING

public static final PRTokeniser.TokenType STRING

NAME

public static final PRTokeniser.TokenType NAME

COMMENT

public static final PRTokeniser.TokenType COMMENT

START_ARRAY

public static final PRTokeniser.TokenType START_ARRAY

END_ARRAY

public static final PRTokeniser.TokenType END_ARRAY

START_DIC

public static final PRTokeniser.TokenType START_DIC

END_DIC

public static final PRTokeniser.TokenType END_DIC

REF

public static final PRTokeniser.TokenType REF

OTHER

public static final PRTokeniser.TokenType OTHER

ENDOFFILE

public static final PRTokeniser.TokenType ENDOFFILE
Method Detail

values

public static final PRTokeniser.TokenType[] 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(PRTokeniser.TokenType c : PRTokeniser.TokenType.values())
        System.out.println(c);

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

valueOf

public static PRTokeniser.TokenType valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name


Copyright © 2013. All Rights Reserved.