|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.jxpath.ri.compiler.Expression
org.apache.commons.jxpath.ri.compiler.Constant
public class Constant
A compile tree element containing a constant number or string.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.commons.jxpath.ri.compiler.Expression |
|---|
Expression.PointerIterator, Expression.ValueIterator |
| Field Summary |
|---|
| Fields inherited from class org.apache.commons.jxpath.ri.compiler.Expression |
|---|
NOT_A_NUMBER, ONE, ZERO |
| Constructor Summary | |
|---|---|
Constant(Number number)
Create a new Constant. |
|
Constant(String string)
Create a new Constant. |
|
| Method Summary | |
|---|---|
Object |
compute(EvalContext context)
Evaluates the expression. |
boolean |
computeContextDependent()
Returns false |
Object |
computeValue(EvalContext context)
Evaluates the expression. |
boolean |
isContextDependent()
Returns false |
String |
toString()
|
| Methods inherited from class org.apache.commons.jxpath.ri.compiler.Expression |
|---|
iterate, iteratePointers |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Constant(Number number)
number - constantpublic Constant(String string)
string - constant| Method Detail |
|---|
public Object compute(EvalContext context)
Expression
compute in class Expressioncontext - evaluation context
public Object computeValue(EvalContext context)
Expression
computeValue in class Expressioncontext - evaluation context
public boolean isContextDependent()
isContextDependent in class Expressionpublic boolean computeContextDependent()
computeContextDependent in class Expressionpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||