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

Variable Index

 o CLOSE
 o CLOSESQ
 o COMMA
 o DEFAULT
 o EOF
 o FNSYM
 o FSTOP
 o HASH
 o IF
 o LIST
 o MINUS
 o NUM
 o OP
 o OPEN
 o OPENSQ
 o PLING
 o PLUS
 o QMARK
 o TIMES
 o VAR
 o VBAR

Constructor Index

 o Token(String, int)
Constructs a Token of the specified type from the specified text.

Method Index

 o text()
 o toString()
 o type()

Variables

 o DEFAULT
 public static final int DEFAULT
 o FNSYM
 public static final int FNSYM
 o VAR
 public static final int VAR
 o COMMA
 public static final int COMMA
 o OPEN
 public static final int OPEN
 o CLOSE
 public static final int CLOSE
 o FSTOP
 public static final int FSTOP
 o IF
 public static final int IF
 o EOF
 public static final int EOF
 o NUM
 public static final int NUM
 o OP
 public static final int OP
 o QMARK
 public static final int QMARK
 o PLING
 public static final int PLING
 o LIST
 public static final int LIST
 o PLUS
 public static final int PLUS
 o MINUS
 public static final int MINUS
 o TIMES
 public static final int TIMES
 o HASH
 public static final int HASH
 o OPENSQ
 public static final int OPENSQ
 o CLOSESQ
 public static final int CLOSESQ
 o VBAR
 public static final int VBAR

Constructors

 o 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.

Methods

 o type
 public final int type()
Returns:
the type of this Token.
 o text
 public final String text()
Returns:
the text of this Token.
 o 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