Drools :: Compiler 6.1.0.Final

org.drools.compiler.builder.impl
Class TypeDeclarationBuilder

java.lang.Object
  extended by org.drools.compiler.builder.impl.TypeDeclarationBuilder

public class TypeDeclarationBuilder
extends Object


Method Summary
protected  TypeFieldDescr buildInheritedFieldDescrFromDefinition(org.kie.api.definition.type.FactField fld, TypeDeclarationDescr typeDescr)
           
 void fillFieldTypes(AbstractClassTypeDeclarationDescr typeDescr, PackageDescr packageDescr)
           
 org.drools.core.rule.TypeDeclaration getAndRegisterTypeDeclaration(Class<?> cls, String packageName)
           
 void processTypeDeclaration(PackageRegistry pkgRegistry, AbstractClassTypeDeclarationDescr typeDescr, Collection<AbstractClassTypeDeclarationDescr> sortedTypeDescriptors, List<org.drools.compiler.builder.impl.TypeDefinition> unresolvedTypes, Map<String,TypeDeclarationDescr> unprocessableDescrs)
           
static Collection<AbstractClassTypeDeclarationDescr> sortByHierarchy(KnowledgeBuilderImpl kbuilder, Collection<? extends AbstractClassTypeDeclarationDescr> typeDeclarations)
          Utility method to sort declared beans.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAndRegisterTypeDeclaration

public org.drools.core.rule.TypeDeclaration getAndRegisterTypeDeclaration(Class<?> cls,
                                                                          String packageName)

fillFieldTypes

public void fillFieldTypes(AbstractClassTypeDeclarationDescr typeDescr,
                           PackageDescr packageDescr)

buildInheritedFieldDescrFromDefinition

protected TypeFieldDescr buildInheritedFieldDescrFromDefinition(org.kie.api.definition.type.FactField fld,
                                                                TypeDeclarationDescr typeDescr)

processTypeDeclaration

public void processTypeDeclaration(PackageRegistry pkgRegistry,
                                   AbstractClassTypeDeclarationDescr typeDescr,
                                   Collection<AbstractClassTypeDeclarationDescr> sortedTypeDescriptors,
                                   List<org.drools.compiler.builder.impl.TypeDefinition> unresolvedTypes,
                                   Map<String,TypeDeclarationDescr> unprocessableDescrs)

sortByHierarchy

public static Collection<AbstractClassTypeDeclarationDescr> sortByHierarchy(KnowledgeBuilderImpl kbuilder,
                                                                            Collection<? extends AbstractClassTypeDeclarationDescr> typeDeclarations)
Utility method to sort declared beans. Linearizes the hierarchy, i.e.generates a sequence of declaration such that, if Sub is subclass of Sup, then the index of Sub will be > than the index of Sup in the resulting collection. This ensures that superclasses are processed before their subclasses


Drools :: Compiler 6.1.0.Final

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