public class FormulaDeclaration extends DeclarationBase
Constructor and Description |
---|
FormulaDeclaration(FormulaDeclIdentifier name,
Expression formula)
construct formula declaration with denoted name and formula
|
Modifier and Type | Method and Description |
---|---|
AST |
accept(ASTVisitor visitor)
Accept visitor for a visit.
|
Expression |
getFormula()
returns declaration formula
|
FormulaDeclIdentifier |
getFormulaDeclIdentifier()
returns declaration name
|
Identifier |
getIdentifier()
returns declaration name
|
Symbol |
getSymbol()
returns symbol
|
void |
printCore(java.io.PrintWriter out)
Prints text representation of tree on out (without new line termination).
|
print
printParens, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
printParens, toString
public FormulaDeclaration(FormulaDeclIdentifier name, Expression formula)
name
- the declared nameformula
- the formula associated to the namepublic FormulaDeclIdentifier getFormulaDeclIdentifier()
public Identifier getIdentifier()
public Expression getFormula()
public void printCore(java.io.PrintWriter out)
public Symbol getSymbol()
public AST accept(ASTVisitor visitor)
visitor
- the visitor who is accepted by this node.