public class TraitTypeCheckingExtension
extends AbstractTypeCheckingExtension
An extension that handles field, super and static method calls within a trait.
| Fields inherited from class | Fields |
|---|---|
class AbstractTypeCheckingExtension |
context, debug, handled |
class TypeCheckingExtension |
typeCheckingVisitor |
| Constructor and description |
|---|
TraitTypeCheckingExtension(StaticTypeCheckingVisitor typeCheckingVisitor)Creates the trait-specific type-checking extension. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public List<MethodNode> |
handleMissingMethod(ClassNode receiver, String name, ArgumentListExpression argumentList, ClassNode[] argumentTypes, MethodCall call)Resolves trait super calls and helper-backed trait method dispatch. |
|
public boolean |
handleUnresolvedProperty(PropertyExpression pexp)Resolves synthetic trait static-field accessor properties. |
Creates the trait-specific type-checking extension.
Resolves trait super calls and helper-backed trait method dispatch.
Resolves synthetic trait static-field accessor properties.
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.