org.apache.commons.jxpath.ri.compiler
Class Constant
java.lang.Object
|
+--org.apache.commons.jxpath.ri.compiler.Expression
|
+--org.apache.commons.jxpath.ri.compiler.Constant
- public class Constant
- extends Expression
A compile tree element containing a constant number or string.
- Version:
- $Revision: 1.6 $ $Date: 2003/03/11 00:59:21 $
- Author:
- Dmitri Plotnikov
Constructor Summary |
Constant(java.lang.Number number)
|
Constant(java.lang.String string)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constant
public Constant(java.lang.Number number)
Constant
public Constant(java.lang.String string)
compute
public java.lang.Object compute(EvalContext context)
- Overrides:
compute
in class Expression
computeValue
public java.lang.Object computeValue(EvalContext context)
- Returns the value of the constant.
- Overrides:
computeValue
in class Expression
isContextDependent
public boolean isContextDependent()
- Returns false
- Overrides:
isContextDependent
in class Expression
computeContextDependent
public boolean computeContextDependent()
- Returns false
- Overrides:
computeContextDependent
in class Expression
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2001-2003 Apache Software Foundation. All Rights Reserved.