|
||||||||||
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.Operation
org.apache.commons.jxpath.ri.compiler.CoreFunction
public class CoreFunction
An element of the compile tree representing one of built-in functions like "position()" or "number()".
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.Operation |
---|
args |
Fields inherited from class org.apache.commons.jxpath.ri.compiler.Expression |
---|
NOT_A_NUMBER, ONE |
Constructor Summary | |
---|---|
CoreFunction(int functionCode,
Expression[] args)
Create a new CoreFunction. |
Method Summary | |
---|---|
Object |
compute(EvalContext context)
Evaluates the expression. |
boolean |
computeContextDependent()
Returns true if any argument is context dependent or if the function is last(), position(), boolean(), local-name(), name(), string(), lang(), number(). |
Object |
computeValue(EvalContext context)
Evaluates the expression. |
protected Object |
functionBoolean(EvalContext context)
boolean() implementation. |
protected Object |
functionCeiling(EvalContext context)
ceiling() implementation. |
protected Object |
functionConcat(EvalContext context)
concat() implementation. |
protected Object |
functionContains(EvalContext context)
contains() implementation. |
protected Object |
functionCount(EvalContext context)
count() implementation. |
protected Object |
functionFalse(EvalContext context)
false() implementation. |
protected Object |
functionFloor(EvalContext context)
floor() implementation. |
protected Object |
functionID(EvalContext context)
id() implementation. |
protected Object |
functionKey(EvalContext context)
key() implementation. |
protected Object |
functionLang(EvalContext context)
lang() implementation. |
protected Object |
functionLast(EvalContext context)
last() implementation. |
protected Object |
functionLocalName(EvalContext context)
local-name() implementation. |
protected Object |
functionName(EvalContext context)
name() implementation. |
protected Object |
functionNamespaceURI(EvalContext context)
namespace-uri() implementation. |
protected Object |
functionNormalizeSpace(EvalContext context)
normalize-space() implementation. |
protected Object |
functionNot(EvalContext context)
not() implementation. |
protected Object |
functionNull(EvalContext context)
null() implementation. |
protected Object |
functionNumber(EvalContext context)
number() implementation. |
protected Object |
functionPosition(EvalContext context)
position() implementation. |
protected Object |
functionRound(EvalContext context)
round() implementation. |
protected Object |
functionStartsWith(EvalContext context)
starts-with() implementation. |
protected Object |
functionString(EvalContext context)
string() implementation. |
protected Object |
functionStringLength(EvalContext context)
string-length() implementation. |
protected Object |
functionSubstring(EvalContext context)
substring() implementation. |
protected Object |
functionSubstringAfter(EvalContext context)
substring-after() implementation. |
protected Object |
functionSubstringBefore(EvalContext context)
substring-before() implementation. |
protected Object |
functionSum(EvalContext context)
sum() implementation. |
protected Object |
functionTranslate(EvalContext context)
translate() implementation. |
protected Object |
functionTrue(EvalContext context)
true() implementation. |
Expression |
getArg1()
Convenience method to return the first argument. |
Expression |
getArg2()
Convenience method to return the second argument. |
Expression |
getArg3()
Convenience method to return the third argument. |
int |
getArgumentCount()
Return the number of argument Expressions. |
int |
getFunctionCode()
Get the function code. |
protected String |
getFunctionName()
Get the name of this function. |
String |
toString()
|
Methods inherited from class org.apache.commons.jxpath.ri.compiler.Operation |
---|
getArguments |
Methods inherited from class org.apache.commons.jxpath.ri.compiler.Expression |
---|
isContextDependent, iterate, iteratePointers |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CoreFunction(int functionCode, Expression[] args)
functionCode
- int function codeargs
- argument ExpressionsMethod Detail |
---|
public int getFunctionCode()
protected String getFunctionName()
public Expression getArg1()
public Expression getArg2()
public Expression getArg3()
public int getArgumentCount()
public boolean computeContextDependent()
computeContextDependent
in class Operation
public String toString()
toString
in class Object
public Object compute(EvalContext context)
Expression
compute
in class Expression
context
- evaluation context
public Object computeValue(EvalContext context)
Expression
computeValue
in class Expression
context
- evaluation context
protected Object functionLast(EvalContext context)
context
- evaluation context
protected Object functionPosition(EvalContext context)
context
- evaluation context
protected Object functionCount(EvalContext context)
context
- evaluation context
protected Object functionLang(EvalContext context)
context
- evaluation context
protected Object functionID(EvalContext context)
context
- evaluation context
protected Object functionKey(EvalContext context)
context
- evaluation context
protected Object functionNamespaceURI(EvalContext context)
context
- evaluation context
protected Object functionLocalName(EvalContext context)
context
- evaluation context
protected Object functionName(EvalContext context)
context
- evaluation context
protected Object functionString(EvalContext context)
context
- evaluation context
protected Object functionConcat(EvalContext context)
context
- evaluation context
protected Object functionStartsWith(EvalContext context)
context
- evaluation context
protected Object functionContains(EvalContext context)
context
- evaluation context
protected Object functionSubstringBefore(EvalContext context)
context
- evaluation context
protected Object functionSubstringAfter(EvalContext context)
context
- evaluation context
protected Object functionSubstring(EvalContext context)
context
- evaluation context
protected Object functionStringLength(EvalContext context)
context
- evaluation context
protected Object functionNormalizeSpace(EvalContext context)
context
- evaluation context
protected Object functionTranslate(EvalContext context)
context
- evaluation context
protected Object functionBoolean(EvalContext context)
context
- evaluation context
protected Object functionNot(EvalContext context)
context
- evaluation context
protected Object functionTrue(EvalContext context)
context
- evaluation context
protected Object functionFalse(EvalContext context)
context
- evaluation context
protected Object functionNull(EvalContext context)
context
- evaluation context
protected Object functionNumber(EvalContext context)
context
- evaluation context
protected Object functionSum(EvalContext context)
context
- evaluation context
protected Object functionFloor(EvalContext context)
context
- evaluation context
protected Object functionCeiling(EvalContext context)
context
- evaluation context
protected Object functionRound(EvalContext context)
context
- evaluation context
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |