gov.llnl.babel.url.cookie
Class Token
java.lang.Object
gov.llnl.babel.url.cookie.Token
public final class Token
extends java.lang.Object
A class to store each lexical token discovered while parsing the cookie.
static int | s_COMMA - A comma
|
static int | s_END_OF_STREAM - Indicate the end of the stream
|
static int | s_EQUAL - An equal character
|
static int | s_QUOTED - A quoted string
|
static int | s_SEMICOLON - A semicolon
|
static int | s_TOKEN - An identifier (informally a sequence of non-special, non-white
space characters).
|
Token(int type, String text) - Create a token
|
String | getText() - Return the text of the token.
|
int | getType() - Return one of the constants defined above to indicate the type of the
token.
|
s_COMMA
public static final int s_COMMA
A comma
s_END_OF_STREAM
public static final int s_END_OF_STREAM
Indicate the end of the stream
s_EQUAL
public static final int s_EQUAL
An equal character
s_QUOTED
public static final int s_QUOTED
A quoted string
s_SEMICOLON
public static final int s_SEMICOLON
A semicolon
s_TOKEN
public static final int s_TOKEN
An identifier (informally a sequence of non-special, non-white
space characters).
Token
public Token(int type,
String text)
Create a token
getText
public String getText()
Return the text of the token.
getType
public int getType()
Return one of the constants defined above to indicate the type of the
token.