creator.compiler
Class XmlParseErrorHandler
java.lang.Object
|
+--creator.compiler.XmlParseErrorHandler
- public class XmlParseErrorHandler
- extends java.lang.Object
- implements org.xml.sax.ErrorHandler
Parse Error Handler. It will log and present errors and warnings
for a compilation. It is also the error handler for the XML
parser.
WARNING!!! An instance of this must be registered with the parser
before EACH compile.
- See Also:
Sim
Field Summary |
java.util.Vector |
errors
A vector containing error strings. |
java.util.Vector |
warnings
A vector containing warning strings. |
Method Summary |
void |
error(org.xml.sax.SAXParseException e)
Receive an error from the compiler. |
void |
error(java.lang.String text)
Add an error to the error log. |
void |
fatalError(org.xml.sax.SAXParseException e)
Receive a fatal error from the compiler. |
java.lang.String |
prettyPrint()
Pretty print the errors and warnings. |
void |
warning(org.xml.sax.SAXParseException e)
Receive a warning from the compiler. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
errors
public java.util.Vector errors
- A vector containing error strings.
warnings
public java.util.Vector warnings
- A vector containing warning strings.
XmlParseErrorHandler
public XmlParseErrorHandler()
- Constructor.
error
public void error(java.lang.String text)
- Add an error to the error log.
prettyPrint
public java.lang.String prettyPrint()
- Pretty print the errors and warnings.
- Returns:
- a string containing the print.
error
public void error(org.xml.sax.SAXParseException e)
throws org.xml.sax.SAXException
- Receive an error from the compiler. Do not call this method directly.
- Specified by:
- error in interface org.xml.sax.ErrorHandler
- Throws:
- org.xml.sax.SAXException - Send back to document builder
fatalError
public void fatalError(org.xml.sax.SAXParseException e)
throws org.xml.sax.SAXException
- Receive a fatal error from the compiler. Do not call this method directly.
- Specified by:
- fatalError in interface org.xml.sax.ErrorHandler
- Throws:
- org.xml.sax.SAXException - Send back to document builder
warning
public void warning(org.xml.sax.SAXParseException e)
throws org.xml.sax.SAXException
- Receive a warning from the compiler. Do not call this method directly.
- Specified by:
- warning in interface org.xml.sax.ErrorHandler
- Throws:
- org.xml.sax.SAXException - Send back to document builder