AXIS_ANCESTOR, AXIS_ANCESTOR_OR_SELF, AXIS_ATTRIBUTE, AXIS_CHILD, AXIS_DESCENDANT, AXIS_DESCENDANT_OR_SELF, AXIS_FOLLOWING, AXIS_FOLLOWING_SIBLING, AXIS_NAMESPACE, AXIS_PARENT, AXIS_PRECEDING, AXIS_PRECEDING_SIBLING, AXIS_SELF, FUNCTION_CURRENT, NODE_TYPE_COMMENT, NODE_TYPE_NODE, NODE_TYPE_PI, NODE_TYPE_TEXT
Constructor and Description |
---|
XPathAbrevCompiler(MountIdInterface mountGetter) |
Modifier and Type | Method and Description |
---|---|
void |
addKeys(MaapiSchemas.CSNode current,
com.tailf.conf.XPathAbrevCompiler.XPathTag tag,
ConfNamespace ns) |
Object |
equal(Object left,
Object right)
Produces an EXPRESSION object representing the comparison:
left equals to right
|
Object |
expressionPath(Object expression,
Object[] predicates,
Object[] steps)
Produces an EXPRESSION object representing a filter expression
|
Object |
function(int code,
Object[] args)
Produces an EXPRESSION object representing the computation of
a core function with the supplied arguments.
|
Object |
function(Object name,
Object[] args)
Produces an EXPRESSION object representing the computation of
a library function with the supplied arguments.
|
ConfObject[] |
getKP() |
Object |
literal(String value)
Produces an EXPRESSION object that represents a string constant.
|
Object |
locationPath(boolean absolute,
Object[] steps)
Produces an EXPRESSION object representing a location path
|
Object |
nodeNameTest(Object qname)
Produces a NODE_TEST object that represents a node name test.
|
Object |
nodeTypeTest(int nodeType)
Produces a NODE_TEST object that represents a node type test.
|
Object |
number(String value)
Produces an EXPRESSION object that represents a numeric constant.
|
Object |
qname(String prefix,
String tagName)
Produces an QNAME that represents a name with an optional prefix.
|
Object |
step(int axis,
Object nodeTest,
Object[] predicates)
Produces a STEP object that represents a node test.
|
public XPathAbrevCompiler(MountIdInterface mountGetter)
public Object number(String value)
Compiler
public Object literal(String value)
Compiler
public Object qname(String prefix, String tagName) throws ConfException, IOException
Compiler
qname
in interface Compiler
prefix
- String prefixtagName
- String nameConfException
IOException
public void addKeys(MaapiSchemas.CSNode current, com.tailf.conf.XPathAbrevCompiler.XPathTag tag, ConfNamespace ns)
public ConfObject[] getKP()
public Object equal(Object left, Object right) throws ConfException
Compiler
equal
in interface Compiler
left
- is an EXPRESSION objectright
- is an EXPRESSION objectConfException
public Object function(int code, Object[] args)
Compiler
public Object function(Object name, Object[] args)
Compiler
public Object nodeNameTest(Object qname)
Compiler
nodeNameTest
in interface Compiler
qname
- is a QNAME objectpublic Object nodeTypeTest(int nodeType)
Compiler
nodeTypeTest
in interface Compiler
nodeType
- is a NODE_TEST objectpublic Object step(int axis, Object nodeTest, Object[] predicates)
Compiler
public Object locationPath(boolean absolute, Object[] steps)
Compiler
locationPath
in interface Compiler
absolute
- indicates whether the path is absolutesteps
- are STEP objectspublic Object expressionPath(Object expression, Object[] predicates, Object[] steps)
Compiler
expressionPath
in interface Compiler
expression
- is an EXPRESSION objectpredicates
- are EXPRESSION objectssteps
- are STEP objects