public abstract class AbstractDRLParser extends Object implements DRLParser
| Modifier and Type | Field and Description |
|---|---|
protected ParserHelper |
helper |
protected org.antlr.runtime.TokenStream |
input |
protected org.antlr.runtime.RecognizerSharedState |
state |
| Constructor and Description |
|---|
AbstractDRLParser(org.antlr.runtime.TokenStream input) |
| Modifier and Type | Method and Description |
|---|---|
PackageDescr |
compilationUnit()
Entry point method of a DRL compilation unit
compilationUnit := packageStatement?
|
protected abstract PackageDescr |
compilationUnit(PackageDescrBuilder pkg) |
PackageDescr |
compilationUnit(org.kie.api.io.Resource resource) |
void |
disableEditorInterface() |
void |
enableEditorInterface() |
LinkedList<DroolsSentence> |
getEditorInterface() |
List<String> |
getErrorMessages() |
List<DroolsParserException> |
getErrors() |
ParserHelper |
getHelper() |
protected abstract org.kie.internal.builder.conf.LanguageLevelOption |
getLanguageLevel() |
boolean |
hasErrors() |
void |
reportError(Exception ex) |
void |
reportError(org.antlr.runtime.RecognitionException ex) |
protected org.antlr.runtime.TokenStream input
protected org.antlr.runtime.RecognizerSharedState state
protected ParserHelper helper
public ParserHelper getHelper()
public List<DroolsParserException> getErrors()
public List<String> getErrorMessages()
getErrorMessages in interface DRLParserpublic void enableEditorInterface()
enableEditorInterface in interface DRLParserpublic void disableEditorInterface()
disableEditorInterface in interface DRLParserpublic LinkedList<DroolsSentence> getEditorInterface()
getEditorInterface in interface DRLParserpublic void reportError(org.antlr.runtime.RecognitionException ex)
reportError in interface DRLParserpublic void reportError(Exception ex)
reportError in interface DRLParserpublic PackageDescr compilationUnit() throws org.antlr.runtime.RecognitionException
compilationUnit in interface DRLParserorg.antlr.runtime.RecognitionExceptionpublic PackageDescr compilationUnit(org.kie.api.io.Resource resource) throws org.antlr.runtime.RecognitionException
compilationUnit in interface DRLParserorg.antlr.runtime.RecognitionExceptionprotected abstract PackageDescr compilationUnit(PackageDescrBuilder pkg) throws org.antlr.runtime.RecognitionException
org.antlr.runtime.RecognitionExceptionprotected abstract org.kie.internal.builder.conf.LanguageLevelOption getLanguageLevel()
Copyright © 2001–2017 JBoss by Red Hat. All rights reserved.