public class ProvaConstantImpl extends ProvaTermImpl implements ProvaConstant, ProvaComputable
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Object |
object |
| Modifier | Constructor and Description |
|---|---|
protected |
ProvaConstantImpl(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() |
ProvaObject |
computeProvaIfExpression() |
int |
computeSize() |
static ProvaConstantImpl |
create(java.lang.Object object) |
java.lang.Object |
getObject() |
ProvaObject |
getRecursivelyAssigned() |
boolean |
isGround() |
boolean |
matched(ProvaConstant target) |
void |
setObject(java.lang.Object object) |
void |
substituteVariables(ProvaVariablePtr[] varsMap) |
java.lang.String |
toString() |
java.lang.String |
toString(java.util.List<ProvaVariable> variables) |
boolean |
unify(ProvaObject target,
ProvaUnification unification) |
boolean |
updateGround(java.util.List<ProvaVariable> variables) |
static ProvaObject |
wrap(java.lang.Object o) |
uniqueNamepublic static ProvaConstantImpl create(java.lang.Object object)
public void setObject(java.lang.Object object)
setObject in interface ProvaConstantpublic java.lang.Object getObject()
getObject in interface ProvaConstantpublic ProvaObject getRecursivelyAssigned()
getRecursivelyAssigned in interface ProvaObjectpublic int collectVariables(long ruleId,
java.util.List<ProvaVariable> variables)
collectVariables in interface ProvaObjectpublic int computeSize()
computeSize in interface ProvaObjectpublic boolean matched(ProvaConstant target)
matched in interface ProvaConstantpublic boolean unify(ProvaObject target, ProvaUnification unification)
unify in interface ProvaObjectpublic java.lang.String toString()
toString in class java.lang.Objectpublic void substituteVariables(ProvaVariablePtr[] varsMap)
substituteVariables in interface ProvaObjectpublic boolean isGround()
isGround in interface ProvaObjectpublic java.lang.String toString(java.util.List<ProvaVariable> variables)
toString in interface ProvaObjectpublic ProvaObject cloneWithBoundVariables(java.util.List<ProvaVariable> variables, java.util.List<java.lang.Boolean> isConstant)
cloneWithBoundVariables in interface ProvaObjectpublic ProvaObject cloneWithVariables(java.util.List<ProvaVariable> variables)
cloneWithVariables in interface ProvaObjectpublic ProvaObject cloneWithVariables(long ruleId, java.util.List<ProvaVariable> variables)
cloneWithVariables in interface ProvaObjectpublic java.lang.Number compute()
compute in interface ProvaComputablepublic java.lang.Object computeIfExpression()
computeIfExpression in interface ProvaComputablecomputeIfExpression in interface ProvaObjectpublic ProvaObject computeProvaIfExpression()
computeProvaIfExpression in interface ProvaObjectpublic static ProvaObject wrap(java.lang.Object o)
public boolean updateGround(java.util.List<ProvaVariable> variables)
updateGround in interface ProvaObjectCopyright © 2019. All Rights Reserved.