Example usage for com.google.gwt.json.client JSONExpression JSONExpression

List of usage examples for com.google.gwt.json.client JSONExpression JSONExpression

Introduction

In this page you can find the example usage for com.google.gwt.json.client JSONExpression JSONExpression.

Prototype

public JSONExpression(String expression) 

Source Link

Usage

From source file:com.brazoft.foundation.gwt.client.json.JSON.java

License:Apache License

public static JSONCollection<String> asExpressionCollection() {
    return new JSONCollection<String>() {

        @Override//w  ww. j av  a  2s. com
        JSONValue toJSONValue(String value) {
            return new JSONExpression(value);
        }

        @Override
        String toValue(JSONValue value) {
            return value.isString().stringValue();
        }
    };
}