org.basex.build
Enum BuildText.Type

java.lang.Object
  extended by java.lang.Enum<BuildText.Type>
      extended by org.basex.build.BuildText.Type
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<BuildText.Type>
Enclosing interface:
BuildText

public static enum BuildText.Type
extends java.lang.Enum<BuildText.Type>

Token types.


Enum Constant Summary
ATTNAME
          Attribute name.
ATTVALUE
          Attribute value.
CLOSE_R_BR
          Closing end bracket.
COMMENT
          Comment.
DTD
          Document type.
ELEMNAME
          Element name.
EOF
          End of input.
EQ
          Equal sign.
L_BR
          Opening bracket.
L_BR_CLOSE
          Empty bracket.
PI
          Processing instruction.
QUOTE
          Quote.
R_BR
          Closing bracket.
TEXT
          Text node.
WS
          Whitespace.
 
Field Summary
 java.lang.String string
          String representation of token type.
 
Method Summary
static BuildText.Type valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static BuildText.Type[] 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

TEXT

public static final BuildText.Type TEXT
Text node.


COMMENT

public static final BuildText.Type COMMENT
Comment.


DTD

public static final BuildText.Type DTD
Document type.


PI

public static final BuildText.Type PI
Processing instruction.


L_BR

public static final BuildText.Type L_BR
Opening bracket.


ELEMNAME

public static final BuildText.Type ELEMNAME
Element name.


ATTNAME

public static final BuildText.Type ATTNAME
Attribute name.


R_BR

public static final BuildText.Type R_BR
Closing bracket.


WS

public static final BuildText.Type WS
Whitespace.


ATTVALUE

public static final BuildText.Type ATTVALUE
Attribute value.


L_BR_CLOSE

public static final BuildText.Type L_BR_CLOSE
Empty bracket.


CLOSE_R_BR

public static final BuildText.Type CLOSE_R_BR
Closing end bracket.


EQ

public static final BuildText.Type EQ
Equal sign.


EOF

public static final BuildText.Type EOF
End of input.


QUOTE

public static final BuildText.Type QUOTE
Quote.

Field Detail

string

public final java.lang.String string
String representation of token type.

Method Detail

values

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

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

valueOf

public static BuildText.Type 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
java.lang.NullPointerException - if the argument is null