public class PackageBuildContext extends Object
| Constructor and Description |
|---|
PackageBuildContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDescrLookups(String className,
BaseDescr baseDescr) |
void |
addError(DroolsError error) |
void |
addInvoker(String invokerClassName,
String invoker) |
void |
addInvokerLookup(String className,
Object invokerLookup) |
void |
addMethod(String method) |
void |
addWarning(DroolsWarning warning) |
KnowledgeBuilderConfigurationImpl |
getConfiguration() |
int |
getCurrentId()
Returns current counter value for generated method names
|
BaseDescr |
getDescrLookup(String className)
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
|
Object |
getInvokerLookup(String className) |
Map<String,String> |
getInvokers()
Returns the Map
|
DroolsAssemblerContext |
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(DroolsAssemblerContext kBuilder,
org.drools.core.definitions.InternalKnowledgePackage pkg,
BaseDescr parentDescr,
DialectCompiletimeRegistry dialectRegistry,
Dialect defaultDialect,
org.drools.core.rule.Dialectable component)
Default constructor
|
boolean |
isTypesafe() |
Class<?> |
resolveVarType(String identifier) |
void |
setDialect(Dialect dialect)
Allows the change of the current dialect in the context
|
void |
setParentDescr(BaseDescr descr) |
void |
setTypesafe(boolean stricttype) |
public void init(DroolsAssemblerContext 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 BaseDescr getDescrLookup(String className)
public void addMethod(String method)
public int getCurrentId()
public int getNextId()
public KnowledgeBuilderConfigurationImpl getConfiguration()
public DroolsAssemblerContext getKnowledgeBuilder()
public boolean isTypesafe()
public void setTypesafe(boolean stricttype)
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.