org.xerial.wiki
Enum WikiNodeType
java.lang.Object
java.lang.Enum<WikiNodeType>
org.xerial.wiki.WikiNodeType
- All Implemented Interfaces:
- Serializable, Comparable<WikiNodeType>
public enum WikiNodeType
- extends Enum<WikiNodeType>
Token types used in WikiParser
- Author:
- leo
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
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)

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