Example usage for org.apache.commons.jxpath.ri.compiler Constant Constant

List of usage examples for org.apache.commons.jxpath.ri.compiler Constant Constant

Introduction

In this page you can find the example usage for org.apache.commons.jxpath.ri.compiler Constant Constant.

Prototype

public Constant(String string) 

Source Link

Document

Create a new Constant.

Usage

From source file:org.openvpms.component.system.common.jxpath.OpenVPMSTreeCompiler.java

/**
 * Produces an EXPRESSION object that represents a numeric constant.
 *//*  w  ww  .  j  a  v  a 2s .  c o  m*/
@Override
public Object number(String value) {
    return new Constant(new BigDecimal(value));
}