com.nhncorp.neptune.client.shell.generated
Class ShellParser

java.lang.Object
  extended by com.nhncorp.neptune.client.shell.generated.ShellParser
All Implemented Interfaces:
ShellParserConstants

public class ShellParser
extends java.lang.Object
implements ShellParserConstants

Parsing command line.


Field Summary
 Token jj_nt
          Next token.
 Token token
          Current token.
 ShellParserTokenManager token_source
          Generated Token Manager.
 
Fields inherited from interface com.nhncorp.neptune.client.shell.generated.ShellParserConstants
AND, BY, CLEAR, COLUMN, COLUMNFAMILIES, COMMA, CREATE, DEFAULT, DELETE, DESCRIBE, DOT, DROP, EOF, EQUALS, EXIT, HELP, ID, INSERT, LCOMP, LIMIT, LPAREN, NOTEQUAL, NUM, NUMERIC, OPTIONS, OR, PROJECTION, QUOTED_STRING, RCOMP, ROW, RPAREN, SELECT, SELECTION, SHOW, SORT, STORE, STRING, STRING_LITERAL, SUBSTITUTE, TABLE, TIME, TO, tokenImage, UPLOAD, VALUES, WHERE
 
Constructor Summary
ShellParser(java.io.InputStream stream)
          Constructor with InputStream.
ShellParser(java.io.InputStream stream, java.lang.String encoding)
          Constructor with InputStream and supplied encoding
ShellParser(java.io.Reader stream)
          Constructor.
ShellParser(ShellParserTokenManager tm)
          Constructor with generated Token Manager.
ShellParser(java.lang.String str)
           
 
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()
           
 void ReInit(java.io.InputStream stream)
          Reinitialise.
 void ReInit(java.io.InputStream stream, java.lang.String encoding)
          Reinitialise.
 void ReInit(java.io.Reader stream)
          Reinitialise.
 void ReInit(ShellParserTokenManager tm)
          Reinitialise.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

token_source

public ShellParserTokenManager token_source
Generated Token Manager.


token

public Token token
Current token.


jj_nt

public Token jj_nt
Next token.

Constructor Detail

ShellParser

public ShellParser(java.lang.String str)

ShellParser

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


ShellParser

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


ShellParser

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


ShellParser

public ShellParser(ShellParserTokenManager tm)
Constructor with generated Token Manager.

Method Detail

parse

public final void parse()
                 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(ShellParserTokenManager 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.