On this page
[Java] Class TypeCheckingContext.EnclosingClosure
- org.codehaus.groovy.transform.stc.TypeCheckingContext.EnclosingClosure
public static class TypeCheckingContext.EnclosingClosure
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
Constructor and description |
---|
EnclosingClosure (ClosureExpression closureExpression) |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
public void |
addReturnType(ClassNode type) |
|
public ClosureExpression |
getClosureExpression() |
|
public List<ClassNode> |
getReturnTypes() |
|
public String |
toString() |
Inherited Methods Summary
Constructor Detail
public EnclosingClosure(ClosureExpression closureExpression)
Method Detail
public void addReturnType(ClassNode type)
public ClosureExpression getClosureExpression()
public List<ClassNode> getReturnTypes()
@Override public String toString()
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.9/html/gapi/org/codehaus/groovy/transform/stc/TypeCheckingContext.EnclosingClosure.html