public class TypeDeclaration extends DeclarationBase
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 TypeDeclaration |
construct(Identifier name)
Create new declaration of a constant denoting a type.
|
TypeSymbol |
getSymbol()
Get symbol introduced by declaration.
|
acceptChildren, getName, getPosition, setPosition
accept, accept, print, printCore, toString, toStringCore
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
print, printCore, toString, toStringCore
public static final java.lang.String keyword
public static TypeDeclaration construct(Identifier name)
name
- the name of the constant.public final TypeSymbol getSymbol()
public void accept(ASTVisitorOld visitor)
accept
in interface AST
accept
in class DeclarationBase
visitor
- the visitor who is accepted by this node.public void accept(ASTVisitor visitor)
accept
in interface AST
accept
in class DeclarationBase
visitor
- the visitor who is accepted by this node.