public abstract class ModifyLiteral<T> extends AbstractWMTask<T> implements Modify<T>, Serializable
Modifier and Type | Class and Description |
---|---|
static class |
ModifyLiteral.InverseModifyLiteral |
static class |
ModifyLiteral.ModifyTaskLiteral<T,R,C> |
MetaCallableTask.KIND
Modifier and Type | Field and Description |
---|---|
protected BitMask[] |
extraMasks |
protected URI |
key |
protected BitMask |
modificationMask |
protected ModifyLiteral.ModifyTaskLiteral<T,?,?> |
task |
protected Object[] |
with |
Constructor and Description |
---|
ModifyLiteral(T target,
With[] with) |
Modifier and Type | Method and Description |
---|---|
protected <R,C> void |
addTask(MetaProperty<?,R,C> p,
C val) |
protected <R,C> void |
addTask(MetaProperty<?,R,C> p,
C val,
Lit mode) |
T |
call() |
T |
call(InternalKnowledgeBase knowledgeBase) |
T |
call(T object) |
protected void |
computeModificationMasks(InternalKnowledgeBase knowledgeBase) |
protected URI |
createURI() |
Object[] |
getAdditionalUpdates() |
BitMask |
getAdditionalUpdatesModificationMask(int j) |
Object |
getId() |
<S,T> Modify<S> |
getInverse(T value) |
protected abstract MetaClass<T> |
getMetaClassInfo() |
abstract Class |
getModificationClass() |
BitMask |
getModificationMask() |
protected List<String> |
getSettableProperties(Object o,
InternalKnowledgeBase knowledgeBase) |
ModifyTask |
getSetterChain() |
ModifyLiteral<T> |
getSetters() |
T |
getTarget() |
Object |
getTargetId() |
URI |
getUri() |
protected boolean |
isAffected(Object value,
Object taskValue) |
MetaCallableTask.KIND |
kind() |
protected void |
mergeWiths(With[] with) |
equals, hashCode
protected ModifyLiteral.ModifyTaskLiteral<T,?,?> task
protected BitMask modificationMask
protected URI key
protected Object[] with
protected BitMask[] extraMasks
protected void mergeWiths(With[] with)
public ModifyLiteral<T> getSetters()
getSetters
in interface WorkingMemoryTask<T>
public T getTarget()
public ModifyTask getSetterChain()
getSetterChain
in interface Modify<T>
public Object getTargetId()
getTargetId
in interface WorkingMemoryTask<T>
public Object[] getAdditionalUpdates()
getAdditionalUpdates
in interface Modify<T>
public BitMask getAdditionalUpdatesModificationMask(int j)
getAdditionalUpdatesModificationMask
in interface Modify<T>
public MetaCallableTask.KIND kind()
kind
in interface MetaCallableTask<T>
public T call()
call
in interface MetaCallableTask<T>
public T call(InternalKnowledgeBase knowledgeBase)
protected void computeModificationMasks(InternalKnowledgeBase knowledgeBase)
protected List<String> getSettableProperties(Object o, InternalKnowledgeBase knowledgeBase)
public BitMask getModificationMask()
getModificationMask
in interface Modify<T>
public abstract Class getModificationClass()
getModificationClass
in interface Modify<T>
protected <R,C> void addTask(MetaProperty<?,R,C> p, C val)
protected <R,C> void addTask(MetaProperty<?,R,C> p, C val, Lit mode)
public URI getUri()
getUri
in interface Identifiable
public Object getId()
getId
in interface Identifiable
protected URI createURI()
public <S,T> Modify<S> getInverse(T value)
Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.