org.basex.core
Class CommandParser

java.lang.Object
  extended by org.basex.core.CommandParser

public final class CommandParser
extends java.lang.Object

This is a parser for command strings, creating Command instances. Several commands can be formulated in one string and separated by semicolons.

Author:
Workgroup DBIS, University of Konstanz 2005-07, ISC License, Christian Gruen

Constructor Summary
CommandParser(java.lang.String in)
          Constructor, parsing the input.
 
Method Summary
 boolean more()
          Checks if more tokens are found.
 Command next()
          Returns the current command.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandParser

public CommandParser(java.lang.String in)
Constructor, parsing the input.

Parameters:
in - input
Method Detail

more

public boolean more()
Checks if more tokens are found.

Returns:
result of check

next

public Command next()
Returns the current command.

Returns:
command