Interface ITypeExpectation

    • Method Detail

      • createUnboundTypeReference

        UnboundTypeReference createUnboundTypeReference​(XExpression expression,
                                                        org.eclipse.xtext.common.types.JvmTypeParameter typeParameter)
        Create a new, managed UnboundTypeReference for the given type parameter which was first encountered for the given expression.
        Parameters:
        expression - the expression that used / referenced the type parameter
        typeParameter - the type parameter
      • isNoTypeExpectation

        boolean isNoTypeExpectation()
        Returns true if anything is allowed and no constraints are expected.
        Returns:
        true if anything is allowed and no constraints are expected.
      • isVoidTypeAllowed

        boolean isVoidTypeAllowed()
        Returns true if Void.TYPE is a valid type. It may be the only valid type or there may exist others.
        Returns:
        true if primitive void is allowed.