public class ClosureWithoutExpectationHelper extends AbstractClosureTypeHelper
ClosureWithExpectationHelper
Modifier | Constructor and Description |
---|---|
protected |
ClosureWithoutExpectationHelper(XClosure closure,
ITypeExpectation expectation,
ITypeComputationState state) |
Modifier and Type | Method and Description |
---|---|
protected ITypeComputationState |
assignParameters(ITypeAssigner typeAssigner,
FunctionTypeReference incompleteClosureType) |
protected void |
computeTypes() |
protected ITypeComputationState |
getClosureBodyTypeComputationState(ITypeAssigner typeAssigner,
FunctionTypeReference incompleteClosureType) |
FunctionTypeReference |
getExpectedClosureType()
This method is only public for testing purpose.
|
protected FunctionTypeReference |
getFunctionTypeReference(boolean isProcedure) |
JvmOperation |
getOperation()
This method is only public for testing purpose.
|
java.util.List<JvmFormalParameter> |
getParameters()
Returns the effective list of parameters.
|
protected void |
initClosureType(FunctionTypeReference result,
boolean isProcedure) |
protected FunctionTypeReference |
processExpressionType(FunctionTypeReference incompleteClosureType,
ITypeComputationResult expressionResult) |
applyToModel, deferredBindTypeArgument, getClosure, getExpectation, getServices, getState, validate
protected ClosureWithoutExpectationHelper(XClosure closure, ITypeExpectation expectation, ITypeComputationState state)
protected void computeTypes()
computeTypes
in class AbstractClosureTypeHelper
public FunctionTypeReference getExpectedClosureType()
AbstractClosureTypeHelper
getExpectedClosureType
in class AbstractClosureTypeHelper
public JvmOperation getOperation()
AbstractClosureTypeHelper
getOperation
in class AbstractClosureTypeHelper
protected FunctionTypeReference getFunctionTypeReference(boolean isProcedure)
protected void initClosureType(FunctionTypeReference result, boolean isProcedure)
protected ITypeComputationState getClosureBodyTypeComputationState(ITypeAssigner typeAssigner, FunctionTypeReference incompleteClosureType)
public java.util.List<JvmFormalParameter> getParameters()
IClosureCandidate
getParameters
in interface IClosureCandidate
getParameters
in class AbstractClosureTypeHelper
protected ITypeComputationState assignParameters(ITypeAssigner typeAssigner, FunctionTypeReference incompleteClosureType)
protected FunctionTypeReference processExpressionType(FunctionTypeReference incompleteClosureType, ITypeComputationResult expressionResult)