public final class ArrayInstantiation extends TypeInstantiation
| Constructor and Description |
|---|
ArrayInstantiation(AstLocation location,
TypeReference typeReference,
TypeInstantiation elementTypeInstantiation,
boolean isPacked,
boolean isImplicit,
Expression lengthExpression)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ArrayType |
getBaseType()
Gets base type - i.e.
|
TypeInstantiation |
getElementTypeInstantiation()
Gets type instantiation for array elements.
|
Expression |
getLengthExpression()
Gets length expression.
|
boolean |
isImplicit()
Gets whether the array is an implicit array.
|
boolean |
isPackable()
Gets flag which indicates if the array is packable.
|
boolean |
isPacked()
Gets whether the array is a packed array.
|
void |
visitChildren(ZserioAstVisitor visitor)
Visit children of the current AST node using given visitor.
|
accept, fillInstantiationStack, getType, getTypeReferencegetLocationpublic ArrayInstantiation(AstLocation location, TypeReference typeReference, TypeInstantiation elementTypeInstantiation, boolean isPacked, boolean isImplicit, Expression lengthExpression)
location - AST node location.typeReference - Reference to the instantiated type definition.elementTypeInstantiation - Element type instantiation.isPacked - Whether this array is packed.isImplicit - Whether this is an implicit array.lengthExpression - Array length expression.public void visitChildren(ZserioAstVisitor visitor)
AstNodevisitChildren in interface AstNodevisitChildren in class TypeInstantiationvisitor - Visitor to use.public TypeInstantiation getElementTypeInstantiation()
public boolean isPacked()
public boolean isImplicit()
public Expression getLengthExpression()
public boolean isPackable()
public ArrayType getBaseType()
TypeInstantiationgetBaseType in class TypeInstantiationLast updated 2024-07-18 11:27:53