com.nhncorp.neptune.client.shell.insert
Class InsertParser

java.lang.Object
  extended by com.nhncorp.neptune.client.shell.insert.InsertParser
All Implemented Interfaces:
InsertParserConstants

public class InsertParser
extends java.lang.Object
implements InsertParserConstants

Parsing command line.


Field Summary
 Token jj_nt
          Next token.
 Token token
          Current token.
 InsertParserTokenManager token_source
          Generated Token Manager.
 
Fields inherited from interface com.nhncorp.neptune.client.shell.insert.InsertParserConstants
CLOSE_PAR, COMMA, DEFAULT, DIGIT, END, EOF, EXPONENT, FLOATING_POINT_LITERAL, ID, INSERT, INTEGER_LITERAL, INTO, LETTER, OPEN_PAR, ROWKEY, STRING_LITERAL, tokenImage, VALUES, WHERE
 
Constructor Summary
InsertParser(java.io.InputStream stream)
          Constructor with InputStream.
InsertParser(java.io.InputStream stream, java.lang.String encoding)
          Constructor with InputStream and supplied encoding
InsertParser(InsertParserTokenManager tm)
          Constructor with generated Token Manager.
InsertParser(java.io.Reader stream)
          Constructor.
 
Method Summary
 void disable_tracing()
          Disable tracing.
 void enable_tracing()
          Enable tracing.
 ParseException generateParseException()
          Generate ParseException.
 Token getNextToken()
          Get the next Token.
 Token getToken(int index)
          Get the specific Token.
 void parse(InsertQuery query)
           
 void ReInit(java.io.InputStream stream)
          Reinitialise.
 void ReInit(java.io.InputStream stream, java.lang.String encoding)
          Reinitialise.
 void ReInit(InsertParserTokenManager tm)
          Reinitialise.
 void ReInit(java.io.Reader stream)
          Reinitialise.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

token_source

public InsertParserTokenManager token_source
Generated Token Manager.


token

public Token token
Current token.


jj_nt

public Token jj_nt
Next token.

Constructor Detail

InsertParser

public InsertParser(java.io.InputStream stream)
Constructor with InputStream.


InsertParser

public InsertParser(java.io.InputStream stream,
                    java.lang.String encoding)
Constructor with InputStream and supplied encoding


InsertParser

public InsertParser(java.io.Reader stream)
Constructor.


InsertParser

public InsertParser(InsertParserTokenManager tm)
Constructor with generated Token Manager.

Method Detail

parse

public final void parse(InsertQuery query)
                 throws ParseException
Throws:
ParseException

ReInit

public void ReInit(java.io.InputStream stream)
Reinitialise.


ReInit

public void ReInit(java.io.InputStream stream,
                   java.lang.String encoding)
Reinitialise.


ReInit

public void ReInit(java.io.Reader stream)
Reinitialise.


ReInit

public void ReInit(InsertParserTokenManager tm)
Reinitialise.


getNextToken

public final Token getNextToken()
Get the next Token.


getToken

public final Token getToken(int index)
Get the specific Token.


generateParseException

public ParseException generateParseException()
Generate ParseException.


enable_tracing

public final void enable_tracing()
Enable tracing.


disable_tracing

public final void disable_tracing()
Disable tracing.