Package org.drools.compiler.builder.impl
Class TypeDeclarationContextImpl
- java.lang.Object
-
- org.drools.compiler.builder.impl.TypeDeclarationContextImpl
-
- All Implemented Interfaces:
BuilderConfigurationProvider
,GlobalVariableContext
,InternalKnowledgeBaseProvider
,RootClassLoaderProvider
,TypeDeclarationContext
,TypeDeclarationManager
,PackageRegistryManager
public class TypeDeclarationContextImpl extends java.lang.Object implements TypeDeclarationContext
-
-
Constructor Summary
Constructors Constructor Description TypeDeclarationContextImpl(KnowledgeBuilderConfigurationImpl configuration, PackageRegistryManager packageRegistryManager, GlobalVariableContext globalVariableContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addGlobal(java.lang.String identifier, java.lang.reflect.Type type)
boolean
filterAccepts(org.kie.internal.builder.ResourceChange.Type declaration, java.lang.String namespace, java.lang.String typeName)
org.drools.base.rule.TypeDeclaration
getAndRegisterTypeDeclaration(java.lang.Class<?> cls, java.lang.String name)
KnowledgeBuilderConfigurationImpl
getBuilderConfiguration()
java.util.Map<java.lang.String,java.lang.reflect.Type>
getGlobals()
org.drools.kiesession.rulebase.InternalKnowledgeBase
getKnowledgeBase()
PackageRegistry
getOrCreatePackageRegistry(org.drools.drl.ast.descr.PackageDescr packageDescr)
java.util.List<org.drools.drl.ast.descr.PackageDescr>
getPackageDescrs(java.lang.String namespace)
java.util.Collection<java.lang.String>
getPackageNames()
java.util.Map<java.lang.String,PackageRegistry>
getPackageRegistry()
PackageRegistry
getPackageRegistry(java.lang.String packageName)
java.lang.ClassLoader
getRootClassLoader()
TypeDeclarationBuilder
getTypeBuilder()
org.drools.base.rule.TypeDeclaration
getTypeDeclaration(java.lang.Class<?> objectType)
org.drools.base.rule.TypeDeclaration
getTypeDeclaration(org.drools.base.base.ObjectType objectType)
void
setTypeDeclarationManager(TypeDeclarationManagerImpl typeDeclarationManagerImpl)
-
-
-
Constructor Detail
-
TypeDeclarationContextImpl
public TypeDeclarationContextImpl(KnowledgeBuilderConfigurationImpl configuration, PackageRegistryManager packageRegistryManager, GlobalVariableContext globalVariableContext)
-
-
Method Detail
-
setTypeDeclarationManager
public void setTypeDeclarationManager(TypeDeclarationManagerImpl typeDeclarationManagerImpl)
-
getTypeBuilder
public TypeDeclarationBuilder getTypeBuilder()
- Specified by:
getTypeBuilder
in interfaceTypeDeclarationContext
-
filterAccepts
public boolean filterAccepts(org.kie.internal.builder.ResourceChange.Type declaration, java.lang.String namespace, java.lang.String typeName)
- Specified by:
filterAccepts
in interfaceTypeDeclarationContext
-
getAndRegisterTypeDeclaration
public org.drools.base.rule.TypeDeclaration getAndRegisterTypeDeclaration(java.lang.Class<?> cls, java.lang.String name)
- Specified by:
getAndRegisterTypeDeclaration
in interfaceTypeDeclarationManager
-
getTypeDeclaration
public org.drools.base.rule.TypeDeclaration getTypeDeclaration(org.drools.base.base.ObjectType objectType)
- Specified by:
getTypeDeclaration
in interfaceTypeDeclarationManager
-
getTypeDeclaration
public org.drools.base.rule.TypeDeclaration getTypeDeclaration(java.lang.Class<?> objectType)
- Specified by:
getTypeDeclaration
in interfaceTypeDeclarationManager
-
getPackageDescrs
public java.util.List<org.drools.drl.ast.descr.PackageDescr> getPackageDescrs(java.lang.String namespace)
- Specified by:
getPackageDescrs
in interfaceTypeDeclarationContext
-
getPackageRegistry
public PackageRegistry getPackageRegistry(java.lang.String packageName)
- Specified by:
getPackageRegistry
in interfacePackageRegistryManager
-
getOrCreatePackageRegistry
public PackageRegistry getOrCreatePackageRegistry(org.drools.drl.ast.descr.PackageDescr packageDescr)
- Specified by:
getOrCreatePackageRegistry
in interfacePackageRegistryManager
-
getPackageRegistry
public java.util.Map<java.lang.String,PackageRegistry> getPackageRegistry()
- Specified by:
getPackageRegistry
in interfacePackageRegistryManager
-
getPackageNames
public java.util.Collection<java.lang.String> getPackageNames()
- Specified by:
getPackageNames
in interfacePackageRegistryManager
-
getBuilderConfiguration
public KnowledgeBuilderConfigurationImpl getBuilderConfiguration()
- Specified by:
getBuilderConfiguration
in interfaceBuilderConfigurationProvider
-
getKnowledgeBase
public org.drools.kiesession.rulebase.InternalKnowledgeBase getKnowledgeBase()
- Specified by:
getKnowledgeBase
in interfaceInternalKnowledgeBaseProvider
-
getRootClassLoader
public java.lang.ClassLoader getRootClassLoader()
- Specified by:
getRootClassLoader
in interfaceRootClassLoaderProvider
-
getGlobals
public java.util.Map<java.lang.String,java.lang.reflect.Type> getGlobals()
- Specified by:
getGlobals
in interfaceGlobalVariableContext
-
addGlobal
public void addGlobal(java.lang.String identifier, java.lang.reflect.Type type)
- Specified by:
addGlobal
in interfaceGlobalVariableContext
-
-