org.exolab.adaptx.xpath.expressions

Class PrimaryExpr

Implemented Interfaces:
XPathExpression
Known Direct Subclasses:
FunctionCall, VariableReference

public abstract class PrimaryExpr
extends java.lang.Object
implements XPathExpression

Represents an XPath 1.0 PrimaryExpr
 from XPath 1.0 Recommendation:
 [15] PrimaryExpr ::= VariableReference
                      | '(' Expr ')'
                      | Literal
                      | Number
                      | FunctionCall
 
Version:
$Revision: 3734 $ $Date: 2003-05-13 03:55:04 -0400 (Tue, 13 May 2003) $
Author:
Keith Visco

Field Summary

static short
EXPR
static short
FUNCTION_CALL
static short
LITERAL
static short
NUMBER
The NodeTest expressions type
static short
VARIABLE_REFERENCE

Fields inherited from interface org.exolab.adaptx.xpath.XPathExpression

BOOLEAN, ERROR, FILTER_EXPR, LOCATION_PATH, NODE_TEST, NUMBER, PATH_EXPR, PRIMARY, STEP, STRING, UNION_EXPR

Method Summary

short
getExprType()
Returns the XPathExpression type
short
getType()
Retrieves the type of this PrimaryExpr

Field Details

EXPR

public static final short EXPR
Field Value:
1

FUNCTION_CALL

public static final short FUNCTION_CALL
Field Value:
4

LITERAL

public static final short LITERAL
Field Value:
2

NUMBER

public static final short NUMBER
The NodeTest expressions type
Field Value:
3

VARIABLE_REFERENCE

public static final short VARIABLE_REFERENCE
Field Value:
0

Method Details

getExprType

public final short getExprType()
Returns the XPathExpression type
Specified by:
getExprType in interface XPathExpression
Returns:
the XPathExpression type

getType

public final short getType()
Retrieves the type of this PrimaryExpr
Returns:
the type of this PrimaryExpr