|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.japisoft.xpath.function.AbstractFunction
AbstractFunction
| Constructor Summary | |
AbstractFunction()
|
|
| Method Summary | |
void |
checkOneNodeSet(FastVector arg)
Throw a RuntimeException if arg has no single NodeSet argument |
void |
checkOneNumber(FastVector arg)
Throw a RuntimeException if arg has no single NodeSet argument |
void |
checkOneParameter(FastVector arg)
Throw a RuntimeException if arg has no single argument |
void |
checkOneString(FastVector arg)
Throw a RuntimeException if arg has no 1 string argument |
void |
checkThreeStrings(FastVector arg)
Throw a RuntimeException if arg has no 3 string arguments |
void |
checkTwoStrings(FastVector arg)
Throw a RuntimeException if arg has no 2 string arguments |
abstract java.lang.Object |
eval(XPathContext context,
FastVector arg)
Evalute this function for this context and the following arguments |
java.lang.String |
getString1(XPathContext context,
FastVector arg)
|
java.lang.String |
getString2(XPathContext context,
FastVector arg)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AbstractFunction()
| Method Detail |
public abstract java.lang.Object eval(XPathContext context,
FastVector arg)
eval in interface Functionarg - a Vector value, this is the responsability of the function to test the argument type
Object value like Integer, Boolean, String or NodeSetpublic void checkOneNumber(FastVector arg)
public void checkOneNodeSet(FastVector arg)
public void checkOneParameter(FastVector arg)
public void checkOneString(FastVector arg)
public void checkTwoStrings(FastVector arg)
public void checkThreeStrings(FastVector arg)
public java.lang.String toString()
toString in class java.lang.Object
public java.lang.String getString1(XPathContext context,
FastVector arg)
public java.lang.String getString2(XPathContext context,
FastVector arg)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||