Class ThisAccess
java.lang.Object
io.micronaut.expressions.parser.ast.ExpressionNode
io.micronaut.expressions.parser.ast.access.ThisAccess
Enables access to 'this' in non-static contexts.
-
Field Summary
Fields inherited from class io.micronaut.expressions.parser.ast.ExpressionNode
classElement, nodeType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ClassElement
Resolves the class element for this node.protected io.micronaut.sourcegen.model.ExpressionDef
Generates bytecode for this AST node.Methods inherited from class io.micronaut.expressions.parser.ast.ExpressionNode
compile, doResolveClassElement, doResolveType, resolveClassElement, resolveClassElement, resolveType, resolveType
-
Constructor Details
-
ThisAccess
public ThisAccess()
-
-
Method Details
-
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
-
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
-