[Java] Class TraitTypeCheckingExtension
- org.codehaus.groovy.transform.stc.TraitTypeCheckingExtension
A type checking extension that will take care of handling errors which are specific to traits. In particular, it will handle the "super" method calls within a trait.
- Since:
- 2.3.0
Fields inherited from class | Fields |
---|---|
class AbstractTypeCheckingExtension | context, debug, handled |
class TypeCheckingExtension | typeCheckingVisitor |
Constructor Summary
Constructor and description |
---|
TraitTypeCheckingExtension
(StaticTypeCheckingVisitor typeCheckingVisitor) Builds a type checking extension relying on a Groovy script (type checking DSL). |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
List<MethodNode> |
handleMissingMethod(ClassNode receiver, String name, ArgumentListExpression argumentList, ClassNode[] argumentTypes, MethodCall call) | |
void |
setup() |
Inherited Methods Summary
Constructor Detail
public TraitTypeCheckingExtension(StaticTypeCheckingVisitor typeCheckingVisitor)
Builds a type checking extension relying on a Groovy script (type checking DSL).
- Parameters:
-
typeCheckingVisitor
- the type checking visitor
Method Detail
@Override public List<MethodNode> handleMissingMethod(ClassNode receiver, String name, ArgumentListExpression argumentList, ClassNode[] argumentTypes, MethodCall call)
@Override public void setup()
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/2.5.14/html/gapi/org/codehaus/groovy/transform/stc/TraitTypeCheckingExtension.html