org.openjena.riot.tokens
Enum TokenType

java.lang.Object
  extended by java.lang.Enum<TokenType>
      extended by org.openjena.riot.tokens.TokenType
All Implemented Interfaces:
Serializable, Comparable<TokenType>

public enum TokenType
extends Enum<TokenType>


Enum Constant Summary
AMPHERSAND
           
BNODE
           
CNTRL
           
COLON
           
COMMA
           
COMMENT
           
COMMENT1
           
COMMENT2
           
DECIMAL
           
DIRECTIVE
           
DOT
           
DOUBLE
           
EOF
           
EQUALS
           
EQUIVALENT
           
GE
           
GT
           
HEX
           
INTEGER
           
IRI
           
KEYWORD
           
LBRACE
           
LBRACKET
           
LE
           
LITERAL_DT
           
LITERAL_LANG
           
LOGICAL_AND
           
LOGICAL_OR
           
LONG_STRING1
           
LONG_STRING2
           
LPAREN
           
LT
           
MINUS
           
NODE
           
PLUS
           
PREFIXED_NAME
           
RBRACE
           
RBRACKET
           
RPAREN
           
RSLASH
           
SEMICOLON
           
SLASH
           
STAR
           
STRING
           
STRING1
           
STRING2
           
UNDERSCORE
           
VAR
           
VBAR
           
WS
           
 
Method Summary
static TokenType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TokenType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NODE

public static final TokenType NODE

IRI

public static final TokenType IRI

PREFIXED_NAME

public static final TokenType PREFIXED_NAME

BNODE

public static final TokenType BNODE

STRING

public static final TokenType STRING

STRING1

public static final TokenType STRING1

STRING2

public static final TokenType STRING2

LONG_STRING1

public static final TokenType LONG_STRING1

LONG_STRING2

public static final TokenType LONG_STRING2

LITERAL_LANG

public static final TokenType LITERAL_LANG

LITERAL_DT

public static final TokenType LITERAL_DT

INTEGER

public static final TokenType INTEGER

DECIMAL

public static final TokenType DECIMAL

DOUBLE

public static final TokenType DOUBLE

KEYWORD

public static final TokenType KEYWORD

VAR

public static final TokenType VAR

HEX

public static final TokenType HEX

CNTRL

public static final TokenType CNTRL

DOT

public static final TokenType DOT

COMMA

public static final TokenType COMMA

SEMICOLON

public static final TokenType SEMICOLON

COLON

public static final TokenType COLON

DIRECTIVE

public static final TokenType DIRECTIVE

LT

public static final TokenType LT

GT

public static final TokenType GT

LE

public static final TokenType LE

GE

public static final TokenType GE

LOGICAL_AND

public static final TokenType LOGICAL_AND

LOGICAL_OR

public static final TokenType LOGICAL_OR

VBAR

public static final TokenType VBAR

AMPHERSAND

public static final TokenType AMPHERSAND

UNDERSCORE

public static final TokenType UNDERSCORE

LBRACE

public static final TokenType LBRACE

RBRACE

public static final TokenType RBRACE

LPAREN

public static final TokenType LPAREN

RPAREN

public static final TokenType RPAREN

LBRACKET

public static final TokenType LBRACKET

RBRACKET

public static final TokenType RBRACKET

EQUALS

public static final TokenType EQUALS

EQUIVALENT

public static final TokenType EQUIVALENT

PLUS

public static final TokenType PLUS

MINUS

public static final TokenType MINUS

STAR

public static final TokenType STAR

SLASH

public static final TokenType SLASH

RSLASH

public static final TokenType RSLASH

WS

public static final TokenType WS

COMMENT

public static final TokenType COMMENT

COMMENT1

public static final TokenType COMMENT1

COMMENT2

public static final TokenType COMMENT2

EOF

public static final TokenType EOF
Method Detail

values

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

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

valueOf

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


Licenced under the Apache License, Version 2.0