public final class UnionType extends CompoundType
| Constructor and Description |
|---|
UnionType(AstLocation location,
Package pkg,
java.lang.String name,
java.util.List<TemplateParameter> templateParameters,
java.util.List<Parameter> typeParameters,
java.util.List<Field> fields,
java.util.List<Function> functions,
java.util.List<DocComment> docComments)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ZserioAstVisitor visitor)
Accept zserio visitor.
|
java.lang.String |
getInstantiationName()
Gets the unique instantiation name.
|
java.util.ArrayDeque<TypeReference> |
getInstantiationReferenceStack()
Gets stack of instantiations leading to this instantiation.
|
java.util.List<ZserioTemplatableType> |
getInstantiations()
Gets all template's instantiations.
|
java.util.ArrayDeque<TypeReference> |
getReversedInstantiationReferenceStack()
Gets reversed stack of instantiations leading to this instantiation.
|
ZserioTemplatableType |
getTemplate()
Gets original template used for instantiation.
|
java.util.List<TemplateParameter> |
getTemplateParameters()
Gets list of template parameters.
|
protected boolean |
hasBranchWithoutImplicitArray() |
protected boolean |
hasEmptyBranch(boolean implicitCanBeEmpty) |
boolean |
isPackable()
Check if this compound type is packable.
|
checkNonSqlTableFields, checkSqlSymbolNames, checkSqlTableFields, checkSymbolNames, containsExtendedField, getFields, getFunctions, getName, getPackage, getScope, getTypeParameters, hasFieldBranchWithoutImplicitArray, hasFieldEmptyBranch, hasPackableField, needsChildrenInitialization, trackExtendedField, trackImplicitArray, visitChildrengetDocCommentsgetLocationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLocationpublic UnionType(AstLocation location, Package pkg, java.lang.String name, java.util.List<TemplateParameter> templateParameters, java.util.List<Parameter> typeParameters, java.util.List<Field> fields, java.util.List<Function> functions, java.util.List<DocComment> docComments)
location - AST node location.pkg - Package to which belongs the union type.name - Name of the union type.templateParameters - List of template parameters.typeParameters - List of parameters for the union type.fields - List of all fields of the union type.functions - List of all functions of the union type.docComments - List of documentation comments belonging to this node.public void accept(ZserioAstVisitor visitor)
AstNodevisitor - Visitor to accept.public boolean isPackable()
CompoundTypeisPackable in class CompoundTypeprotected boolean hasBranchWithoutImplicitArray()
hasBranchWithoutImplicitArray in class CompoundTypeprotected boolean hasEmptyBranch(boolean implicitCanBeEmpty)
hasEmptyBranch in class CompoundTypepublic java.util.List<TemplateParameter> getTemplateParameters()
ZserioTemplatableTypegetTemplateParameters in interface ZserioTemplatableTypepublic java.util.List<ZserioTemplatableType> getInstantiations()
ZserioTemplatableTypegetInstantiations in interface ZserioTemplatableTypepublic ZserioTemplatableType getTemplate()
ZserioTemplatableTypegetTemplate in interface ZserioTemplatableTypepublic java.util.ArrayDeque<TypeReference> getInstantiationReferenceStack()
ZserioTemplatableTypegetInstantiationReferenceStack in interface ZserioTemplatableTypepublic java.util.ArrayDeque<TypeReference> getReversedInstantiationReferenceStack()
ZserioTemplatableTypegetReversedInstantiationReferenceStack in interface ZserioTemplatableTypepublic java.lang.String getInstantiationName()
ZserioTemplatableTypegetInstantiationName in interface ZserioTemplatableTypeLast updated 2024-10-29 12:56:13