public class PackageBuildContext extends Object
Constructor and Description |
---|
PackageBuildContext() |
Modifier and Type | Method and Description |
---|---|
void |
addError(DroolsError error) |
void |
addMethod(String method) |
void |
addWarning(DroolsWarning warning) |
KnowledgeBuilderConfigurationImpl |
getConfiguration() |
int |
getCurrentId()
Returns current counter value for generated method names
|
Map |
getDescrLookups()
Returns the Map
|
Dialect |
getDialect() |
Dialect |
getDialect(String dialectName) |
DialectCompiletimeRegistry |
getDialectRegistry() |
List<DroolsError> |
getErrors()
Returns the list of errors found while building the current context
|
Map |
getInvokerLookups()
Returns the Map
|
Map<String,String> |
getInvokers()
Returns the Map
|
KnowledgeBuilderImpl |
getKnowledgeBuilder() |
List<String> |
getMethods()
Returns the list of generated methods
|
int |
getNextId() |
BaseDescr |
getParentDescr() |
org.drools.core.definitions.InternalKnowledgePackage |
getPkg()
Returns the current package being built
|
List<DroolsWarning> |
getWarnings() |
void |
init(KnowledgeBuilderImpl kBuilder,
org.drools.core.definitions.InternalKnowledgePackage pkg,
BaseDescr parentDescr,
DialectCompiletimeRegistry dialectRegistry,
Dialect defaultDialect,
org.drools.core.rule.Dialectable component)
Default constructor
|
boolean |
isTypesafe() |
void |
setDescrLookups(Map descrLookups) |
void |
setDialect(Dialect dialect)
Allows the change of the current dialect in the context
|
void |
setInvokerLookups(Map invokerLookups) |
void |
setInvokers(Map<String,String> invokers) |
void |
setParentDescr(BaseDescr descr) |
void |
setTypesafe(boolean stricttype) |
public void init(KnowledgeBuilderImpl kBuilder, org.drools.core.definitions.InternalKnowledgePackage pkg, BaseDescr parentDescr, DialectCompiletimeRegistry dialectRegistry, Dialect defaultDialect, org.drools.core.rule.Dialectable component)
public BaseDescr getParentDescr()
public void setParentDescr(BaseDescr descr)
public Dialect getDialect()
public void setDialect(Dialect dialect)
public DialectCompiletimeRegistry getDialectRegistry()
public List<DroolsError> getErrors()
public void addError(DroolsError error)
public List<DroolsWarning> getWarnings()
public void addWarning(DroolsWarning warning)
public org.drools.core.definitions.InternalKnowledgePackage getPkg()
public Map getDescrLookups()
public void setDescrLookups(Map descrLookups)
public Map getInvokerLookups()
public void setInvokerLookups(Map invokerLookups)
public void addMethod(String method)
public int getCurrentId()
public int getNextId()
public KnowledgeBuilderConfigurationImpl getConfiguration()
public KnowledgeBuilderImpl getKnowledgeBuilder()
public boolean isTypesafe()
public void setTypesafe(boolean stricttype)
Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.