private boolean computeStringExperssion(String value, StringCompare compare) {
        boolean result;
        switch (compare) {
            case EQ:
                result = value.equals(this.value);
                break;
            case NE:
                result = !value.equals(this.value);
                break;
            case LIKE:
                if ((this.value.startsWith("%") && this.value.endsWith("%")) || 
                        (this.value.startsWith("*") && this.value.endsWith("*"))) { //前后匹配
                    result = value.contains(this.value.substring(1, this.value.length() - 1));
                } else if (this.value.endsWith("%") || this.value.endsWith("*")) { //后匹配
                    result = value.startsWith(this.value.substring(this.value.length() - 1));
                } else {
                    result = false;
                }
                break;
            default: 
                result = false;
                break;
        }
        return result;
    }