org.drools.compiler.builder.impl
Class TypeDeclarationBuilder
java.lang.Object
org.drools.compiler.builder.impl.TypeDeclarationBuilder
public class TypeDeclarationBuilder
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.