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 protectedUnknownClosureTypeHelper(XClosure closure, ITypeExpectation expectation, ITypeComputationState state)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ITypeComputationStateassignParameters(ITypeAssigner typeAssigner)protected voidcomputeTypes()protected ITypeComputationStategetClosureBodyTypeComputationState(ITypeAssigner typeAssigner)FunctionTypeReferencegetExpectedClosureType()This method is only public for testing purpose.org.eclipse.xtext.common.types.JvmOperationgetOperation()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:
computeTypesin classAbstractClosureTypeHelper
-
getExpectedClosureType
public FunctionTypeReference getExpectedClosureType()
Description copied from class:AbstractClosureTypeHelperThis method is only public for testing purpose.- Specified by:
getExpectedClosureTypein classAbstractClosureTypeHelper
-
getOperation
public org.eclipse.xtext.common.types.JvmOperation getOperation()
Description copied from class:AbstractClosureTypeHelperThis method is only public for testing purpose.- Specified by:
getOperationin classAbstractClosureTypeHelper
-
getClosureBodyTypeComputationState
protected ITypeComputationState getClosureBodyTypeComputationState(ITypeAssigner typeAssigner)
-
getParameters
public java.util.List<org.eclipse.xtext.common.types.JvmFormalParameter> getParameters()
Description copied from interface:IClosureCandidateReturns the effective list of parameters. This may either be the declared parameter list or the synthetic parameter list.- Specified by:
getParametersin interfaceIClosureCandidate- Specified by:
getParametersin classAbstractClosureTypeHelper
-
assignParameters
protected ITypeComputationState assignParameters(ITypeAssigner typeAssigner)
-
-