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)
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
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.