public class FormulaDefinition extends DefinitionBase
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
keyword |
Modifier and Type | Method and Description |
---|---|
void |
accept(ASTVisitor visitor)
Accept visitor for a visit.
|
void |
accept(ASTVisitorOld visitor)
Accept visitor for a visit.
|
static FormulaDefinition |
construct(Identifier name,
Formula formula)
Create new declaration of a constant denoting a formula.
|
FormulaSymbol |
getSymbol()
Get symbol introduced by declaration.
|
Formula |
getValue()
Get the formula value.
|
acceptChildren
getName, getPosition, setPosition
accept, accept, print, printCore, toString, toStringCore
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getName
getPosition, setPosition
print, printCore, toString, toStringCore
public static final java.lang.String keyword
public static FormulaDefinition construct(Identifier name, Formula formula)
name
- the name of the constant.formula
- the value of the constant.public final Formula getValue()
public FormulaSymbol getSymbol()
public void accept(ASTVisitorOld visitor)
accept
in interface AST
accept
in class DefinitionBase
visitor
- the visitor who is accepted by this node.public void accept(ASTVisitor visitor)
accept
in interface AST
accept
in class DefinitionBase
visitor
- the visitor who is accepted by this node.