| Modifier and Type | Field and Description |
|---|---|
| private static final List |
| Access | Constructor and Description |
|---|---|
| public | TraitTypeCheckingExtension(final StaticTypeCheckingVisitor
the type checking visitor typeCheckingVisitor)Builds a type checking extension relying on a Groovy script (type checking DSL). |
| Modifier and Type | Method and Description |
|---|---|
| private List | convertToDynamicCall(MethodCall call, ClassNode receiver, String[] decomposed, ClassNode[] argumentTypes)
|
| public List | handleMissingMethod(final ClassNode
the type of the receiver receiver, final String the name of the called method name, final ArgumentListExpression the list of arguments of the call argumentList, final ClassNode[] the types of the arguments of the call argumentTypes, final MethodCall the method call itself, if needed call)Overrides org. |
| private ClassNode | |
| private static boolean | |
| private static boolean | |
| public void | setup()
Overrides org. |
| NOTFOUND | back to summary |
|---|---|
| private static final List<MethodNode> NOTFOUND | |
| TraitTypeCheckingExtension | back to summary |
|---|---|
| public TraitTypeCheckingExtension(final StaticTypeCheckingVisitor typeCheckingVisitor) Builds a type checking extension relying on a Groovy script (type checking DSL).
| |
| convertToDynamicCall | back to summary |
|---|---|
| private List | |
| handleMissingMethod | back to summary |
|---|---|
| public List Overrides org. Doc from org. This method is called by the type checker when a method call cannot be resolved. Extensions may override this method to handle missing methods and prevent the type checker from throwing an error.
| |
| inferTraitMethodReturnType | back to summary |
|---|---|
| private ClassNode inferTraitMethodReturnType(ClassNode nextTrait, String methodName, ClassNode[] paramTypes) | |
| isStaticTraitReceiver | back to summary |
|---|---|
| private static boolean isStaticTraitReceiver(final ClassNode receiver, final VariableExpression var) | |
| isThisTraitReceiver | back to summary |
|---|---|
| private static boolean isThisTraitReceiver(final VariableExpression var) | |
| setup | back to summary |
|---|---|
| public void setup() Overrides org. Doc from org. Subclasses should implement this method whenever they need to perform special checks before the type checker starts working.
| |