public final class ArrayTerm extends QuantifiedExpression
Constructor and Description |
---|
ArrayTerm(TypedIdentifier[] variables,
Expression base)
construct array term of variables and base term
|
Modifier and Type | Method and Description |
---|---|
AST |
accept(ASTVisitor visitor)
Accept visitor for a visit.
|
QuantifiedExpression |
construct(TypedIdentifier[] variables,
Expression base)
Construct quantified expression.
|
AxiomDeclaration |
getAxiom()
Get declaration of axiom replacing expression
|
ValueDeclaration |
getConstant()
Get declaration of constant replacing expression
|
ValueDeclIdentifier[] |
getFree()
Get free variables
|
Expression |
getTerm()
Get replacement term
|
Expression |
instantiate()
return copy of AST with value references instantiated by the substitutions
set in the corresponding declaration identifiers
|
void |
setAxiom(AxiomDeclaration d)
Set declaration of axiom replacing expression
|
void |
setConstant(ValueDeclaration d)
Set declaration of constant replacing expression
|
void |
setFree(ValueDeclIdentifier[] v)
Set free variables
|
void |
setTerm(Expression t)
Set replacement term
|
getBase, getPriority, getVariables, printCore, substitution
printPriority
print, printParens, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
print, printParens, toString
public ArrayTerm(TypedIdentifier[] variables, Expression base)
variables
- the quantified variablesbase
- the base termpublic QuantifiedExpression construct(TypedIdentifier[] variables, Expression base)
construct
in class QuantifiedExpression
variables
- typed variables.base
- an expression.public void setConstant(ValueDeclaration d)
d
- the declarationpublic ValueDeclaration getConstant()
public void setAxiom(AxiomDeclaration d)
d
- the declarationpublic AxiomDeclaration getAxiom()
public void setTerm(Expression t)
t
- the termpublic Expression getTerm()
public void setFree(ValueDeclIdentifier[] v)
v
- the variablespublic ValueDeclIdentifier[] getFree()
public Expression instantiate()
instantiate
in interface Expression
instantiate
in class QuantifiedExpression
public AST accept(ASTVisitor visitor)
accept
in interface AST
accept
in class QuantifiedExpression
visitor
- the visitor who is accepted by this node.