org.drools.compiler.lang
Class AbstractDRLParser
java.lang.Object
org.drools.compiler.lang.AbstractDRLParser
- All Implemented Interfaces:
- DRLParser
- Direct Known Subclasses:
- DRL5Parser, DRL6Parser, DRL6StrictParser
public abstract class AbstractDRLParser
- extends Object
- implements DRLParser
|
Field Summary |
protected ParserHelper |
helper
|
protected org.antlr.runtime.TokenStream |
input
|
protected org.antlr.runtime.RecognizerSharedState |
state
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.drools.compiler.lang.DRLParser |
chunk |
input
protected org.antlr.runtime.TokenStream input
state
protected org.antlr.runtime.RecognizerSharedState state
helper
protected ParserHelper helper
AbstractDRLParser
public AbstractDRLParser(org.antlr.runtime.TokenStream input)
getHelper
public ParserHelper getHelper()
hasErrors
public boolean hasErrors()
- Specified by:
hasErrors in interface DRLParser
getErrors
public List<DroolsParserException> getErrors()
- Specified by:
getErrors in interface DRLParser
getErrorMessages
public List<String> getErrorMessages()
- Specified by:
getErrorMessages in interface DRLParser
enableEditorInterface
public void enableEditorInterface()
- Specified by:
enableEditorInterface in interface DRLParser
disableEditorInterface
public void disableEditorInterface()
- Specified by:
disableEditorInterface in interface DRLParser
getEditorInterface
public LinkedList<DroolsSentence> getEditorInterface()
- Specified by:
getEditorInterface in interface DRLParser
reportError
public void reportError(org.antlr.runtime.RecognitionException ex)
- Specified by:
reportError in interface DRLParser
reportError
public void reportError(Exception ex)
- Specified by:
reportError in interface DRLParser
compilationUnit
public PackageDescr compilationUnit()
throws org.antlr.runtime.RecognitionException
- Entry point method of a DRL compilation unit
compilationUnit := packageStatement? ( statement SEMICOLON? )*
- Specified by:
compilationUnit in interface DRLParser
- Returns:
- a PackageDescr with the content of the whole compilation unit
- Throws:
org.antlr.runtime.RecognitionException
compilationUnit
public PackageDescr compilationUnit(org.kie.api.io.Resource resource)
throws org.antlr.runtime.RecognitionException
- Specified by:
compilationUnit in interface DRLParser
- Throws:
org.antlr.runtime.RecognitionException
compilationUnit
protected abstract PackageDescr compilationUnit(PackageDescrBuilder pkg)
throws org.antlr.runtime.RecognitionException
- Throws:
org.antlr.runtime.RecognitionException
getLanguageLevel
protected abstract org.kie.internal.builder.conf.LanguageLevelOption getLanguageLevel()
Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.