Interface ContentTypeComputer

    • Method Detail

      • computeIsValidForSupportedType

        boolean computeIsValidForSupportedType​(StringLiteral literal,
                                               List<String> content,
                                               Collection<LiteralType> contextTypes)
        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.
        contextTypes - the context types that already computed, cannot be null.
        Returns:
        true, if the literal is valid for supported type.