public final class EnumType extends DocumentableAstNode implements ZserioScopedType
| Constructor and Description |
|---|
EnumType(AstLocation location,
Package pkg,
TypeInstantiation typeInstantiation,
java.lang.String name,
java.util.List<EnumItem> enumItems,
java.util.List<DocComment> docComments)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ZserioAstVisitor visitor)
Accept zserio visitor.
|
java.util.List<EnumItem> |
getItems()
Gets all enumeration items which belong to the enumeration type.
|
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.
|
zserio.ast.Scope |
getScope()
Gets the scope defined by this type.
|
TypeInstantiation |
getTypeInstantiation()
Gets the enum's type instantiation.
|
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 EnumType(AstLocation location, Package pkg, TypeInstantiation typeInstantiation, java.lang.String name, java.util.List<EnumItem> enumItems, java.util.List<DocComment> docComments)
location - AST node location.pkg - Package to which belongs the enumeration type.typeInstantiation - Type instantiation of the enumeration type.name - Name of the enumeration type.enumItems - List of all items which belong to the enumeration 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 zserio.ast.Scope getScope()
ZserioScopedTypegetScope in interface ZserioScopedTypepublic Package getPackage()
PackageSymbolgetPackage in interface PackageSymbolpublic java.lang.String getName()
PackageSymbolgetName in interface PackageSymbolpublic java.util.List<EnumItem> getItems()
public TypeInstantiation getTypeInstantiation()
Last updated 2024-10-29 12:52:38