Package org.drools.traits.core.metadata
Class ModifyLiteral<T>
- java.lang.Object
-
- org.drools.traits.core.metadata.AbstractWMTask<T>
-
- org.drools.traits.core.metadata.ModifyLiteral<T>
-
- All Implemented Interfaces:
Serializable,Identifiable,MetaCallableTask<T>,Modify<T>,WorkingMemoryTask<T>
- Direct Known Subclasses:
ModifyLiteral.InverseModifyLiteral
public abstract class ModifyLiteral<T> extends AbstractWMTask<T> implements Modify<T>, Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classModifyLiteral.InverseModifyLiteralstatic classModifyLiteral.ModifyTaskLiteral<T,R,C>-
Nested classes/interfaces inherited from interface org.drools.traits.core.metadata.MetaCallableTask
MetaCallableTask.KIND
-
-
Field Summary
Fields Modifier and Type Field Description protected org.drools.core.util.bitmask.BitMask[]extraMasksprotected URIkeyprotected org.drools.core.util.bitmask.BitMaskmodificationMaskprotected ModifyLiteral.ModifyTaskLiteral<T,?,?>taskprotected Object[]with
-
Constructor Summary
Constructors Constructor Description ModifyLiteral(T target, With[] with)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected <R,C>
voidaddTask(org.drools.traits.core.metadata.MetaProperty<?,R,C> p, C val)protected <R,C>
voidaddTask(org.drools.traits.core.metadata.MetaProperty<?,R,C> p, C val, Lit mode)Tcall()Tcall(org.drools.core.impl.InternalKnowledgeBase knowledgeBase)Tcall(T object)protected voidcomputeModificationMasks(org.drools.core.impl.InternalKnowledgeBase knowledgeBase)protected URIcreateURI()protected List<String>getAccessibleProperties(Object o, org.drools.core.impl.InternalKnowledgeBase knowledgeBase)Object[]getAdditionalUpdates()org.drools.core.util.bitmask.BitMaskgetAdditionalUpdatesModificationMask(int j)ObjectgetId()<S,T>
Modify<S>getInverse(T value)protected abstract MetaClass<T>getMetaClassInfo()abstract ClassgetModificationClass()org.drools.core.util.bitmask.BitMaskgetModificationMask()ModifyTaskgetSetterChain()ModifyLiteral<T>getSetters()TgetTarget()ObjectgetTargetId()URIgetUri()protected booleanisAffected(Object value, Object taskValue)MetaCallableTask.KINDkind()protected voidmergeWiths(With[] with)-
Methods inherited from class org.drools.traits.core.metadata.AbstractWMTask
equals, hashCode
-
-
-
-
Field Detail
-
task
protected ModifyLiteral.ModifyTaskLiteral<T,?,?> task
-
modificationMask
protected org.drools.core.util.bitmask.BitMask modificationMask
-
key
protected URI key
-
with
protected Object[] with
-
extraMasks
protected org.drools.core.util.bitmask.BitMask[] extraMasks
-
-
Method Detail
-
mergeWiths
protected void mergeWiths(With[] with)
-
getSetters
public ModifyLiteral<T> getSetters()
- Specified by:
getSettersin interfaceWorkingMemoryTask<T>
-
getTarget
public T getTarget()
-
getSetterChain
public ModifyTask getSetterChain()
- Specified by:
getSetterChainin interfaceModify<T>
-
getTargetId
public Object getTargetId()
- Specified by:
getTargetIdin interfaceWorkingMemoryTask<T>
-
getAdditionalUpdates
public Object[] getAdditionalUpdates()
- Specified by:
getAdditionalUpdatesin interfaceModify<T>
-
getAdditionalUpdatesModificationMask
public org.drools.core.util.bitmask.BitMask getAdditionalUpdatesModificationMask(int j)
- Specified by:
getAdditionalUpdatesModificationMaskin interfaceModify<T>
-
kind
public MetaCallableTask.KIND kind()
- Specified by:
kindin interfaceMetaCallableTask<T>
-
call
public T call()
- Specified by:
callin interfaceMetaCallableTask<T>
-
call
public T call(org.drools.core.impl.InternalKnowledgeBase knowledgeBase)
-
computeModificationMasks
protected void computeModificationMasks(org.drools.core.impl.InternalKnowledgeBase knowledgeBase)
-
getAccessibleProperties
protected List<String> getAccessibleProperties(Object o, org.drools.core.impl.InternalKnowledgeBase knowledgeBase)
-
getModificationMask
public org.drools.core.util.bitmask.BitMask getModificationMask()
- Specified by:
getModificationMaskin interfaceModify<T>
-
getModificationClass
public abstract Class getModificationClass()
- Specified by:
getModificationClassin interfaceModify<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)
-
getUri
public URI getUri()
- Specified by:
getUriin interfaceIdentifiable
-
getId
public Object getId()
- Specified by:
getIdin interfaceIdentifiable
-
createURI
protected URI createURI()
-
getInverse
public <S,T> Modify<S> getInverse(T value)
-
-