Class OneDimensionalArray
java.lang.Object
io.micronaut.expressions.parser.ast.ExpressionNode
io.micronaut.expressions.parser.ast.collection.OneDimensionalArray
Expression AST node for array instantiation. This node is not used when
parsing user's expressions as array instantiation is not supported in
evaluated expressions. That's why it doesn't support multidimensional arrays,
and the presence of initializer is assumed. It is designed for concrete use-cases,
such as wrapping varargs method arguments and building compound evaluated expressions.
- Since:
- 4.0.0
- Author:
- Sergey Gavrilov
-
Field Summary
Fields inherited from class io.micronaut.expressions.parser.ast.ExpressionNode
classElement, nodeType
-
Constructor Summary
ConstructorDescriptionOneDimensionalArray
(TypeIdentifier elementTypeIdentifier, List<ExpressionNode> initializer) -
Method Summary
Modifier and TypeMethodDescriptionprotected ClassElement
Resolves the class element for this node.protected org.objectweb.asm.Type
Resolves expression AST node type.void
Generates bytecode for this AST node.Methods inherited from class io.micronaut.expressions.parser.ast.ExpressionNode
compile, doResolveClassElement, resolveClassElement, resolveClassElement, resolveType, resolveType
-
Constructor Details
-
OneDimensionalArray
-
-
Method Details
-
generateBytecode
Description copied from class:ExpressionNode
Generates bytecode for this AST node.- Specified by:
generateBytecode
in classExpressionNode
- Parameters:
ctx
- expression compilation context
-
doResolveClassElement
Description copied from class:ExpressionNode
Resolves the class element for this node.- Overrides:
doResolveClassElement
in classExpressionNode
- Parameters:
ctx
- The expression compilation context- Returns:
- The resolved type
-
doResolveType
Description copied from class:ExpressionNode
Resolves expression AST node type.- Specified by:
doResolveType
in classExpressionNode
- Parameters:
ctx
- expression compilation context- Returns:
- resolved type
-