Package eu.bandm.tools.xantlr.runtime
Class EventFilter<N,D>
java.lang.Object
eu.bandm.tools.xantlr.runtime.EventFilter<N,D>
- All Implemented Interfaces:
EventGenerator<N,
D>
Trivial implementation of
EventGenerator
which throws
away all events.
Used for initialization whenever a X_LLkParser
is created.
Should be replaced by something else (e.g. a SAXEventGenerator
by
calling parser.
X_LLkParser.setEventGenerator(EventGenerator)
.
Can be useful for deriving own event genertaors which only need to implement
a subset of the interface methods (what java calls "Adapter" !-)-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
allow()
void
characters
(String text) void
endElement
(N name) void
void
fatalError
(String message) getLocation
(antlr.RecognitionException e) void
startElement
(N name) void
suppress()
void
-
Constructor Details
-
EventFilter
public EventFilter()
-
-
Method Details
-
suppress
public void suppress()- Specified by:
suppress
in interfaceEventGenerator<N,
D>
-
allow
public void allow() throws antlr.SemanticException- Specified by:
allow
in interfaceEventGenerator<N,
D> - Throws:
antlr.SemanticException
-
startElement
- Specified by:
startElement
in interfaceEventGenerator<N,
D> - Throws:
antlr.SemanticException
-
endElement
- Specified by:
endElement
in interfaceEventGenerator<N,
D> - Throws:
antlr.SemanticException
-
characters
- Specified by:
characters
in interfaceEventGenerator<N,
D> - Throws:
antlr.SemanticException
-
warning
- Specified by:
warning
in interfaceEventGenerator<N,
D> - Throws:
antlr.SemanticException
-
error
- Specified by:
error
in interfaceEventGenerator<N,
D> - Throws:
antlr.SemanticException
-
fatalError
- Specified by:
fatalError
in interfaceEventGenerator<N,
D> - Throws:
antlr.SemanticException
-
getLocation
- Specified by:
getLocation
in interfaceEventGenerator<N,
D>
-
getLocation
- Specified by:
getLocation
in interfaceEventGenerator<N,
D>
-