Class SimpleType


public class SimpleType extends SingleSignatureClosureHint
Hint that resolves closure parameter types directly from option class names.
Since:
2.3.0
  • Constructor Details

    • SimpleType

      public SimpleType()
  • Method Details

    • getParameterTypes

      public ClassNode[] getParameterTypes(MethodNode node, String[] options, SourceUnit sourceUnit, CompilationUnit compilationUnit, ASTNode usage)
      Returns the single parameter signature accepted by the hinted closure.
      Specified by:
      getParameterTypes in class SingleSignatureClosureHint
      Parameters:
      node - the annotated method node
      options - the hint options
      sourceUnit - the current source unit
      compilationUnit - the current compilation unit
      usage - the closure expression or related AST node
      Returns:
      the inferred parameter types