@Runtime public class X_LLkParser extends antlr.LLkParser
message
system.EventGenerator
object
which is stored in event
. SAXEventGenerator
, but this is not
necessarily so.)
reportError(String)
,
reportWarning(String)
, etc., which are called by standard antlr
behaviour, and here create Message
objects.
setEventGenerator(EventGenerator)
and
setMessageReceiver(MessageReceiver)
.
After creation of the X_LLKParser, the field event
contains
a new EventFilter
, which is a clsss which discards all events!
This is probably not what you want.
HistoryToken
. See there for an example.)Modifier and Type | Field and Description |
---|---|
protected EventGenerator<NamespaceName,XMLDocumentIdentifier> |
event |
protected MessageReceiver<? super SimpleMessage<XMLDocumentIdentifier>> |
messageReceiver |
Constructor and Description |
---|
X_LLkParser(antlr.ParserSharedInputState lexer,
int k) |
X_LLkParser(antlr.TokenBuffer lexer,
int k) |
X_LLkParser(antlr.TokenStream lexer,
int k) |
Modifier and Type | Method and Description |
---|---|
EventGenerator<NamespaceName,XMLDocumentIdentifier> |
getEventGenerator() |
Location<XMLDocumentIdentifier> |
getLocation() |
void |
reportError(antlr.RecognitionException e) |
void |
reportError(String s) |
void |
reportWarning(String s) |
void |
setEventGenerator(EventGenerator<NamespaceName,XMLDocumentIdentifier> event) |
void |
setFilename(String filename)
Deprecated.
ignored by
#getLocator mechanism. |
void |
setMessageReceiver(MessageReceiver<? super SimpleMessage<XMLDocumentIdentifier>> mr) |
addMessageListener, addParserListener, addParserMatchListener, addParserTokenListener, addSemanticPredicateListener, addSyntacticPredicateListener, addTraceListener, consumeUntil, consumeUntil, defaultDebuggingSetup, getAST, getASTFactory, getFilename, getInputState, getTokenName, getTokenNames, getTokenTypeToASTClassMap, isDebugMode, mark, match, match, matchNot, panic, removeMessageListener, removeParserListener, removeParserMatchListener, removeParserTokenListener, removeSemanticPredicateListener, removeSyntacticPredicateListener, removeTraceListener, rewind, setASTFactory, setASTNodeClass, setASTNodeType, setDebugMode, setIgnoreInvalidDebugCalls, setInputState, setTokenBuffer, traceIndent
protected EventGenerator<NamespaceName,XMLDocumentIdentifier> event
protected MessageReceiver<? super SimpleMessage<XMLDocumentIdentifier>> messageReceiver
public X_LLkParser(antlr.TokenStream lexer, int k)
public X_LLkParser(antlr.TokenBuffer lexer, int k)
public X_LLkParser(antlr.ParserSharedInputState lexer, int k)
public void setEventGenerator(EventGenerator<NamespaceName,XMLDocumentIdentifier> event)
public EventGenerator<NamespaceName,XMLDocumentIdentifier> getEventGenerator()
public void setMessageReceiver(MessageReceiver<? super SimpleMessage<XMLDocumentIdentifier>> mr)
public void reportError(String s)
reportError
in class antlr.Parser
public void reportWarning(String s)
reportWarning
in class antlr.Parser
public void reportError(antlr.RecognitionException e)
reportError
in class antlr.Parser
public Location<XMLDocumentIdentifier> getLocation()
@Deprecated public void setFilename(String filename)
#getLocator
mechanism.setFilename
in class antlr.Parser
see also the complete user documentation .