All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.onetwo.common.expr.ExpressionFacotry Maven / Gradle / Ivy

There is a newer version: 4.7.2
Show newest version
package org.onetwo.common.expr;

public class ExpressionFacotry {

	public static final Expression AT = newExpression("@{", "}");
	public static final Expression PERCENT = newExpression("%{", "}");
	public static final Expression DOLOR = newExpression("${", "}");
	public static final Expression WELL = newExpression("#{", "}");
	public static final Expression BRACE = newExpression("{", "}");

	public static Expression newExpression(String start, String end){
		return new SimpleExpression(start, end);
	}

	public static Expression newExpression(String start, String end, Object valueProvider){
		return new SimpleExpression(start, end, valueProvider);
	}
	public static Expression newExpression(String start, String end, String nullValue){
		return new SimpleExpression(start, end, null, nullValue);
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy