[Java] Class FromAbstractTypeMethods
- groovy.transform.stc.FromAbstractTypeMethods
public class FromAbstractTypeMethods extends ClosureSignatureHint
This signature hint uses abstract methods from some type (abstract class or interface) in order to infer the expected parameter types. This is especially useful for closure parameter type inference when implicit closure coercion is in action.
- Since:
- 2.3.0
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
public List<ClassNode> |
getClosureSignatures(MethodNode node, SourceUnit sourceUnit, CompilationUnit compilationUnit, String[] options, ASTNode usage) |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class ClosureSignatureHint | findClassNode, getClosureSignatures, pickGenericType, pickGenericType |
Method Detail
@Override public List<ClassNode> getClosureSignatures(MethodNode node, SourceUnit sourceUnit, CompilationUnit compilationUnit, String[] options, ASTNode usage)
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/groovy/transform/stc/FromAbstractTypeMethods.html