Class ModifyLiteral<T>

    • Field Detail

      • modificationMask

        protected org.drools.util.bitmask.BitMask modificationMask
      • key

        protected java.net.URI key
      • with

        protected java.lang.Object[] with
      • extraMasks

        protected org.drools.util.bitmask.BitMask[] extraMasks
    • Constructor Detail

      • ModifyLiteral

        public ModifyLiteral​(T target,
                             With[] with)
    • Method Detail

      • getMetaClassInfo

        protected abstract MetaClass<T> getMetaClassInfo()
      • mergeWiths

        protected void mergeWiths​(With[] with)
      • call

        public T call​(T object)
        Specified by:
        call in interface Modify<T>
      • call

        public T call​(org.drools.kiesession.rulebase.InternalKnowledgeBase knowledgeBase)
        Specified by:
        call in interface Modify<T>
      • computeModificationMasks

        protected void computeModificationMasks​(org.drools.kiesession.rulebase.InternalKnowledgeBase knowledgeBase)
      • getAccessibleProperties

        protected java.util.List<java.lang.String> getAccessibleProperties​(java.lang.Object o,
                                                                           org.drools.kiesession.rulebase.InternalKnowledgeBase knowledgeBase)
      • getModificationMask

        public org.drools.util.bitmask.BitMask getModificationMask()
        Specified by:
        getModificationMask in interface Modify<T>
      • getModificationClass

        public abstract java.lang.Class getModificationClass()
        Specified by:
        getModificationClass in interface Modify<T>
      • addTask

        protected <R,​C> void addTask​(org.drools.traits.core.metadata.MetaProperty<?,​R,​C> p,
                                           C val)
      • addTask

        protected <R,​C> void addTask​(org.drools.traits.core.metadata.MetaProperty<?,​R,​C> p,
                                           C val,
                                           Lit mode)
      • getId

        public java.lang.Object getId()
        Specified by:
        getId in interface Identifiable
      • createURI

        protected java.net.URI createURI()
      • getInverse

        public <S,​T> Modify<S> getInverse​(T value)
      • isAffected

        protected boolean isAffected​(java.lang.Object value,
                                     java.lang.Object taskValue)