de.uniba.wiai.lspi.util.console.parser
Class CommandParser

java.lang.Object
  extended by de.uniba.wiai.lspi.util.console.parser.CommandParser
All Implemented Interfaces:
CommandParserConstants

public class CommandParser
extends Object
implements CommandParserConstants


Field Summary
 Token jj_nt
           
 boolean lookingAhead
           
 Token token
           
 CommandParserTokenManager token_source
           
 
Fields inherited from interface de.uniba.wiai.lspi.util.console.parser.CommandParserConstants
DEFAULT, EOF, LETTER, PARAMSTART, tokenImage, WORD
 
Constructor Summary
CommandParser(CommandParserTokenManager tm)
           
CommandParser(InputStream stream)
           
CommandParser(Reader stream)
           
 
Method Summary
 String command()
           
 void disable_tracing()
           
 void enable_tracing()
           
 ParseException generateParseException()
           
 Token getNextToken()
           
 Token getToken(int index)
           
 Map<String,String> parameters()
           
static String parse(String toParse)
           
static Map<String,String> parseParams(String toParse)
           
 void ReInit(CommandParserTokenManager tm)
           
 void ReInit(InputStream stream)
           
 void ReInit(Reader stream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

token_source

public CommandParserTokenManager token_source

token

public Token token

jj_nt

public Token jj_nt

lookingAhead

public boolean lookingAhead
Constructor Detail

CommandParser

public CommandParser(InputStream stream)

CommandParser

public CommandParser(Reader stream)

CommandParser

public CommandParser(CommandParserTokenManager tm)
Method Detail

parse

public static String parse(String toParse)
                    throws ParseException
Throws:
ParseException

parseParams

public static Map<String,String> parseParams(String toParse)
                                      throws ParseException
Throws:
ParseException

command

public final String command()
                     throws ParseException
Throws:
ParseException

parameters

public final Map<String,String> parameters()
                                    throws ParseException
Throws:
ParseException

ReInit

public void ReInit(InputStream stream)

ReInit

public void ReInit(Reader stream)

ReInit

public void ReInit(CommandParserTokenManager tm)

getNextToken

public final Token getNextToken()

getToken

public final Token getToken(int index)

generateParseException

public ParseException generateParseException()

enable_tracing

public final void enable_tracing()

disable_tracing

public final void disable_tracing()


Copyright © 2004-2008 Karsten Loesing, Sven Kaffille - Distributed and Mobile Systems Group, Lehrstuhl für Praktische Informatik, Universität Bamberg. All Rights Reserved.