Drools :: Compiler 6.0.0.CR5

org.drools.compiler.lang
Class AbstractDRLParser

java.lang.Object
  extended by org.drools.compiler.lang.AbstractDRLParser
All Implemented Interfaces:
DRLParser
Direct Known Subclasses:
DRL5Parser, DRL6Parser

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
           
 
Constructor Summary
AbstractDRLParser(org.antlr.runtime.TokenStream input)
           
 
Method Summary
 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)
           
 
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
 

Field Detail

input

protected org.antlr.runtime.TokenStream input

state

protected org.antlr.runtime.RecognizerSharedState state

helper

protected ParserHelper helper
Constructor Detail

AbstractDRLParser

public AbstractDRLParser(org.antlr.runtime.TokenStream input)
Method Detail

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 final 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 final 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()

Drools :: Compiler 6.0.0.CR5

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.