public final class ValueDefinitionClass extends DefinitionBase implements ValueDefinition
| 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 ValueDefinitionClass |
construct(Identifier name,
Term value)
Create new definition of a constant denoting a value.
|
ValueSymbol |
getSymbol()
Get symbol introduced by declaration.
|
Term |
getValue()
Get value of the definition.
|
acceptChildrengetName, getPosition, setPositionaccept, accept, print, printCore, toString, toStringCoreequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNamegetPosition, setPositionacceptChildren, print, printCore, toString, toStringCorepublic static ValueDefinitionClass construct(Identifier name, Term value)
name - the name of the constant.value - its value.public Term getValue()
getValue in interface DefinitiongetValue in interface ValueDefinitionpublic ValueSymbol 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.