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 DRLParser
public void enableEditorInterface()
enableEditorInterface
in interface DRLParser
public void disableEditorInterface()
disableEditorInterface
in interface DRLParser
public LinkedList<DroolsSentence> getEditorInterface()
getEditorInterface
in interface DRLParser
public void reportError(org.antlr.runtime.RecognitionException ex)
reportError
in interface DRLParser
public void reportError(Exception ex)
reportError
in interface DRLParser
public PackageDescr compilationUnit() throws org.antlr.runtime.RecognitionException
compilationUnit
in interface DRLParser
org.antlr.runtime.RecognitionException
public PackageDescr compilationUnit(org.kie.api.io.Resource resource) throws org.antlr.runtime.RecognitionException
compilationUnit
in interface DRLParser
org.antlr.runtime.RecognitionException
protected abstract PackageDescr compilationUnit(PackageDescrBuilder pkg) throws org.antlr.runtime.RecognitionException
org.antlr.runtime.RecognitionException
protected abstract org.kie.internal.builder.conf.LanguageLevelOption getLanguageLevel()
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.