servicenow.community.sql
Class CommandParser
java.lang.Object
servicenow.community.sql.CommandParser
public class CommandParser
- extends java.lang.Object
If the application is reading commands from a script file then
this method is used to parse tokens in those commands.
- Author:
- LewisGF
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommandParser
public CommandParser(java.lang.String text)
getDate
public GlideDateTime getDate()
throws PumperParseException
- Throws:
PumperParseException
getInterval
public int getInterval()
throws PumperParseException
- Throws:
PumperParseException
match
public boolean match(java.lang.String value)
consume
public void consume(java.lang.String value)
throws PumperParseException
- Throws:
PumperParseException
moreTokens
public boolean moreTokens()
verifyAtEnd
public void verifyAtEnd()
throws PumperParseException
- Throws:
PumperParseException
encountered
public java.lang.String encountered()
- Wraps the next token in quotes
peek
public java.lang.String peek()
getToken
public java.lang.String getToken()