TPTP 4.2.0 Platform Project
Public API Specification

org.eclipse.tptp.platform.provisional.sun50.fastxpath.functions
Class EFunctionOneArg

java.lang.Object
  extended byorg.eclipse.tptp.platform.provisional.sun50.fastxpath.EExpression
      extended byorg.eclipse.tptp.platform.provisional.sun50.fastxpath.functions.EFunction
          extended byorg.eclipse.tptp.platform.provisional.sun50.fastxpath.functions.EFunctionOneArg
All Implemented Interfaces:
IExpression
Direct Known Subclasses:
EFuncBoolean, EFuncCeiling, EFuncCount, EFuncExtElementAvailable, EFuncExtFunctionAvailable, EFuncFloor, EFuncNot, EFuncRound, EFuncSum, EFunction2Args, EFunctionDef1Arg

public class EFunctionOneArg
extends EFunction


Field Summary
protected  IExpression eArg0
           
 
Constructor Summary
EFunctionOneArg(FunctionOneArg foa)
           
 
Method Summary
 void callArgVisitors(XPathVisitor visitor)
           
 void checkNumberArgs(int argNum)
           
 void fixupVariables(java.util.Vector vars, int globalsSize)
           
 Expression getArg0()
           
protected  double getArg0AsNumber(FastXPathContext context)
           
protected  XString getArg0AsString(FastXPathContext context)
           
 IExpression getEArg0()
           
 Expression getExpression()
           
 IExpression instance(Expression e)
           
 void linkParent(IExpression parent)
           
 void printGraph(int level)
           
 void setArg(Expression arg, int argNum)
           
 void setEArg0(IExpression arg0)
           
 void setExpression(Expression exp)
           
 
Methods inherited from class org.eclipse.tptp.platform.provisional.sun50.fastxpath.functions.EFunction
getArgAsNumber, getArgAsString
 
Methods inherited from class org.eclipse.tptp.platform.provisional.sun50.fastxpath.EExpression
compile, execute, getParent, indent, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

eArg0

protected IExpression eArg0
Constructor Detail

EFunctionOneArg

public EFunctionOneArg(FunctionOneArg foa)
Parameters:
foa -
Method Detail

instance

public IExpression instance(Expression e)
Overrides:
instance in class EFunction
See Also:
org.eclipse.tptp.platform.provisional.sun50.fastxpath.functions.EFunction#instance(com.sun.org.apache.xpath.internal.Expression)

callArgVisitors

public void callArgVisitors(XPathVisitor visitor)
Parameters:
visitor -

checkNumberArgs

public void checkNumberArgs(int argNum)
                     throws WrongNumberArgsException
Parameters:
argNum -
Throws:
WrongNumberArgsException

fixupVariables

public void fixupVariables(java.util.Vector vars,
                           int globalsSize)
Parameters:
vars -
globalsSize -

getArg0

public Expression getArg0()
Returns:
Arg #0

getExpression

public Expression getExpression()
Returns:
expression

setArg

public void setArg(Expression arg,
                   int argNum)
            throws WrongNumberArgsException
Parameters:
arg -
argNum -
Throws:
WrongNumberArgsException

setExpression

public void setExpression(Expression exp)
Parameters:
exp -

printGraph

public void printGraph(int level)
Specified by:
printGraph in interface IExpression
Overrides:
printGraph in class EFunction
See Also:
EFunction.printGraph(int)

linkParent

public void linkParent(IExpression parent)
Specified by:
linkParent in interface IExpression
Overrides:
linkParent in class EExpression
See Also:
org.eclipse.tptp.platform.provisional.sun50.fastxpath.EExpression#linkParent(org.eclipse.tptp.platform.provisional.sun50.fastxpath.EExpression)

getEArg0

public IExpression getEArg0()
Returns:
arg #0

setEArg0

public void setEArg0(IExpression arg0)
Parameters:
arg0 -

getArg0AsString

protected XString getArg0AsString(FastXPathContext context)
                           throws javax.xml.transform.TransformerException,
                                  ExpressionEvaluationException
Throws:
javax.xml.transform.TransformerException
ExpressionEvaluationException

getArg0AsNumber

protected double getArg0AsNumber(FastXPathContext context)
                          throws javax.xml.transform.TransformerException,
                                 ExpressionEvaluationException
Throws:
javax.xml.transform.TransformerException
ExpressionEvaluationException

TPTP 4.2.0 Platform Project
Public API Specification