Top Fields Constructors Methods
org.hsqldb.cmdline.sqltool

public Class Token

extends Object
Class Inheritance
Imports
java.util.regex.Pattern

Field Summary

Modifier and TypeField and Description
public static final int
public static final int
public static final Pattern
public int
public static final int
public TokenList
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public int
public char[]
public String[]
public static final int
public String

Constructor Summary

AccessConstructor and Description
public
Token(int inType, String inVal, int inLine)

public
Token(int inType, StringBuffer inBuf, int inLine)

public
Token(int inType, int inLine)

Method Summary

Modifier and TypeMethod and Description
public boolean
equals(Object other)

Overrides java.lang.Object.equals.

Equality ignores the line number

public char
public String
public int
hashCode()

Overrides java.lang.Object.hashCode.

Returns a hash code value for this object.

public String
public String
reconstitute(boolean semify)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAllwaitwaitwait

Field Detail

BUFFER_TYPEback to summary
public static final int BUFFER_TYPE
EDIT_TYPEback to summary
public static final int EDIT_TYPE
leadingWhitePatternback to summary
public static final Pattern leadingWhitePattern
lineback to summary
public int line
MACRO_TYPEback to summary
public static final int MACRO_TYPE
nestedBlockback to summary
public TokenList nestedBlock
PL_TYPEback to summary
public static final int PL_TYPE
RAW_TYPEback to summary
public static final int RAW_TYPE
RAWEXEC_TYPEback to summary
public static final int RAWEXEC_TYPE
SPECIAL_TYPEback to summary
public static final int SPECIAL_TYPE
SQL_TYPEback to summary
public static final int SQL_TYPE
SYNTAX_ERR_TYPEback to summary
public static final int SYNTAX_ERR_TYPE
typeback to summary
public int type
typeCharback to summary
public char[] typeChar
typeStringback to summary
public String[] typeString
UNTERM_TYPEback to summary
public static final int UNTERM_TYPE
valback to summary
public String val

Constructor Detail

Tokenback to summary
public Token(int inType, String inVal, int inLine)
Tokenback to summary
public Token(int inType, StringBuffer inBuf, int inLine)
Tokenback to summary
public Token(int inType, int inLine)

Method Detail

equalsback to summary
public boolean equals(Object other)

Overrides java.lang.Object.equals.

Equality ignores the line number

getTypeCharback to summary
public char getTypeChar()
getTypeStringback to summary
public String getTypeString()
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Doc from java.lang.Object.hashCode.

Returns a hash code value for this object. This method is supported for the benefit of hash tables such as those provided by java.util.HashMap.

The general contract of hashCode is:

  • Whenever it is invoked on the same object more than once during an execution of a Java application, the hashCode method must consistently return the same integer, provided no information used in equals comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
  • If two objects are equal according to the equals method, then calling the hashCode method on each of the two objects must produce the same integer result.
  • It is not required that if two objects are unequal according to the equals method, then calling the hashCode method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.
reconstituteback to summary
public String reconstitute()
reconstituteback to summary
public String reconstitute(boolean semify)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.