• Evaluates the given expression to a literal and checks if it matches the expected type and value.

    Parameters

    Returns boolean

    True if the expression can be evaluated to a constant value that matches the expected type and value, false otherwise.