public final class TypedIdentifier extends ASTLogicBase implements ValueDeclaration
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ASTVisitor visitor)
Accept visitor for a visit.
|
void |
accept(ASTVisitorOld visitor)
Accept visitor for a visit.
|
void |
acceptChildren(ASTVisitor visitor)
Accept visitor for a visit to the children of this node.
|
static TypedIdentifier |
construct(Identifier name,
Type type)
Construct an identifier with a type.
|
Identifier |
getName()
Get identifier.
|
SourcePosition |
getPosition()
Get the position of this node in the source code (may be null).
|
Type |
getType()
Get type.
|
void |
setPosition(SourcePosition position)
Set the position of this node in the source code.
|
accept, accept, print, printCore, toString, toStringCoreequals, getClass, hashCode, notify, notifyAll, wait, wait, waitprint, printCore, toString, toStringCorepublic static TypedIdentifier construct(Identifier name, Type type)
name - the identifier.type - its type.public Identifier getName()
getName in interface Declarationpublic Type getType()
getType in interface ValueDeclarationpublic void setPosition(SourcePosition position)
setPosition in interface ASTSourceposition - the source code position.public SourcePosition getPosition()
getPosition in interface ASTSourcepublic void accept(ASTVisitorOld visitor)
accept in interface ASTaccept in class ASTLogicBasevisitor - the visitor who is accepted by this node.public void accept(ASTVisitor visitor)
accept in interface ASTaccept in class ASTLogicBasevisitor - the visitor who is accepted by this node.public void acceptChildren(ASTVisitor visitor)
acceptChildren in interface ASTacceptChildren in class ASTBasevisitor - the visitor who is accepted by the children of this node.