|
Groovy 1.8.4 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTSFIELD | METHOD |
java.lang.Objectjava.lang.Enum
groovy.json.JsonTokenType
public enum JsonTokenType extends Enum
Enum listing all the possible JSON tokens that should be recognized by the lexer.
Method Summary | |
---|---|
String
|
getLabel()
|
Object
|
getValidator()
|
boolean
|
matching(String input)
Tells if an input string matches a token. |
static JsonTokenType
|
startingWith(char c)
Find which JSON value might be starting with a given character |
Methods inherited from class Enum | |
---|---|
name, equals, toString, hashCode, compareTo, compareTo, valueOf, getDeclaringClass, ordinal, wait, wait, wait, getClass, notify, notifyAll |
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Method Detail |
---|
public String getLabel()
public Object getValidator()
public boolean matching(String input)
input
- the input string to matchMatching
enum value:
YES
if this is an exact match,
POSSIBLE
if more characters could turn the input string into a valid token,
or NO
if the string cannot possibly match the pattern even with more characters to read.
public static JsonTokenType startingWith(char c)
c
- the character
Copyright © 2003-2011 The Codehaus. All rights reserved.