Interface ContextTypeComputer

    • Method Detail

      • computeIsValidForSupportedType

        boolean computeIsValidForSupportedType​(StringLiteral literal,
                                               List<String> content,
                                               Environments envs)
        Computes that the specified literal is valid for supported type of this computer. Method TypeComputer.isSupport(StringLiteral, List) must explicitly call before this computation. Type computer implementation may expect to use method TypeComputer.isSupport(StringLiteral, List) in addition before main computation of type.
        Parameters:
        literal - the literal to check, cannot be null.
        content - the content of string literal, cannot be null.
        envs - the actual environments of the string literal, cannot be null.
        Returns:
        true, if the literal is valid for supported type.