public abstract class CompoundType extends DocumentableAstNode
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkNonSqlTableFields()
Checks if all fields are SQL tables.
|
protected void |
checkSqlSymbolNames()
Checks validity of symbol names for SQL compound types.
|
protected void |
checkSqlTableFields()
Checks if no field is SQL table.
|
protected void |
checkSymbolNames()
Checks validity of symbol names for none-SQL compound types.
|
protected boolean |
containsExtendedField(Field field) |
java.util.List<Field> |
getFields()
Gets all fields associated to this compound type.
|
java.util.List<Function> |
getFunctions()
Gets all functions associated to this compound type.
|
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.lang.String |
getName()
Gets the name of the symbol stored in the package.
|
Package |
getPackage()
Gets the package in which this symbol is defined.
|
java.util.ArrayDeque<TypeReference> |
getReversedInstantiationReferenceStack()
Gets reversed stack of instantiations leading to this instantiation.
|
zserio.ast.Scope |
getScope()
Gets the scope defined by this type.
|
ZserioTemplatableType |
getTemplate()
Gets original template used for instantiation.
|
java.util.List<TemplateParameter> |
getTemplateParameters()
Gets list of template parameters.
|
java.util.List<Parameter> |
getTypeParameters()
Gets all type parameters associated to this compound type.
|
protected boolean |
hasBranchWithoutImplicitArray() |
protected boolean |
hasEmptyBranch(boolean imlicitCanBeEmpty) |
protected boolean |
hasFieldBranchWithoutImplicitArray(Field field) |
protected boolean |
hasFieldEmptyBranch(Field field,
boolean implicitCanBeEmpty) |
protected boolean |
hasPackableField() |
boolean |
isPackable()
Check if this compound type is packable.
|
boolean |
needsChildrenInitialization()
Checks if this compound type needs children initialization method.
|
protected void |
trackExtendedField(Field field,
ParserStackedException stackedException) |
protected void |
trackImplicitArray(ParserStackedException stackedException) |
void |
visitChildren(ZserioAstVisitor visitor)
Visit children of the current AST node using given visitor.
|
getDocCommentsgetLocationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaccept, getLocationpublic void visitChildren(ZserioAstVisitor visitor)
AstNodevisitChildren in interface AstNodevisitor - Visitor to use.public Package getPackage()
PackageSymbolpublic java.lang.String getName()
PackageSymbolpublic zserio.ast.Scope getScope()
ZserioScopedTypepublic java.util.List<Field> getFields()
public java.util.List<Parameter> getTypeParameters()
public java.util.List<Function> getFunctions()
public boolean needsChildrenInitialization()
public boolean isPackable()
protected void checkSymbolNames()
protected void checkSqlSymbolNames()
protected void checkSqlTableFields()
protected void checkNonSqlTableFields()
protected boolean hasPackableField()
protected boolean containsExtendedField(Field field)
protected void trackExtendedField(Field field, ParserStackedException stackedException)
protected boolean hasBranchWithoutImplicitArray()
protected boolean hasFieldBranchWithoutImplicitArray(Field field)
protected void trackImplicitArray(ParserStackedException stackedException)
protected boolean hasEmptyBranch(boolean imlicitCanBeEmpty)
protected boolean hasFieldEmptyBranch(Field field, boolean implicitCanBeEmpty)
public 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-07-18 11:27:53