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.
|
acceptChildrengetName, getPosition, setPositionaccept, accept, print, printCore, toString, toStringCoreequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNamegetPosition, setPositionprint, printCore, toString, toStringCorepublic 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 ASTaccept in class DefinitionBasevisitor - the visitor who is accepted by this node.public void accept(ASTVisitor visitor)
accept in interface ASTaccept in class DefinitionBasevisitor - the visitor who is accepted by this node.