|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.joost.stx.FunctionTable
Wrapper class for all STXPath function implementations.
Nested Class Summary | |
static class |
FunctionTable.Avg
The avg function.
|
static class |
FunctionTable.BooleanConv
The boolean function.
|
static class |
FunctionTable.Ceiling
The ceiling function.
|
static class |
FunctionTable.Concat
The concat function.
|
static class |
FunctionTable.Contains
The contains function.
|
static class |
FunctionTable.Count
The count function.
|
static class |
FunctionTable.Empty
The empty function.
|
static class |
FunctionTable.EndsWith
The ends-with function.
|
static class |
FunctionTable.EscapeUri
The escape-uri function.
|
static class |
FunctionTable.Exists
The exists function.
|
static class |
FunctionTable.ExtensionFunction
An instance of this class represents a Java extension function. |
static class |
FunctionTable.ExtSequence
The sequence extension function.
|
static class |
FunctionTable.False
The false function.
|
static class |
FunctionTable.FilterAvailable
The filter-available function.
|
static class |
FunctionTable.Floor
The floor function.
|
static class |
FunctionTable.GetInScopePrefixes
The get-in-scope-prefixes function.
|
static class |
FunctionTable.GetNamespaceUriForPrefix
The get-namespace-uri-for-prefix function.
|
static class |
FunctionTable.HasChildNodes
The has-child-nodes function.
|
static class |
FunctionTable.IndexOf
The index-of function.
|
static class |
FunctionTable.InsertBefore
The insert-before function.
|
static interface |
FunctionTable.Instance
Type for all functions |
static class |
FunctionTable.ItemAt
The item-at function.
|
static class |
FunctionTable.LocalName
The local-name function.
|
static class |
FunctionTable.Max
The max function.
|
static class |
FunctionTable.Min
The min function.
|
static class |
FunctionTable.Name
The name function.
|
static class |
FunctionTable.NamespaceURI
The namespace-uri function.
|
static class |
FunctionTable.NodeKind
The node-kind function.
|
static class |
FunctionTable.NormalizeSpace
The normalize-space function.
|
static class |
FunctionTable.Not
The not function.
|
static class |
FunctionTable.NumberConv
The number function.
|
static class |
FunctionTable.Position
The position function.
|
static class |
FunctionTable.RegexGroup
The regex-group function.
|
static class |
FunctionTable.Remove
The remove function.
|
static class |
FunctionTable.Round
The round function.
|
static class |
FunctionTable.StartsWith
The starts-with function.
|
static class |
FunctionTable.StringConv
The string function.
|
static class |
FunctionTable.StringJoin
The string-join function.
|
static class |
FunctionTable.StringLength
The string-length function.
|
static class |
FunctionTable.StringPad
The string-pad function.
|
static class |
FunctionTable.Subsequence
The subsequence function.
|
static class |
FunctionTable.Substring
The substring function.
|
static class |
FunctionTable.SubstringAfter
The substring-after function.
|
static class |
FunctionTable.SubstringBefore
The substring-before function.
|
static class |
FunctionTable.Sum
The sum function.
|
static class |
FunctionTable.Translate
The translate function.
|
static class |
FunctionTable.True
The true function.
|
Field Summary | |
private static String |
FNSP
|
private static Hashtable |
functionHash
Contains one instance for each function. |
private static String |
JENSP
|
Fields inherited from interface net.sf.joost.Constants |
DEBUG, DEFAULT_ENCODING, FEAT_NS, FEAT_NSPREFIX, FEATURE_URI_PREFIX, FUNC_NS, JOOST_EXT_NS, PR_ATTRIBUTES, PR_BUFFER, PR_CHILDREN, PR_CONTINUE, PR_ERROR, PR_SELF, PR_SIBLINGS, STX_NS |
Constructor Summary | |
FunctionTable()
|
Method Summary | |
static FunctionTable.Instance |
getFunction(String uri,
String lName,
String qName,
Tree args,
ParseContext pContext)
Looks for a function implementation. |
private static Value |
getOptionalValue(Context context,
int top,
Tree args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static String FNSP
private static String JENSP
private static Hashtable functionHash
Constructor Detail |
public FunctionTable()
Method Detail |
public static FunctionTable.Instance getFunction(String uri, String lName, String qName, Tree args, ParseContext pContext) throws SAXParseException
uri
- URI of the expanded function namelName
- local function nameargs
- parameters (needed here just for counting)pContext
- the parse context
SAXParseException
- if the function wasn't found or the number
of parameters is wrongprivate static Value getOptionalValue(Context context, int top, Tree args) throws SAXException
SAXException
- from evaluating args
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |