gov.llnl.babel.url.cookie
Class Token

java.lang.Object
  extended by 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.


Field Summary
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).
 
Constructor Summary
Token(int type, java.lang.String text)
          Create a token
 
Method Summary
 java.lang.String getText()
          Return the text of the token.
 int getType()
          Return one of the constants defined above to indicate the type of the token.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

s_END_OF_STREAM

public static final int s_END_OF_STREAM
Indicate the end of the stream

See Also:
Constant Field Values

s_TOKEN

public static final int s_TOKEN
An identifier (informally a sequence of non-special, non-white space characters).

See Also:
Constant Field Values

s_QUOTED

public static final int s_QUOTED
A quoted string

See Also:
Constant Field Values

s_EQUAL

public static final int s_EQUAL
An equal character

See Also:
Constant Field Values

s_COMMA

public static final int s_COMMA
A comma

See Also:
Constant Field Values

s_SEMICOLON

public static final int s_SEMICOLON
A semicolon

See Also:
Constant Field Values
Constructor Detail

Token

public Token(int type,
             java.lang.String text)
Create a token

Method Detail

getType

public int getType()
Return one of the constants defined above to indicate the type of the token.


getText

public java.lang.String getText()
Return the text of the token.