Class ClosureTypeComputer


  • public class ClosureTypeComputer
    extends java.lang.Object
    Externalized 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.
    • 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.
      • createClosureWithExpectationHelper

        protected ClosureWithExpectationHelper createClosureWithExpectationHelper​(org.eclipse.xtext.common.types.JvmOperation operation)
      • getClosure

        protected XClosure getClosure()
      • 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.