protected void processBinaryExpressionOperand( final Expression operand, final TypeReference otherType, final BinaryOperatorType op) { if (operand instanceof CastExpression) { final CastExpression cast = (CastExpression) operand; final Expression toCast = cast.getExpression(); final TypeReference castType = getType(cast); final TypeReference innerType = getType(toCast); if (castType != null && innerType != null && TypeUtilities.isBinaryOperatorApplicable(op, innerType, otherType, false)) { addToResults(cast, false); } } }
protected void processBinaryExpressionOperand( final Expression operand, final TypeReference otherType, final BinaryOperatorType op) { if (operand instanceof CastExpression) { final CastExpression cast = (CastExpression) operand; final Expression toCast = cast.getExpression(); final TypeReference castType = getType(cast); final TypeReference innerType = getType(toCast); if (castType != null && innerType != null && TypeUtilities.isBinaryOperatorApplicable(op, innerType, otherType, false)) { addToResults(cast, false); } } }
public static boolean isBinaryOperatorApplicable( @NotNull final BinaryOperatorType op, @NotNull final AstType lType, @NotNull final AstType rType, final boolean strict) { return isBinaryOperatorApplicable( op, VerifyArgument.notNull(lType, "lType").toTypeReference(), VerifyArgument.notNull(rType, "rType").toTypeReference(), strict ); }
public static boolean isBinaryOperatorApplicable( @NotNull final BinaryOperatorType op, @NotNull final AstType lType, @NotNull final AstType rType, final boolean strict) { return isBinaryOperatorApplicable( op, VerifyArgument.notNull(lType, "lType").toTypeReference(), VerifyArgument.notNull(rType, "rType").toTypeReference(), strict ); }
public static boolean isBinaryOperatorApplicable( @NotNull final BinaryOperatorType op, @NotNull final AstType lType, @NotNull final AstType rType, @Nullable final TypeReference expectedResultType, final boolean strict) { return isBinaryOperatorApplicable( op, VerifyArgument.notNull(lType, "lType").toTypeReference(), VerifyArgument.notNull(rType, "rType").toTypeReference(), expectedResultType, strict ); }
final boolean isApplicable = isBinaryOperatorApplicable( op, innerType,