Class SubstringAfterFunction
java.lang.Object
org.jaxen.function.SubstringAfterFunction
- All Implemented Interfaces:
Function
4.2 string substring-after(string,string)
The substring-after function returns the substring of the first argument string that follows the first occurrence of the second argument string in the first argument string, or the empty string if the first argument string does not contain the second argument string. For example, substring-after("1999/04/01","/") returns 04/01, and substring-after("1999/04/01","19") returns 99/04/01.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the part of the string-value of the first item inargsthat follows the string-value of the second item inargs; or the empty string if the second string is not a substring of the first string.static StringReturns the part ofstrArgthat follows the first occurence ofmatchArg; or the empty string if thestrArgdoes not containmatchArg
-
Constructor Details
-
SubstringAfterFunction
public SubstringAfterFunction()Create a newSubstringAfterFunctionobject.
-
-
Method Details
-
call
Returns the part of the string-value of the first item inargsthat follows the string-value of the second item inargs; or the empty string if the second string is not a substring of the first string.- Specified by:
callin interfaceFunction- Parameters:
context- the context at the point in the expression when the function is calledargs- a list that contains two items- Returns:
- a
Stringcontaining that part of the string-value of the first item inargsthat comes before the string-value of the second item inargs - Throws:
FunctionCallException- ifargsdoes not have length two
-