|
|||||||||
| 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(java.lang.Number number)
Create a new Constant. |
|
Constant(java.lang.String string)
Create a new Constant. |
|
| Method Summary | |
|---|---|
java.lang.Object |
compute(EvalContext context)
Evaluates the expression. |
boolean |
computeContextDependent()
Returns false |
java.lang.Object |
computeValue(EvalContext context)
Evaluates the expression. |
boolean |
isContextDependent()
Returns false |
java.lang.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(java.lang.Number number)
number - constantpublic Constant(java.lang.String string)
string - constant| Method Detail |
|---|
public java.lang.Object compute(EvalContext context)
Expression
compute in class Expressioncontext - evaluation context
public java.lang.Object computeValue(EvalContext context)
Expression
computeValue in class Expressioncontext - evaluation context
public boolean isContextDependent()
isContextDependent in class Expressionpublic boolean computeContextDependent()
computeContextDependent in class Expressionpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||