public class ProvaListImpl extends ProvaTermImpl implements ProvaList, ProvaComputable
| Modifier and Type | Field and Description |
|---|---|
static ProvaListImpl |
emptyRList |
| Modifier and Type | Method and Description |
|---|---|
ProvaObject |
cloneWithBoundVariables(java.util.List<ProvaVariable> variables,
java.util.List<java.lang.Boolean> changed) |
ProvaObject |
cloneWithVariables(java.util.List<ProvaVariable> variables) |
ProvaObject |
cloneWithVariables(java.util.List<ProvaVariable> variables,
int offset) |
ProvaObject |
cloneWithVariables(long ruleId,
java.util.List<ProvaVariable> variables) |
int |
collectVariables(long ruleId,
java.util.List<ProvaVariable> variables) |
java.lang.Object |
compute() |
java.lang.Object |
computeIfExpression() |
ProvaObject |
computeProvaIfExpression() |
int |
computeSize() |
int |
computeSize(int offset) |
ProvaList |
copyWithBoundVariables(java.util.List<ProvaVariable> variables,
java.util.List<java.lang.Boolean> isConstant) |
ProvaList |
copyWithVariables(java.util.List<ProvaVariable> variables) |
static ProvaList |
create(java.util.List<ProvaObject> list) |
static ProvaList |
create(ProvaObject[] fixed) |
static ProvaList |
create(ProvaObject[] fixed,
ProvaObject tail) |
ProvaObject[] |
getFixed() |
ProvaObject |
getRecursivelyAssigned() |
ProvaObject |
getTail() |
boolean |
isGround() |
java.lang.String |
performative() |
ProvaList |
rebuild(ProvaUnification unification) |
ProvaObject |
rebuild(ProvaUnification unification,
int offset) |
ProvaList |
rebuildSource(ProvaUnification unification) |
ProvaObject |
rebuildSource(ProvaUnification unification,
int offset) |
void |
setGround(boolean ground) |
void |
setTail(ProvaObject tail) |
ProvaList |
shallowCopy() |
void |
substituteVariables(ProvaVariablePtr[] varsMap) |
java.lang.String |
toString() |
java.lang.String |
toString(java.util.List<ProvaVariable> variables) |
boolean |
unify(int offset,
ProvaObject target,
ProvaUnification unification)
A general case when both unified lists may have offsets
|
boolean |
unify(ProvaObject target,
ProvaUnification unification) |
boolean |
updateGround(java.util.List<ProvaVariable> variables) |
uniqueNamepublic static final ProvaListImpl emptyRList
public static ProvaList create(ProvaObject[] fixed)
public static ProvaList create(java.util.List<ProvaObject> list)
public static ProvaList create(ProvaObject[] fixed, ProvaObject tail)
public boolean isGround()
isGround in interface ProvaListisGround in interface ProvaObjectpublic ProvaObject[] getFixed()
public void setTail(ProvaObject tail)
public ProvaObject getTail()
public int computeSize()
computeSize in interface ProvaObjectpublic ProvaObject getRecursivelyAssigned()
getRecursivelyAssigned in interface ProvaObjectpublic void substituteVariables(ProvaVariablePtr[] varsMap)
substituteVariables in interface ProvaObjectpublic ProvaList shallowCopy()
shallowCopy in interface ProvaListpublic ProvaList copyWithVariables(java.util.List<ProvaVariable> variables)
copyWithVariables in interface ProvaListpublic ProvaList copyWithBoundVariables(java.util.List<ProvaVariable> variables, java.util.List<java.lang.Boolean> isConstant)
copyWithBoundVariables in interface ProvaListpublic ProvaObject cloneWithBoundVariables(java.util.List<ProvaVariable> variables, java.util.List<java.lang.Boolean> changed)
cloneWithBoundVariables in interface ProvaListcloneWithBoundVariables in interface ProvaObjectpublic ProvaObject cloneWithVariables(java.util.List<ProvaVariable> variables)
cloneWithVariables in interface ProvaObjectpublic ProvaObject cloneWithVariables(java.util.List<ProvaVariable> variables, int offset)
cloneWithVariables in interface ProvaListpublic ProvaObject cloneWithVariables(long ruleId, java.util.List<ProvaVariable> variables)
cloneWithVariables in interface ProvaObjectpublic boolean updateGround(java.util.List<ProvaVariable> variables)
updateGround in interface ProvaObjectpublic int collectVariables(long ruleId,
java.util.List<ProvaVariable> variables)
collectVariables in interface ProvaObjectpublic int computeSize(int offset)
computeSize in interface ProvaListpublic boolean unify(ProvaObject target, ProvaUnification unification)
unify in interface ProvaObjectpublic boolean unify(int offset,
ProvaObject target,
ProvaUnification unification)
public ProvaList rebuild(ProvaUnification unification)
public ProvaObject rebuild(ProvaUnification unification, int offset)
public ProvaList rebuildSource(ProvaUnification unification)
rebuildSource in interface ProvaListpublic ProvaObject rebuildSource(ProvaUnification unification, int offset)
rebuildSource in interface ProvaListpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(java.util.List<ProvaVariable> variables)
toString in interface ProvaObjectpublic java.lang.String performative()
performative in interface ProvaListpublic java.lang.Object compute()
compute in interface ProvaComputablepublic java.lang.Object computeIfExpression()
computeIfExpression in interface ProvaComputablecomputeIfExpression in interface ProvaObjectpublic ProvaObject computeProvaIfExpression()
computeProvaIfExpression in interface ProvaObjectCopyright © 2019. All Rights Reserved.