public final class Constant extends DocumentableAstNode implements PackageSymbol
| Constructor and Description |
|---|
Constant(AstLocation location,
Package pkg,
TypeInstantiation typeInstantiation,
java.lang.String name,
Expression valueExpression,
java.util.List<DocComment> docComments)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ZserioAstVisitor visitor)
Accept zserio visitor.
|
java.lang.String |
getName()
Gets the name of the symbol stored in the package.
|
Package |
getPackage()
Gets the package in which this symbol is defined.
|
TypeInstantiation |
getTypeInstantiation()
Gets the constant's type instantiation.
|
Expression |
getValueExpression()
Gets expression which represents constant value.
|
void |
visitChildren(ZserioAstVisitor visitor)
Visit children of the current AST node using given visitor.
|
getDocCommentsgetLocationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLocationpublic Constant(AstLocation location, Package pkg, TypeInstantiation typeInstantiation, java.lang.String name, Expression valueExpression, java.util.List<DocComment> docComments)
location - AST node location.pkg - Package to which belongs the constant type.typeInstantiation - Type instantiation of the constant.name - Name of the constant type.valueExpression - Value expression associated to the constant type.docComments - List of documentation comments belonging to this node.public void accept(ZserioAstVisitor visitor)
AstNodepublic void visitChildren(ZserioAstVisitor visitor)
AstNodevisitChildren in interface AstNodevisitChildren in class DocumentableAstNodevisitor - Visitor to use.public Package getPackage()
PackageSymbolgetPackage in interface PackageSymbolpublic java.lang.String getName()
PackageSymbolgetName in interface PackageSymbolpublic TypeInstantiation getTypeInstantiation()
public Expression getValueExpression()
Last updated 2024-07-18 11:31:32