public class ProvaMapImpl extends ProvaConstantImpl
create(Map) and wrapValues(Map)} methods.object| Modifier | Constructor and Description |
|---|---|
protected |
ProvaMapImpl(java.lang.Object object) |
| Modifier and Type | Method and Description |
|---|---|
ProvaObject |
cloneWithBoundVariables(java.util.List<ProvaVariable> variables,
java.util.List<java.lang.Boolean> isConstant) |
ProvaObject |
cloneWithVariables(java.util.List<ProvaVariable> variables) |
ProvaObject |
cloneWithVariables(long ruleId,
java.util.List<ProvaVariable> variables) |
int |
collectVariables(long ruleId,
java.util.List<ProvaVariable> variables) |
java.lang.Number |
compute() |
java.lang.Object |
computeIfExpression() |
static ProvaMapImpl |
create(java.util.Map<?,?> m) |
boolean |
isGround() |
boolean |
matched(ProvaConstant target) |
ProvaObject |
rebuild(ProvaUnification unification) |
ProvaObject |
rebuildSource(ProvaUnification unification) |
void |
substituteVariables(ProvaVariablePtr[] varsMap) |
java.lang.String |
toString() |
boolean |
unify(ProvaObject target,
ProvaUnification unification) |
java.lang.Object |
unwrap() |
boolean |
updateGround(java.util.List<ProvaVariable> variables) |
static ProvaObject |
wrap(java.lang.Object o)
Wrap an object in a `ProvaMapImpl` or `ProvaConstantImpl` if it is a Map or any other non-Prova object.
|
static ProvaMapImpl |
wrapValues(java.util.Map<?,?> m)
Wrap the map values as `ProvaObject`(s) while ignoring the already present `ProvaObject`(s)
and recursively wrapping further `Map`(s).
|
computeProvaIfExpression, computeSize, create, getObject, getRecursivelyAssigned, setObject, toStringuniqueNamepublic static ProvaMapImpl create(java.util.Map<?,?> m)
public int collectVariables(long ruleId,
java.util.List<ProvaVariable> variables)
collectVariables in interface ProvaObjectcollectVariables in class ProvaConstantImplpublic boolean updateGround(java.util.List<ProvaVariable> variables)
updateGround in interface ProvaObjectupdateGround in class ProvaConstantImplpublic boolean unify(ProvaObject target, ProvaUnification unification)
unify in interface ProvaObjectunify in class ProvaConstantImplpublic java.lang.String toString()
toString in class ProvaConstantImplpublic void substituteVariables(ProvaVariablePtr[] varsMap)
substituteVariables in interface ProvaObjectsubstituteVariables in class ProvaConstantImplpublic boolean isGround()
isGround in interface ProvaObjectisGround in class ProvaConstantImplpublic ProvaObject cloneWithBoundVariables(java.util.List<ProvaVariable> variables, java.util.List<java.lang.Boolean> isConstant)
cloneWithBoundVariables in interface ProvaObjectcloneWithBoundVariables in class ProvaConstantImplpublic ProvaObject cloneWithVariables(java.util.List<ProvaVariable> variables)
cloneWithVariables in interface ProvaObjectcloneWithVariables in class ProvaConstantImplpublic ProvaObject cloneWithVariables(long ruleId, java.util.List<ProvaVariable> variables)
cloneWithVariables in interface ProvaObjectcloneWithVariables in class ProvaConstantImplpublic java.lang.Number compute()
compute in interface ProvaComputablecompute in class ProvaConstantImplpublic java.lang.Object computeIfExpression()
computeIfExpression in interface ProvaComputablecomputeIfExpression in interface ProvaObjectcomputeIfExpression in class ProvaConstantImplpublic static ProvaMapImpl wrapValues(java.util.Map<?,?> m)
ProvaCommunicator.addMsg(ProvaList) or
ProvaCommunicator.addMsg(String, String, String, Object).m - Map to wrappublic static ProvaObject wrap(java.lang.Object o)
o - a naked objectpublic ProvaObject rebuild(ProvaUnification unification)
public ProvaObject rebuildSource(ProvaUnification unification)
public java.lang.Object unwrap()
public boolean matched(ProvaConstant target)
matched in interface ProvaConstantmatched in class ProvaConstantImplCopyright © 2019. All Rights Reserved.