|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcn.plinguacore.parser.input.InputParser
public abstract class InputParser
This class provides the common functionality for all input parsers
| Constructor Summary | |
|---|---|
InputParser()
Creates a new InputParser instance |
|
| Method Summary | |
|---|---|
java.io.PrintStream |
getErrorChannel()
Gets the errors channel |
java.io.PrintStream |
getInfoChannel()
Gets the PrintStream instance to write information |
java.io.PrintStream |
getMsgChannel()
Gets the PrintStream instance to write messages |
java.util.Map<java.lang.String,java.util.Set<InputParserMsg>> |
getReport()
Gets the report map of the last parsing |
int |
getVerbosityLevel()
Gets the verbosity level |
java.io.PrintStream |
getWarningChannel()
Gets the PrintStream instance to write warnings |
boolean |
hasErrors()
Returns if the parsing process detected any error |
Psystem |
parse(java.io.InputStream stream)
Parses an InputStream instance and generates a new P system without any file routes |
Psystem |
parse(java.io.InputStream stream,
java.lang.String[] fileRoutes)
Parses an InputStream instance and generates a new P system |
Psystem |
parse(java.io.StringReader reader)
Parses an StringReader instance and generates a new P system without any file routes |
Psystem |
parse(java.io.StringReader reader,
java.lang.String[] fileRoutes)
Parses a StringReader instance and generates a new P system without any file routes |
void |
setErrorChannel(java.io.PrintStream errorChannel)
Sets the PrintStream instance to write errors |
void |
setInfoChannel(java.io.PrintStream infoChannel)
Sets the PrintStream to write information |
void |
setMsgChannel(java.io.PrintStream msgChannel)
Sets the PrintStream instance to write messages |
void |
setVerbosityLevel(int verbosityLevel)
Sets the verbosity level (usually between 0-5) |
void |
setWarningChannel(java.io.PrintStream warningChannel)
Sets the PrintStream instance to write warnings |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InputParser()
| Method Detail |
|---|
public java.io.PrintStream getErrorChannel()
public void setErrorChannel(java.io.PrintStream errorChannel)
errorChannel - the PrintStream instance to write errorspublic java.io.PrintStream getInfoChannel()
public void setInfoChannel(java.io.PrintStream infoChannel)
infoChannel - the PrintStream instance to write informationpublic java.io.PrintStream getWarningChannel()
public void setWarningChannel(java.io.PrintStream warningChannel)
warningChannel - the PrintStream instance to write warningspublic int getVerbosityLevel()
public void setVerbosityLevel(int verbosityLevel)
verbosityLevel - the verbosity levelpublic java.io.PrintStream getMsgChannel()
public void setMsgChannel(java.io.PrintStream msgChannel)
msgChannel - the PrintStream instance to write messages
public final Psystem parse(java.io.InputStream stream,
java.lang.String[] fileRoutes)
throws PlinguaCoreException
stream - the stream to be parsedfileRoutes - an array containing all file routes for each file which
compose the stream
PlinguaCoreException - if the parsing couldn't be committed
public final Psystem parse(java.io.InputStream stream)
throws PlinguaCoreException
stream - the stream to be parsed
PlinguaCoreException - if the parsing couldn't be committed
public Psystem parse(java.io.StringReader reader,
java.lang.String[] fileRoutes)
throws PlinguaCoreException
reader - the StringReader instance to be parsedfileRoutes - an array containing all file routes for each file which
compose the stream
PlinguaCoreException - if the parsing couldn't be committed
public final Psystem parse(java.io.StringReader reader)
throws PlinguaCoreException
reader - the StringReader instance to be parsed
PlinguaCoreException - if the parsing couldn't be committedpublic boolean hasErrors()
public java.util.Map<java.lang.String,java.util.Set<InputParserMsg>> getReport()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||