Package org.drools.compiler.builder.impl
Class BuildResultCollectorImpl
java.lang.Object
org.drools.compiler.builder.impl.BuildResultCollectorImpl
- All Implemented Interfaces:
BuildResultCollector
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAll(Collection<? extends KnowledgeBuilderResult> results) voidgetResults(ResultSeverity... problemTypes) Return the knowledge builder results for the listed severities.booleanThis will return true if there were errors in the package building and compiling phasebooleanhasInfo()booleanhasResults(ResultSeverity... problemTypes) booleanvoidreportError(KnowledgeBuilderError error) voidReset the error list.voidvoidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.drools.compiler.builder.impl.BuildResultCollector
add
-
Constructor Details
-
BuildResultCollectorImpl
public BuildResultCollectorImpl()
-
-
Method Details
-
addBuilderResult
- Specified by:
addBuilderResultin interfaceBuildResultCollector
-
hasErrors
public boolean hasErrors()This will return true if there were errors in the package building and compiling phase- Specified by:
hasErrorsin interfaceBuildResultCollector
-
getAllResults
- Specified by:
getAllResultsin interfaceBuildResultCollector
-
getResults
Description copied from interface:BuildResultCollectorReturn the knowledge builder results for the listed severities.- Specified by:
getResultsin interfaceBuildResultCollector
-
hasResults
- Specified by:
hasResultsin interfaceBuildResultCollector
-
hasWarnings
public boolean hasWarnings() -
hasInfo
public boolean hasInfo() -
getWarnings
-
reportError
-
getErrors
- Returns:
- A list of Error objects that resulted from building and compiling the package.
-
resetErrors
public void resetErrors()Reset the error list. This is useful when incrementally building packages. Care should be used when building this, if you clear this when there were errors on items that a rule depends on (eg functions), then you will get spurious errors which will not be that helpful. -
resetWarnings
public void resetWarnings() -
resetProblems
public void resetProblems() -
addAll
- Specified by:
addAllin interfaceBuildResultCollector
-