org.xerial.wiki
Enum WikiNodeType

java.lang.Object
  extended by java.lang.Enum<WikiNodeType>
      extended by org.xerial.wiki.WikiNodeType
All Implemented Interfaces:
Serializable, Comparable<WikiNodeType>

public enum WikiNodeType
extends Enum<WikiNodeType>

Token types used in WikiParser

Author:
leo

Enum Constant Summary
Array
           
AssignTo
           
BlankLine
           
Function
           
Hash
           
Path
           
PreservedBlock
           
String
           
Text
           
Wiki
           
WikiBlock
           
WikiLine
           
 
Method Summary
static WikiNodeType trasnlate(int wikiParserTokenType)
           
static WikiNodeType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static WikiNodeType[] 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

Wiki

public static final WikiNodeType Wiki

WikiLine

public static final WikiNodeType WikiLine

WikiBlock

public static final WikiNodeType WikiBlock

Text

public static final WikiNodeType Text

Function

public static final WikiNodeType Function

Path

public static final WikiNodeType Path

Array

public static final WikiNodeType Array

Hash

public static final WikiNodeType Hash

AssignTo

public static final WikiNodeType AssignTo

String

public static final WikiNodeType String

PreservedBlock

public static final WikiNodeType PreservedBlock

BlankLine

public static final WikiNodeType BlankLine
Method Detail

values

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

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

valueOf

public static WikiNodeType 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

trasnlate

public static WikiNodeType trasnlate(int wikiParserTokenType)


Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 2.1 Japan License.