All Packages Class Hierarchy This Package Previous Next Index
Class xe.xe_Token
java.lang.Object
|
+----xe.xe_Token
- public class xe_Token
- extends Object
Class xe_Token - A token parsed from an XML source.
A token has a type, a value (optionally) and can record the whitespace that
precedes the token.
-
xe_Token(int)
- Construct a token with no value defined.
-
xe_Token(int, String)
- Construct a token which has a string value.
-
getPrecedingWhitespace()
- Get the value of the preceding whitespace.
-
getStringValue()
- Get the value of the token as a string.
-
getType()
- Get the type of the token (expected to be one of the standard values listed
in xe_TokenType).
-
getValue()
- Get the value of the token.
-
setPrecedingWhitespace(String)
- Set the value of the preceding whitespace.
-
setType(int)
- Set the type of the token.
-
setValue(String)
- Set the value of the token.
-
toString()
- Return a string representation of the token (intended for use as debug
output).
-
typeToString()
- Return the token type as a string.
xe_Token
public xe_Token(int InputTokenType)
- Construct a token with no value defined.
- Parameters:
- InputTokenType - Type of the token
xe_Token
public xe_Token(int InputTokenType,
String InputValue)
- Construct a token which has a string value.
- Parameters:
- InputTokenType - Type of the token
- InputValue - The string value for the token
getType
public int getType()
- Get the type of the token (expected to be one of the standard values listed
in xe_TokenType).
- Returns:
- The type of the token
getValue
public xg_Value getValue()
- Get the value of the token.
- Returns:
- Value of token
getStringValue
public String getStringValue()
- Get the value of the token as a string.
- Returns:
- String value or null
getPrecedingWhitespace
public String getPrecedingWhitespace()
- Get the value of the preceding whitespace.
- Returns:
- String value or null
setType
public void setType(int InputTokenType)
- Set the type of the token.
- Parameters:
- The - type of the token
setValue
public void setValue(String InputTokenValue)
- Set the value of the token.
- Parameters:
- The - value of the token
setPrecedingWhitespace
public void setPrecedingWhitespace(String InputPrecedingWhitespace)
- Set the value of the preceding whitespace.
- Parameters:
- InputPrecedingWhitespace - Value of the preceding whitespace
toString
public String toString()
- Return a string representation of the token (intended for use as debug
output).
- Returns:
- String representing the token type and its value(s).
- Overrides:
- toString in class Object
typeToString
protected String typeToString()
- Return the token type as a string.
- Returns:
- String value or null
All Packages Class Hierarchy This Package Previous Next Index