// Path: src/main/java/com/kcthota/JSONQuery/exceptions/UnsupportedExprException.java
// @SuppressWarnings("serial")
// public class UnsupportedExprException extends RuntimeException {
// 
// 	public UnsupportedExprException(String message) {
// 		super(message);
// 	}
// 
// }


import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.TextNode;
import com.kcthota.JSONQuery.exceptions.UnsupportedExprException;
/**
 * 
 */
package com.kcthota.JSONQuery.expressions;


/**
 * Returns the trimmed value of the property in the json node.
 * @author Krishna Chaitanya Thota
 * Apr 25, 2015 8:18:49 PM
 */
public class TrimValueExpression extends StringValueExpression {
	
	
	public TrimValueExpression(String property) {
		super(property);
	}
	
	public TrimValueExpression(String property, ValueExpression innerExpression) {
		super(property, innerExpression);
	}
	
// Path: src/main/java/com/kcthota/JSONQuery/exceptions/UnsupportedExprException.java
// @SuppressWarnings("serial")
// public class UnsupportedExprException extends RuntimeException {
// 
// 	public UnsupportedExprException(String message) {
// 		super(message);
// 	}
// 
// }


// Path: src/main/java/com/kcthota/JSONQuery/expressions/TrimValueExpression.java
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.TextNode;
import com.kcthota.JSONQuery.exceptions.UnsupportedExprException;

/**
 * 
 */
package com.kcthota.JSONQuery.expressions;


/**
 * Returns the trimmed value of the property in the json node.
 * @author Krishna Chaitanya Thota
 * Apr 25, 2015 8:18:49 PM
 */
public class TrimValueExpression extends StringValueExpression {
	
	
	public TrimValueExpression(String property) {
		super(property);
	}
	
	public TrimValueExpression(String property, ValueExpression innerExpression) {
		super(property, innerExpression);
	}
	
	public JsonNode evaluate(JsonNode node) {