public final class Subtype extends DocumentableAstNode implements ZserioType
| Constructor and Description |
|---|
Subtype(AstLocation location,
Package pkg,
TypeReference targetTypeReference,
java.lang.String name,
java.util.List<DocComment> docComments) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ZserioAstVisitor visitor)
Accept zserio visitor.
|
TypeReference |
getBaseTypeReference()
Gets reference to the base 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.
|
TypeReference |
getTypeReference()
Gets the target type reference.
|
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 Subtype(AstLocation location, Package pkg, TypeReference targetTypeReference, java.lang.String name, java.util.List<DocComment> docComments)
location - AST node location.pkg - Package to which belongs the subtype.targetTypeReference - Type reference to the target type.name - Name of the subtype.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 TypeReference getTypeReference()
public TypeReference getBaseTypeReference()
Last updated 2024-10-29 12:52:38