public class ParamParser
extends java.lang.Object
Constructor and Description |
---|
ParamParser()
Create a ParamParser with the default ParamLibrary
|
ParamParser(ParamLibrary lib)
Create a ParamParser with a specific Library
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
analyse(java.lang.String command,
Program prg)
Analyze a String and return the parsed String.
|
java.lang.String |
getErrorString()
The Error-String for Details about an Error
|
ParamLibrary |
getParamLibrary()
The used ParamLibrary
|
boolean |
hasErrors()
Returns True if an error occurred
|
void |
setParamLibrary(ParamLibrary lib)
Set the ParamLibrary that this Parser uses
|
boolean |
showErrors()
show the parser error(s), if there were errors during parsing
|
boolean |
showErrors(java.awt.Window parent)
show the parser error(s), if there were errors during parsing
|
public ParamParser()
public ParamParser(ParamLibrary lib)
lib
- ParamLibrary to usepublic boolean hasErrors()
public java.lang.String getErrorString()
public ParamLibrary getParamLibrary()
public void setParamLibrary(ParamLibrary lib)
lib
- ParamLibrary to usepublic java.lang.String analyse(java.lang.String command, Program prg)
command
- String to parseprg
- Program to use while parsingpublic boolean showErrors(java.awt.Window parent)
parent
- parent windowtrue
, if an error exists in the parser, false
otherwisepublic boolean showErrors()
true
, if an error exists in the parser, false
otherwiseTV-Browser 3.4.1.0, Copyright (C) 2004-2008 TV-Browser Team (dev@tvbrowser.org)