change getValidExprBySig from private to public and expose it to transformer.