public class ClosureTypeComputer
extends java.lang.Object
XbaseTypeComputer._computeTypes(XClosure, ITypeComputationState)
Constructor and Description |
---|
ClosureTypeComputer(XClosure closure,
ITypeExpectation expectation,
ITypeComputationState state) |
Modifier and Type | Method and Description |
---|---|
void |
computeTypes() |
protected ClosureWithExpectationHelper |
createClosureWithExpectationHelper(JvmOperation operation) |
protected ClosureWithoutExpectationHelper |
createClosureWithoutExpectationHelper() |
protected UnknownClosureTypeHelper |
createUnknownClosureTypeHelper() |
protected XClosure |
getClosure() |
protected AbstractClosureTypeHelper |
getClosureWithoutExpectationHelper() |
protected ITypeExpectation |
getExpectation() |
FunctionTypeReference |
getExpectedClosureType()
This method is only public for testing purpose.
|
JvmOperation |
getOperation()
This method is only public for testing purpose.
|
protected ITypeComputationState |
getState() |
void |
selectStrategy()
This method is only public for testing purpose.
|
public ClosureTypeComputer(XClosure closure, ITypeExpectation expectation, ITypeComputationState state)
public void computeTypes()
public void selectStrategy()
protected AbstractClosureTypeHelper getClosureWithoutExpectationHelper()
protected ClosureWithExpectationHelper createClosureWithExpectationHelper(JvmOperation operation)
protected UnknownClosureTypeHelper createUnknownClosureTypeHelper()
protected ClosureWithoutExpectationHelper createClosureWithoutExpectationHelper()
protected XClosure getClosure()
protected ITypeExpectation getExpectation()
protected ITypeComputationState getState()
public FunctionTypeReference getExpectedClosureType()
public JvmOperation getOperation()