Package com.tailf.conf
Interface Compiler
- All Known Implementing Classes:
XPathAbrevCompiler
public interface Compiler
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionProduces an EXPRESSION object representing the comparison: left equals to rightexpressionPath
(Object expression, Object[] predicates, Object[] steps) Produces an EXPRESSION object representing a filter expressionProduces an EXPRESSION object representing the computation of a core function with the supplied arguments.Produces an EXPRESSION object representing the computation of a library function with the supplied arguments.getKP()
Produces an EXPRESSION object that represents a string constant.locationPath
(boolean absolute, Object[] steps) Produces an EXPRESSION object representing a location pathnodeNameTest
(Object qname) Produces a NODE_TEST object that represents a node name test.nodeTypeTest
(int nodeType) Produces a NODE_TEST object that represents a node type test.Produces an EXPRESSION object that represents a numeric constant.Produces an QNAME that represents a name with an optional prefix.Produces a STEP object that represents a node test.
-
Field Details
-
NODE_TYPE_NODE
static final int NODE_TYPE_NODE- See Also:
-
NODE_TYPE_TEXT
static final int NODE_TYPE_TEXT- See Also:
-
NODE_TYPE_COMMENT
static final int NODE_TYPE_COMMENT- See Also:
-
NODE_TYPE_PI
static final int NODE_TYPE_PI- See Also:
-
AXIS_SELF
static final int AXIS_SELF- See Also:
-
AXIS_CHILD
static final int AXIS_CHILD- See Also:
-
AXIS_PARENT
static final int AXIS_PARENT- See Also:
-
AXIS_ANCESTOR
static final int AXIS_ANCESTOR- See Also:
-
AXIS_ATTRIBUTE
static final int AXIS_ATTRIBUTE- See Also:
-
AXIS_NAMESPACE
static final int AXIS_NAMESPACE- See Also:
-
AXIS_PRECEDING
static final int AXIS_PRECEDING- See Also:
-
AXIS_FOLLOWING
static final int AXIS_FOLLOWING- See Also:
-
AXIS_DESCENDANT
static final int AXIS_DESCENDANT- See Also:
-
AXIS_ANCESTOR_OR_SELF
static final int AXIS_ANCESTOR_OR_SELF- See Also:
-
AXIS_FOLLOWING_SIBLING
static final int AXIS_FOLLOWING_SIBLING- See Also:
-
AXIS_PRECEDING_SIBLING
static final int AXIS_PRECEDING_SIBLING- See Also:
-
AXIS_DESCENDANT_OR_SELF
static final int AXIS_DESCENDANT_OR_SELF- See Also:
-
FUNCTION_CURRENT
static final int FUNCTION_CURRENT- See Also:
-
-
Method Details
-
number
Produces an EXPRESSION object that represents a numeric constant.- Parameters:
value
- numeric String- Returns:
- Object
-
literal
Produces an EXPRESSION object that represents a string constant.- Parameters:
value
- String literal- Returns:
- Object
-
qname
Produces an QNAME that represents a name with an optional prefix.- Parameters:
prefix
- String prefixname
- String name- Returns:
- Object
- Throws:
ConfException
IOException
-
getKP
ConfObject[] getKP() -
equal
Produces an EXPRESSION object representing the comparison: left equals to right- Parameters:
left
- is an EXPRESSION objectright
- is an EXPRESSION object- Returns:
- Object
- Throws:
ConfException
-
function
Produces an EXPRESSION object representing the computation of a core function with the supplied arguments.- Parameters:
code
- is one of FUNCTION_... constantsargs
- are EXPRESSION objects- Returns:
- Object
-
function
Produces an EXPRESSION object representing the computation of a library function with the supplied arguments.- Parameters:
name
- is a QNAME object (function name)args
- are EXPRESSION objects- Returns:
- Object
-
nodeNameTest
Produces a NODE_TEST object that represents a node name test.- Parameters:
qname
- is a QNAME object- Returns:
- Object
-
nodeTypeTest
Produces a NODE_TEST object that represents a node type test.- Parameters:
nodeType
- is a NODE_TEST object- Returns:
- Object
-
step
Produces a STEP object that represents a node test.- Parameters:
axis
- is one of the AXIS_... constantsnodeTest
- is a NODE_TEST objectpredicates
- are EXPRESSION objects- Returns:
- Object
-
locationPath
Produces an EXPRESSION object representing a location path- Parameters:
absolute
- indicates whether the path is absolutesteps
- are STEP objects- Returns:
- Object
-
expressionPath
Produces an EXPRESSION object representing a filter expression- Parameters:
expression
- is an EXPRESSION objectpredicates
- are EXPRESSION objectssteps
- are STEP objects- Returns:
- Object
-