Class TypeCheckingContext.EnclosingClosure
java.lang.Object
org.codehaus.groovy.transform.stc.TypeCheckingContext.EnclosingClosure
- Enclosing class:
- TypeCheckingContext
Represents the context of an enclosing closure. An enclosing closure wraps
a closure expression and the list of return types found in the closure body.
-
Constructor Summary
ConstructorsConstructorDescriptionEnclosingClosure(ClosureExpression closureExpression) Creates metadata for an enclosing closure. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddReturnType(ClassNode type) Records another inferred closure return type.Returns the wrapped closure expression.Returns the return types collected for the closure body.toString()Returns a diagnostic representation of this closure context.
-
Constructor Details
-
EnclosingClosure
Creates metadata for an enclosing closure.
-
-
Method Details