public enum XPathFunctions extends Enum<XPathFunctions> implements XPathFunction
Enum Constant and Description |
---|
BOOLEAN
XPath Boolean function
|
CEILING
XPath ceiling function
|
CONCAT
XPath concat function
|
CONTAINS
XPath contains function
|
COUNT
XPath count function
|
CURRENTURL
OXPath current-url function
|
DOMPROPERTY |
FALSE
XPath false function
|
FLOOR
XPath floor function
|
ID
XPath id function
|
INNERHTML |
ISINVISIBLE |
ISVISIBLE |
JAROWRINKLER
XPath JAROWRINKLER function
|
LANG
XPath lang function
|
LAST
XPath last function
|
LOCALNAME
XPath local-name function
|
MATCHES
XPath 2.0matches function
|
MINUS_FUNC |
NAME
XPath name function
|
NAMESPACEURI
XPath namespace-uri function
|
NORMALIZESPACE
XPath normalize-space function
|
NOT
XPath not function
|
NOW
OXPath current-url function
|
NUMBER
XPath number function
|
OUTERHTML |
PAGECONTENT
OXPath page-content function
|
PLUS_FUNC |
POSITION
XPath position function
|
QUALIFYURL |
REPLACE
XPath 2.0 replace function
|
ROUND
XPath round function
|
SAVEPAGE
OXPath page-content function
|
SCREENSHOT
OXPath current-url function
|
SELECTTEXT |
STARTSWITH
XPath starts-with function
|
STRING
XPath string function
|
STRINGJOIN
XPath string function
|
SUBSTRING
XPath substring function
|
SUBSTRINGAFTER
XPath substring-after function
|
SUBSTRINGAFTERREVERSE
XPath substring-after-reverse function
|
SUBSTRINGBEFORE
XPath substring-before function
|
SUBSTRINGBEFOREREVERSE
XPath substring-before-reverse function
|
SUBSTRINGLENGTH
XPath string-length function
|
SUBSTRINGREVERSE
XPath extension substring-reverse function
|
SUM
XPath sum function
|
TOXML |
TRANSLATE
XPath translate function
|
TRUE
XPath true function
|
URIFY |
Modifier and Type | Method and Description |
---|---|
boolean |
checkParameterCount(int numParam)
Given the number of parameters, can statically check if this function accepts this number of parameters
|
int |
getMaxParameters()
Returns the maximum number of parameters this function accepts
|
int |
getMinParameters()
Returns the minimum number of parameters this function accepts
|
String |
getName()
Returns the function name (no parentheses)
|
protected OXPathType |
innerOrOuterHTML(ArrayList<OXPathType> args,
PAATStateEvalSet state,
XPathFunctions function) |
static XPathFunctions |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static XPathFunctions[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
evaluate
public static final XPathFunctions TOXML
public static final XPathFunctions ISVISIBLE
public static final XPathFunctions ISINVISIBLE
public static final XPathFunctions QUALIFYURL
public static final XPathFunctions SELECTTEXT
public static final XPathFunctions DOMPROPERTY
public static final XPathFunctions INNERHTML
public static final XPathFunctions OUTERHTML
public static final XPathFunctions SAVEPAGE
public static final XPathFunctions JAROWRINKLER
public static final XPathFunctions PAGECONTENT
public static final XPathFunctions CURRENTURL
public static final XPathFunctions NOW
public static final XPathFunctions URIFY
public static final XPathFunctions SCREENSHOT
public static final XPathFunctions POSITION
public static final XPathFunctions LAST
public static final XPathFunctions COUNT
public static final XPathFunctions ID
public static final XPathFunctions NAMESPACEURI
public static final XPathFunctions LOCALNAME
public static final XPathFunctions NAME
public static final XPathFunctions STRING
public static final XPathFunctions STRINGJOIN
public static final XPathFunctions CONCAT
public static final XPathFunctions STARTSWITH
public static final XPathFunctions CONTAINS
public static final XPathFunctions MINUS_FUNC
public static final XPathFunctions PLUS_FUNC
public static final XPathFunctions SUBSTRINGBEFOREREVERSE
public static final XPathFunctions SUBSTRINGAFTERREVERSE
public static final XPathFunctions SUBSTRINGBEFORE
public static final XPathFunctions SUBSTRINGAFTER
public static final XPathFunctions SUBSTRING
public static final XPathFunctions SUBSTRINGREVERSE
public static final XPathFunctions SUBSTRINGLENGTH
public static final XPathFunctions NORMALIZESPACE
public static final XPathFunctions TRANSLATE
public static final XPathFunctions REPLACE
public static final XPathFunctions MATCHES
public static final XPathFunctions BOOLEAN
public static final XPathFunctions NOT
public static final XPathFunctions TRUE
public static final XPathFunctions FALSE
public static final XPathFunctions LANG
public static final XPathFunctions NUMBER
public static final XPathFunctions SUM
public static final XPathFunctions FLOOR
public static final XPathFunctions CEILING
public static final XPathFunctions ROUND
public static XPathFunctions[] values()
for (XPathFunctions c : XPathFunctions.values()) System.out.println(c);
public static XPathFunctions valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullprotected OXPathType innerOrOuterHTML(ArrayList<OXPathType> args, PAATStateEvalSet state, XPathFunctions function) throws OXPathException
args
- state
- xPathFunctions
- OXPathException
public String getName()
getName
in interface XPathFunction
public int getMinParameters()
getMinParameters
in interface XPathFunction
public int getMaxParameters()
getMaxParameters
in interface XPathFunction
public boolean checkParameterCount(int numParam)
checkParameterCount
in interface XPathFunction
numParam
- num of parameters to check in a function calltrue
if the number of parameters are legal; false
otherwiseCopyright © 2020 OXPath Team. All rights reserved.