public static class TypeCheckingContext.EnclosingClosure
extends Object
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 and description |
|---|
EnclosingClosure(ClosureExpression closureExpression)Creates metadata for an enclosing closure. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
addReturnType(ClassNode type)Records another inferred closure return type. |
|
public ClosureExpression |
getClosureExpression()Returns the wrapped closure expression. |
|
public List<ClassNode> |
getReturnTypes()Returns the return types collected for the closure body. |
|
public String |
toString()Returns a diagnostic representation of this closure context. |
Creates metadata for an enclosing closure.
Records another inferred closure return type.
Returns the wrapped closure expression.
Returns a diagnostic representation of this closure context.
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.