de.fzi.XPath
Class FunctionCall

java.lang.Object
  |
  +--de.fzi.XPath.Expr
        |
        +--de.fzi.XPath.FunctionCall

public class FunctionCall
extends Expr

FunctionCall class represents function call.


Fields inherited from class de.fzi.XPath.Expr
ADD_OP, AND_OP, DIV_OP, EQ_OP, GT_OP, GTE_OP, LT_OP, LTE_OP, MOD_OP, MUL_OP, NEQ_OP, NOP_OP, OR_OP, SUB_OP, U_OP
 
Constructor Summary
FunctionCall(java.lang.String thename)
          Constructs FunctionCall for given name.
 
Method Summary
 void addArgument(Expr argument)
          Appends argument.
 Expr getArgument(int index)
          Returns argument at given position.
 int getArgumentCount()
          Returns argument count
 java.lang.String toString()
          Returns function call as string.
 
Methods inherited from class de.fzi.XPath.Expr
getNegative, getOperator, getOperatorAsString, getOperatorName, getPositive, setOperator, setPositive
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FunctionCall

public FunctionCall(java.lang.String thename)
Constructs FunctionCall for given name.
Parameters:
thename - name of the function.
Method Detail

addArgument

public void addArgument(Expr argument)
Appends argument.
Parameters:
argument - argument expression.

getArgument

public Expr getArgument(int index)
Returns argument at given position.
Parameters:
index - postion of argument to return.
Returns:
Returns argument at position index. If no argument at this position, result is null.

getArgumentCount

public int getArgumentCount()
Returns argument count
Returns:
Returns argument count.

toString

public java.lang.String toString()
Returns function call as string.
Overrides:
toString in class Expr
Returns:
Returns function call as string.