Class ClosureTypeComputer
- java.lang.Object
-
- org.eclipse.xtext.xbase.typesystem.computation.ClosureTypeComputer
-
public class ClosureTypeComputer extends java.lang.ObjectExternalized strategy for closure type computation which allows for easier unit testing. Clients will usually not alter the implementation. Public methods are mostly public for testing purpose.- See Also:
XbaseTypeComputer._computeTypes(XClosure, ITypeComputationState)- Noinstantiate:
- This class is not intended to be instantiated by clients.
-
-
Constructor Summary
Constructors Constructor Description ClosureTypeComputer(XClosure closure, ITypeExpectation expectation, ITypeComputationState state)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcomputeTypes()protected ClosureWithExpectationHelpercreateClosureWithExpectationHelper(org.eclipse.xtext.common.types.JvmOperation operation)protected ClosureWithoutExpectationHelpercreateClosureWithoutExpectationHelper()protected UnknownClosureTypeHelpercreateUnknownClosureTypeHelper()protected XClosuregetClosure()protected AbstractClosureTypeHelpergetClosureWithoutExpectationHelper()protected ITypeExpectationgetExpectation()FunctionTypeReferencegetExpectedClosureType()This method is only public for testing purpose.org.eclipse.xtext.common.types.JvmOperationgetOperation()This method is only public for testing purpose.protected ITypeComputationStategetState()voidselectStrategy()This method is only public for testing purpose.
-
-
-
Constructor Detail
-
ClosureTypeComputer
public ClosureTypeComputer(XClosure closure, ITypeExpectation expectation, ITypeComputationState state)
-
-
Method Detail
-
computeTypes
public void computeTypes()
-
selectStrategy
public void selectStrategy()
This method is only public for testing purpose.- Noreference:
- This method is not intended to be referenced by clients.
-
getClosureWithoutExpectationHelper
protected AbstractClosureTypeHelper getClosureWithoutExpectationHelper()
-
createClosureWithExpectationHelper
protected ClosureWithExpectationHelper createClosureWithExpectationHelper(org.eclipse.xtext.common.types.JvmOperation operation)
-
createUnknownClosureTypeHelper
protected UnknownClosureTypeHelper createUnknownClosureTypeHelper()
-
createClosureWithoutExpectationHelper
protected ClosureWithoutExpectationHelper createClosureWithoutExpectationHelper()
-
getClosure
protected XClosure getClosure()
-
getExpectation
protected ITypeExpectation getExpectation()
-
getState
protected ITypeComputationState getState()
-
getExpectedClosureType
public FunctionTypeReference getExpectedClosureType()
This method is only public for testing purpose.- Noreference:
- This method is not intended to be referenced by clients.
-
getOperation
public org.eclipse.xtext.common.types.JvmOperation getOperation()
This method is only public for testing purpose.- Noreference:
- This method is not intended to be referenced by clients.
-
-