- org.codehaus.groovy.transform.stc.DefaultTypeCheckingExtension
-
The default type checking handler is used by the standard type checker and doesn't handle
any of the type checking errors by default. This just means that whenever a type checking
error is detected, there's no additional information available to the type checker that
could help it.
The default handler is also capable of handling a collection of delegate handlers. If a list
of delegates is set, then the type checker will try all the delegates until one is capable
of handling an error.
- Since:
- 2.1.0
-
-
Constructor Summary
Constructors
Constructor and description |
DefaultTypeCheckingExtension
(org.codehaus.groovy.transform.stc.StaticTypeCheckingVisitor typeCheckingVisitor)
|
-
Methods Summary
-
Inherited Methods Summary
Inherited Methods
Methods inherited from class |
Name |
class TypeCheckingExtension |
addStaticTypeError, afterMethodCall, afterVisitClass, afterVisitMethod, beforeMethodCall, beforeVisitClass, beforeVisitMethod, buildListType, buildMapType, classNodeFor, classNodeFor, existsProperty, existsProperty, extractStaticReceiver, finish, getArgumentTypes, getTargetMethod, getType, handleAmbiguousMethods, handleIncompatibleAssignment, handleIncompatibleReturnType, handleMissingMethod, handleUnresolvedAttribute, handleUnresolvedProperty, handleUnresolvedVariableExpression, isStaticMethodCallOnClass, lookupClassNodeFor, onMethodSelection, parameterizedType, setup, storeType |
-
-
Constructor Detail
-
public DefaultTypeCheckingExtension(org.codehaus.groovy.transform.stc.StaticTypeCheckingVisitor typeCheckingVisitor)
-
Method Detail
-
@Override
public void afterVisitClass(org.codehaus.groovy.ast.ClassNode node)
-
@Override
public void afterVisitMethod(org.codehaus.groovy.ast.MethodNode node)
-
@Override
public boolean beforeVisitClass(org.codehaus.groovy.ast.ClassNode node)
-
@Override
public boolean beforeVisitMethod(org.codehaus.groovy.ast.MethodNode node)
-
@Override
public List<org.codehaus.groovy.ast.MethodNode> handleAmbiguousMethods(List<org.codehaus.groovy.ast.MethodNode> nodes, Expression origin)
-
@Override
public boolean handleIncompatibleAssignment(org.codehaus.groovy.ast.ClassNode lhsType, org.codehaus.groovy.ast.ClassNode rhsType, Expression assignmentExpression)
-
@Override
public boolean handleIncompatibleReturnType(ReturnStatement returnStatement, org.codehaus.groovy.ast.ClassNode inferredReturnType)
-
public List<org.codehaus.groovy.ast.MethodNode> handleMissingMethod(org.codehaus.groovy.ast.ClassNode receiver, String name, ArgumentListExpression argumentList, org.codehaus.groovy.ast.ClassNode[] argumentTypes, MethodCall call)
-
@Override
public void onMethodSelection(Expression expression, org.codehaus.groovy.ast.MethodNode target)
Copyright © 2003-2019 The Apache Software Foundation. All rights reserved.