Class UnknownClosureTypeHelper
- java.lang.Object
-
- org.eclipse.xtext.xbase.typesystem.computation.AbstractClosureTypeHelper
-
- org.eclipse.xtext.xbase.typesystem.computation.UnknownClosureTypeHelper
-
- All Implemented Interfaces:
IApplicableCandidate
,IClosureCandidate
public class UnknownClosureTypeHelper extends AbstractClosureTypeHelper
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
UnknownClosureTypeHelper(XClosure closure, ITypeExpectation expectation, ITypeComputationState state)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ITypeComputationState
assignParameters(ITypeAssigner typeAssigner)
protected void
computeTypes()
protected ITypeComputationState
getClosureBodyTypeComputationState(ITypeAssigner typeAssigner)
FunctionTypeReference
getExpectedClosureType()
This method is only public for testing purpose.org.eclipse.xtext.common.types.JvmOperation
getOperation()
This method is only public for testing purpose.java.util.List<org.eclipse.xtext.common.types.JvmFormalParameter>
getParameters()
Returns the effective list of parameters.-
Methods inherited from class org.eclipse.xtext.xbase.typesystem.computation.AbstractClosureTypeHelper
applyToModel, deferredBindTypeArgument, getClosure, getExpectation, getServices, getState, validate
-
-
-
-
Constructor Detail
-
UnknownClosureTypeHelper
protected UnknownClosureTypeHelper(XClosure closure, ITypeExpectation expectation, ITypeComputationState state)
-
-
Method Detail
-
computeTypes
protected void computeTypes()
- Specified by:
computeTypes
in classAbstractClosureTypeHelper
-
getExpectedClosureType
public FunctionTypeReference getExpectedClosureType()
Description copied from class:AbstractClosureTypeHelper
This method is only public for testing purpose.- Specified by:
getExpectedClosureType
in classAbstractClosureTypeHelper
-
getOperation
public org.eclipse.xtext.common.types.JvmOperation getOperation()
Description copied from class:AbstractClosureTypeHelper
This method is only public for testing purpose.- Specified by:
getOperation
in classAbstractClosureTypeHelper
-
getClosureBodyTypeComputationState
protected ITypeComputationState getClosureBodyTypeComputationState(ITypeAssigner typeAssigner)
-
getParameters
public java.util.List<org.eclipse.xtext.common.types.JvmFormalParameter> getParameters()
Description copied from interface:IClosureCandidate
Returns the effective list of parameters. This may either be the declared parameter list or the synthetic parameter list.- Specified by:
getParameters
in interfaceIClosureCandidate
- Specified by:
getParameters
in classAbstractClosureTypeHelper
-
assignParameters
protected ITypeComputationState assignParameters(ITypeAssigner typeAssigner)
-
-