Package org.drools.core.factmodel.traits

Examples of org.drools.core.factmodel.traits.TraitTypeMap.immediateParents()


                        // Example: given classes A <- B <-C, at OTN A, a proxy c can only pass if no proxy b exists

                        TraitableBean txBean = (TraitableBean) proxy.getObject();
                        TraitTypeMap tMap = (TraitTypeMap) txBean._getTraitMap();
                        Collection<Thing> x = tMap.immediateParents( this.typeMask );
                        Thing k = x.iterator().next();

                        long originalMask = context.getModificationMask();
                        if ( ! k.isTop() ) {
                            context.setModificationMask( -1L );
View Full Code Here


                        // Example: given classes A <- B <-C, at OTN A, a proxy c can only pass if no proxy b exists

                        TraitableBean txBean = (TraitableBean) proxy.getObject();
                        TraitTypeMap tMap = (TraitTypeMap) txBean._getTraitMap();
                        Collection<Thing> x = tMap.immediateParents( this.typeMask );
                        Thing k = x.iterator().next();

                        BitMask originalMask = context.getModificationMask();
                        if ( ! k.isTop() ) {
                            context.setModificationMask( AllSetBitMask.get() );
View Full Code Here

                        // Example: given classes A <- B <-C, at OTN A, a proxy c can only pass if no proxy b exists

                        TraitableBean txBean = (TraitableBean) proxy.getObject();
                        TraitTypeMap tMap = (TraitTypeMap) txBean._getTraitMap();
                        Collection<Thing> x = tMap.immediateParents( this.typeMask );
                        Thing k = x.iterator().next();

                        long originalMask = context.getModificationMask();
                        if ( ! k.isTop() ) {
                            context.setModificationMask( -1L );
View Full Code Here

                        // Example: given classes A <- B <-C, at OTN A, a proxy c can only pass if no proxy b exists

                        TraitableBean txBean = (TraitableBean) proxy.getObject();
                        TraitTypeMap tMap = (TraitTypeMap) txBean._getTraitMap();
                        Collection<Thing> x = tMap.immediateParents( this.typeMask );
                        Thing k = x.iterator().next();

                        long originalMask = context.getModificationMask();
                        if ( ! k.isTop() ) {
                            context.setModificationMask( -1L );
View Full Code Here

                                     boolean logical ) throws LogicalTypeInconsistencyException {
        T thing;
        BitSet veto = inner.getCurrentTypeCode() != null ? (BitSet) inner.getCurrentTypeCode().clone() : null;
        if ( veto != null ) {
            TraitTypeMap line = (( TraitTypeMap ) inner._getTraitMap());
            veto = line.metMembersCode( line.immediateParents( veto ) );
        }

        boolean refresh = false;
        if ( trait.isAssignableFrom( inner.getClass() ) ) {
            thing = (T) inner;
View Full Code Here

                                     boolean logical ) throws LogicalTypeInconsistencyException {
        T thing;
        BitSet veto = inner.getCurrentTypeCode() != null ? (BitSet) inner.getCurrentTypeCode().clone() : null;
        if ( veto != null ) {
            TraitTypeMap line = (( TraitTypeMap ) inner._getTraitMap());
            veto = line.metMembersCode( line.immediateParents( veto ) );
        }

        boolean refresh = false;
        if ( trait.isAssignableFrom( inner.getClass() ) ) {
            thing = (T) inner;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.