All Packages Class Hierarchy This Package Previous Next Index
Class PrologParse.Token
java.lang.Object
|
+----PrologParse.Token
- public class Token
- extends Object
A class that represents tokens produced by the PrologTokenizer.
- See Also:
- PrologTokenizer
-
CLOSE
-
-
CLOSESQ
-
-
COMMA
-
-
DEFAULT
-
-
EOF
-
-
FNSYM
-
-
FSTOP
-
-
HASH
-
-
IF
-
-
LIST
-
-
MINUS
-
-
NUM
-
-
OP
-
-
OPEN
-
-
OPENSQ
-
-
PLING
-
-
PLUS
-
-
QMARK
-
-
TIMES
-
-
VAR
-
-
VBAR
-
-
Token(String, int)
- Constructs a Token of the specified type from the specified text.
-
text()
-
-
toString()
-
-
type()
-
DEFAULT
public static final int DEFAULT
FNSYM
public static final int FNSYM
VAR
public static final int VAR
COMMA
public static final int COMMA
OPEN
public static final int OPEN
CLOSE
public static final int CLOSE
FSTOP
public static final int FSTOP
IF
public static final int IF
EOF
public static final int EOF
NUM
public static final int NUM
OP
public static final int OP
QMARK
public static final int QMARK
PLING
public static final int PLING
LIST
public static final int LIST
PLUS
public static final int PLUS
MINUS
public static final int MINUS
TIMES
public static final int TIMES
HASH
public static final int HASH
OPENSQ
public static final int OPENSQ
CLOSESQ
public static final int CLOSESQ
VBAR
public static final int VBAR
Token
public Token(String text,
int type)
- Constructs a Token of the specified type from the specified text.
- Parameters:
- text - The text from which the token is constructed.
- type - The type of this Token.
type
public final int type()
- Returns:
- the type of this Token.
text
public final String text()
- Returns:
- the text of this Token.
toString
public final String toString()
- Returns:
- a string representation of this token.
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index