Package org.drools.traits.core.factmodel
Class TypeHierarchy<T,J extends LatticeElement<T>>
java.lang.Object
org.drools.traits.core.util.AbstractBitwiseHierarchyImpl<T,J>
org.drools.traits.core.factmodel.TypeHierarchy<T,J>
- All Implemented Interfaces:
Externalizable,Serializable,CodedHierarchy<T>,TypeLattice<T>
- Direct Known Subclasses:
TraitFieldImpl.DefaultValueHierarchy,TraitTypeMapImpl
public abstract class TypeHierarchy<T,J extends LatticeElement<T>>
extends AbstractBitwiseHierarchyImpl<T,J>
implements TypeLattice<T>, Externalizable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.drools.traits.core.util.AbstractBitwiseHierarchyImpl
AbstractBitwiseHierarchyImpl.HierCodeComparator -
Field Summary
Fields inherited from class org.drools.traits.core.util.AbstractBitwiseHierarchyImpl
fixedRoot, line -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddescendants(BitSet key) descendants(T y) protected Jprotected Collection<T>parentValues(J node) voidreadExternal(ObjectInput objectInput) voidsetBottomCode(BitSet bottom) voidsetTopCode(BitSet top) toString()protected abstract JvoidwriteExternal(ObjectOutput objectOutput) Methods inherited from class org.drools.traits.core.util.AbstractBitwiseHierarchyImpl
add, clear, contains, getCode, getMember, getNodeByKey, getNodes, getSortedMap, getSortedMembers, hasKey, immediateChildren, immediateParents, isEmpty, joinCode, jointMembersCode, lowerBorder, lowerDescendants, meetCode, metMembersCode, numBit, parents, parents, remove, removeMember, removeMember, size, stringToBitSet, superset, toBinaryString, toBinaryString, upperAncestors, upperBorderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.drools.traits.core.factmodel.CodedHierarchy
getCode, getMember, getSortedMap, getSortedMembers, hasKey, immediateChildren, immediateParents, joinCode, jointMembersCode, lowerBorder, lowerDescendants, meetCode, metMembersCode, parents, parents, removeMember, removeMember, size, upperAncestors, upperBorder
-
Constructor Details
-
TypeHierarchy
public TypeHierarchy()
-
-
Method Details
-
getNode
- Specified by:
getNodein classAbstractBitwiseHierarchyImpl<T,J extends LatticeElement<T>>
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classAbstractBitwiseHierarchyImpl<T,J extends LatticeElement<T>> - Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classAbstractBitwiseHierarchyImpl<T,J extends LatticeElement<T>> - Throws:
IOExceptionClassNotFoundException
-
toString
-
getTopCode
- Specified by:
getTopCodein interfaceTypeLattice<T>
-
getBottomCode
- Specified by:
getBottomCodein interfaceTypeLattice<T>
-
setBottomCode
- Specified by:
setBottomCodein interfaceTypeLattice<T>
-
setTopCode
- Specified by:
setTopCodein interfaceTypeLattice<T>
-
addMember
- Specified by:
addMemberin interfaceCodedHierarchy<T>
-
wrap
-
parentValues
- Specified by:
parentValuesin classAbstractBitwiseHierarchyImpl<T,J extends LatticeElement<T>>
-
children
- Specified by:
childrenin interfaceCodedHierarchy<T>
-
descendants
- Specified by:
descendantsin interfaceCodedHierarchy<T>
-
children
- Specified by:
childrenin interfaceCodedHierarchy<T>
-
descendants
- Specified by:
descendantsin interfaceCodedHierarchy<T>
-
ancestors
- Specified by:
ancestorsin interfaceCodedHierarchy<T>
-
ancestors
- Specified by:
ancestorsin interfaceCodedHierarchy<T>
-