@Runtime public class SAXEventGenerator extends Object implements EventGenerator<NamespaceName,XMLDocumentIdentifier>, Locator
X_LLkParser
and to
the user doc.
myParser.event.
setContentHandler(ContentHandler)
before starting the parser process.Modifier and Type | Field and Description |
---|---|
protected boolean |
atEnd |
protected ContentHandler |
contentHandler |
protected XMLDocumentIdentifier |
documentId |
Attributes |
EMPTY_ATTRIBUTES |
protected ErrorHandler |
errorHandler |
protected antlr.Parser |
parser |
protected String |
publicId |
protected int |
suppression |
protected String |
systemId |
protected boolean |
useSystemId |
Constructor and Description |
---|
SAXEventGenerator(antlr.Parser parser) |
Modifier and Type | Method and Description |
---|---|
void |
allow() |
void |
characters(String name) |
void |
endElement(NamespaceName name) |
void |
error(String message) |
void |
fatalError(String message) |
int |
getColumnNumber() |
ContentHandler |
getContentHandler() |
XMLDocumentIdentifier |
getDocumentId() |
ErrorHandler |
getErrorHandler() |
int |
getLineNumber() |
Location<XMLDocumentIdentifier> |
getLocation() |
Location<XMLDocumentIdentifier> |
getLocation(antlr.RecognitionException e) |
String |
getPublicId() |
String |
getSystemId() |
void |
setContentHandler(ContentHandler contentHandler) |
void |
setErrorHandler(ErrorHandler errorHandler) |
void |
setPublicId(String publicId) |
void |
setSystemId(String systemId) |
void |
startElement(NamespaceName name) |
void |
suppress() |
void |
warning(String message) |
public final Attributes EMPTY_ATTRIBUTES
protected final antlr.Parser parser
protected ContentHandler contentHandler
protected ErrorHandler errorHandler
protected int suppression
protected String publicId
protected String systemId
protected transient XMLDocumentIdentifier documentId
protected boolean useSystemId
protected transient boolean atEnd
public ContentHandler getContentHandler()
public void setContentHandler(ContentHandler contentHandler)
public ErrorHandler getErrorHandler()
public void setErrorHandler(ErrorHandler errorHandler)
public void suppress()
suppress
in interface EventGenerator<NamespaceName,XMLDocumentIdentifier>
public void allow() throws antlr.SemanticException
allow
in interface EventGenerator<NamespaceName,XMLDocumentIdentifier>
antlr.SemanticException
public void startElement(NamespaceName name) throws antlr.SemanticException
startElement
in interface EventGenerator<NamespaceName,XMLDocumentIdentifier>
antlr.SemanticException
public void endElement(NamespaceName name) throws antlr.SemanticException
endElement
in interface EventGenerator<NamespaceName,XMLDocumentIdentifier>
antlr.SemanticException
public void characters(String name) throws antlr.SemanticException
characters
in interface EventGenerator<NamespaceName,XMLDocumentIdentifier>
antlr.SemanticException
public void warning(String message) throws antlr.SemanticException
warning
in interface EventGenerator<NamespaceName,XMLDocumentIdentifier>
antlr.SemanticException
public void error(String message) throws antlr.SemanticException
error
in interface EventGenerator<NamespaceName,XMLDocumentIdentifier>
antlr.SemanticException
public void fatalError(String message) throws antlr.SemanticException
fatalError
in interface EventGenerator<NamespaceName,XMLDocumentIdentifier>
antlr.SemanticException
public void setPublicId(String publicId)
public void setSystemId(String systemId)
public String getPublicId()
getPublicId
in interface Locator
public String getSystemId()
getSystemId
in interface Locator
public XMLDocumentIdentifier getDocumentId()
public int getLineNumber()
getLineNumber
in interface Locator
public int getColumnNumber()
getColumnNumber
in interface Locator
public Location<XMLDocumentIdentifier> getLocation()
getLocation
in interface EventGenerator<NamespaceName,XMLDocumentIdentifier>
public Location<XMLDocumentIdentifier> getLocation(antlr.RecognitionException e)
getLocation
in interface EventGenerator<NamespaceName,XMLDocumentIdentifier>
see also the complete user documentation .