Drools :: Compiler 6.1.0.Beta3

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)
           
 org.drools.core.rule.TypeDeclaration getAndRegisterTypeDeclaration(Class<?> cls, String packageName)
           
 Collection<AbstractClassTypeDeclarationDescr> sortByHierarchy(List<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)

buildInheritedFieldDescrFromDefinition

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

sortByHierarchy

public Collection<AbstractClassTypeDeclarationDescr> sortByHierarchy(List<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.Beta3

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