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 void
Generates bytecode for this AST node.protected boolean
protected io.micronaut.expressions.parser.ast.access.CandidateMethod
Resolves singleCandidateMethod
used by this AST node.Methods inherited from class io.micronaut.expressions.parser.ast.access.AbstractMethodCall
compileArguments, doResolveClassElement, doResolveType, prepareVarargsArguments, resolveArgumentTypes, stringifyArguments, toCandidateMethod
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
-
generateBytecode
Description copied from class:ExpressionNode
Generates bytecode for this AST node.- Specified by:
generateBytecode
in classExpressionNode
- Parameters:
ctx
- expression compilation context
-
resolveUsedMethod
protected io.micronaut.expressions.parser.ast.access.CandidateMethod resolveUsedMethod(ExpressionVisitorContext ctx) Description copied from class:AbstractMethodCall
Resolves singleCandidateMethod
used by this AST node.- Specified by:
resolveUsedMethod
in classAbstractMethodCall
- Parameters:
ctx
- Expression compilation context- Returns:
- AST node candidate method
-