com.itextpdf.tool.itextdoc.codestyler.java
Enum JavaState

java.lang.Object
  extended by java.lang.Enum<JavaState>
      extended by com.itextpdf.tool.itextdoc.codestyler.java.JavaState
All Implemented Interfaces:
Serializable, Comparable<JavaState>

public enum JavaState
extends Enum<JavaState>

Author:
redlab

Enum Constant Summary
ANNOTATION
           
COMMENT
           
JAVADOC
           
JAVADOC_ASTERIX
           
KEYWORD
           
LONGCOMMENT
           
MULTILINE_COMMENT
           
MULTILINE_COMMENT_ASTERIX
           
NORMAL
           
SINGLE_COMMENT
           
TEXT
           
 
Method Summary
static JavaState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static JavaState[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NORMAL

public static final JavaState NORMAL

TEXT

public static final JavaState TEXT

KEYWORD

public static final JavaState KEYWORD

JAVADOC

public static final JavaState JAVADOC

SINGLE_COMMENT

public static final JavaState SINGLE_COMMENT

ANNOTATION

public static final JavaState ANNOTATION

LONGCOMMENT

public static final JavaState LONGCOMMENT

MULTILINE_COMMENT

public static final JavaState MULTILINE_COMMENT

COMMENT

public static final JavaState COMMENT

JAVADOC_ASTERIX

public static final JavaState JAVADOC_ASTERIX

MULTILINE_COMMENT_ASTERIX

public static final JavaState MULTILINE_COMMENT_ASTERIX
Method Detail

values

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

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

valueOf

public static JavaState 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
NullPointerException - if the argument is null


Copyright © 2011 1T3XT BVBA. All Rights Reserved.