Class ElementMethodCall
java.lang.Object
io.micronaut.expressions.parser.ast.ExpressionNode
io.micronaut.expressions.parser.ast.access.AbstractMethodCall
io.micronaut.expressions.parser.ast.access.ElementMethodCall
- Direct Known Subclasses:
PropertyAccess
Expression AST node used for method invocation.
This node represents both object method invocation and static method
invocation
- Since:
- 4.0.0
- Author:
- Sergey Gavrilov
-
Field Summary
Fields inherited from class io.micronaut.expressions.parser.ast.access.AbstractMethodCall
arguments, name, usedMethod
Fields inherited from class io.micronaut.expressions.parser.ast.ExpressionNode
classElement, nodeType
-
Constructor Summary
ConstructorDescriptionElementMethodCall
(ExpressionNode callee, String name, List<ExpressionNode> arguments, boolean nullSafe) -
Method Summary
Modifier and TypeMethodDescriptionprotected io.micronaut.sourcegen.model.ExpressionDef
Generates bytecode for this AST node.protected boolean
Methods inherited from class io.micronaut.expressions.parser.ast.access.AbstractMethodCall
compileArguments, doResolveClassElement, doResolveType, prepareVarargsArguments, resolveArgumentTypes, stringifyArguments
Methods inherited from class io.micronaut.expressions.parser.ast.ExpressionNode
compile, doResolveClassElement, resolveClassElement, resolveClassElement, resolveType, resolveType
-
Field Details
-
callee
-
-
Constructor Details
-
ElementMethodCall
public ElementMethodCall(ExpressionNode callee, String name, List<ExpressionNode> arguments, boolean nullSafe)
-
-
Method Details
-
isNullSafe
protected boolean isNullSafe()- Returns:
- Is the method call null safe
-
generateExpression
protected io.micronaut.sourcegen.model.ExpressionDef generateExpression(ExpressionCompilationContext ctx) Description copied from class:ExpressionNode
Generates bytecode for this AST node.- Specified by:
generateExpression
in classExpressionNode
- Parameters:
ctx
- expression compilation context- Returns:
- The expression definition
-