public abstract class DeclarationBase extends ASTLogicBase implements Declaration
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.
|
Identifier |
getName()
Get the name of the declared entity.
|
SourcePosition |
getPosition()
Get the position of this node in the source code (may be null).
|
void |
setPosition(SourcePosition position)
Set the position of this node in the source code.
|
accept, accept, print, printCore, toString, toStringCore
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
print, printCore, toString, toStringCore
public Identifier getName()
getName
in interface Declaration
public void setPosition(SourcePosition position)
setPosition
in interface ASTSource
position
- the source code position.public SourcePosition getPosition()
getPosition
in interface ASTSource
public void accept(ASTVisitorOld visitor)
accept
in interface AST
accept
in class ASTLogicBase
visitor
- the visitor who is accepted by this node.public void accept(ASTVisitor visitor)
accept
in interface AST
accept
in class ASTLogicBase
visitor
- the visitor who is accepted by this node.public void acceptChildren(ASTVisitor visitor)
acceptChildren
in interface AST
acceptChildren
in class ASTBase
visitor
- the visitor who is accepted by this node.