org.exist.storage.analysis
Class TextToken

java.lang.Object
  extended byorg.exist.storage.analysis.TextToken

public class TextToken
extends java.lang.Object

Description of the Class

Author:
Wolfgang Meier

Field Summary
static int ACRONYM
           
static int ALPHA
           
static int ALPHANUM
           
static int DIGIT
           
static int EMAIL
           
static int EOF
           
static TextToken EOF_TOKEN
           
static int FLOAT
           
static int HOST
           
static int LETTER
           
static int NUMBER
           
static int P
           
static java.lang.String[] types
          Description of the Field
static int WS
           
static TextToken WS_TOKEN
           
 
Constructor Summary
TextToken()
           
TextToken(int type)
          Constructor for the Token object
TextToken(int type, java.lang.CharSequence text)
          Constructor for the Token object
TextToken(int type, java.lang.CharSequence text, int start)
          Constructor for the Token object
TextToken(int type, java.lang.CharSequence text, int start, int end)
          Constructor for the Token object
 
Method Summary
 void consumeNext()
          Description of the Method
 char getChar()
          Gets the char attribute of the Token object
 java.lang.String getText()
          Gets the text attribute of the Token object
 int getType()
          Gets the type attribute of the Token object
 boolean isAlpha()
           
 void set(int type, java.lang.CharSequence text, int start)
           
 void setText(java.lang.String text)
          Sets the text attribute of the Token object
 void setType(int type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALPHA

public static final int ALPHA
See Also:
Constant Field Values

ALPHANUM

public static final int ALPHANUM
See Also:
Constant Field Values

DIGIT

public static final int DIGIT
See Also:
Constant Field Values

EOF

public static final int EOF
See Also:
Constant Field Values

FLOAT

public static final int FLOAT
See Also:
Constant Field Values

LETTER

public static final int LETTER
See Also:
Constant Field Values

NUMBER

public static final int NUMBER
See Also:
Constant Field Values

P

public static final int P
See Also:
Constant Field Values

WS

public static final int WS
See Also:
Constant Field Values

HOST

public static final int HOST
See Also:
Constant Field Values

EMAIL

public static final int EMAIL
See Also:
Constant Field Values

ACRONYM

public static final int ACRONYM
See Also:
Constant Field Values

WS_TOKEN

public static final TextToken WS_TOKEN

EOF_TOKEN

public static final TextToken EOF_TOKEN

types

public static final java.lang.String[] types
Description of the Field

Constructor Detail

TextToken

public TextToken()

TextToken

public TextToken(int type,
                 java.lang.CharSequence text)
Constructor for the Token object

Parameters:
type - Description of the Parameter
text - Description of the Parameter

TextToken

public TextToken(int type,
                 java.lang.CharSequence text,
                 int start)
Constructor for the Token object

Parameters:
type - Description of the Parameter
text - Description of the Parameter
start - Description of the Parameter

TextToken

public TextToken(int type,
                 java.lang.CharSequence text,
                 int start,
                 int end)
Constructor for the Token object

Parameters:
type - Description of the Parameter
text - Description of the Parameter
start - Description of the Parameter
end - Description of the Parameter

TextToken

public TextToken(int type)
Constructor for the Token object

Parameters:
type - Description of the Parameter
Method Detail

set

public void set(int type,
                java.lang.CharSequence text,
                int start)

isAlpha

public boolean isAlpha()

consumeNext

public void consumeNext()
Description of the Method


getChar

public char getChar()
Gets the char attribute of the Token object

Returns:
The char value

getText

public java.lang.String getText()
Gets the text attribute of the Token object

Returns:
The text value

getType

public int getType()
Gets the type attribute of the Token object

Returns:
The type value

setType

public void setType(int type)

setText

public void setText(java.lang.String text)
Sets the text attribute of the Token object

Parameters:
text - The new text value


Copyright (C) Wolfgang Meier. All rights reserved.