com.jclark.xsl.expr
Class ExprParser

java.lang.Object
  |
  +--com.jclark.xsl.expr.ExprTokenizer
        |
        +--com.jclark.xsl.expr.ExprParser
All Implemented Interfaces:
NamespaceConstants

public class ExprParser
extends ExprTokenizer
implements NamespaceConstants


Field Summary
(package private)  int currentToken
           
(package private)  java.lang.String currentTokenValue
           
(package private) static int TOK_AND
           
(package private) static int TOK_AT
           
(package private) static int TOK_AXIS
           
(package private) static int TOK_CNAME_LPAR
           
(package private) static int TOK_COMMA
           
(package private) static int TOK_COMMENT_LPAR
           
(package private) static int TOK_DIV
           
(package private) static int TOK_DOT
           
(package private) static int TOK_DOT_DOT
           
(package private) static int TOK_EOF
           
(package private) static int TOK_EQUALS
           
(package private) static int TOK_FUNCTION_LPAR
           
(package private) static int TOK_GT
           
(package private) static int TOK_GTE
           
(package private) static int TOK_LITERAL
           
(package private) static int TOK_LPAR
           
(package private) static int TOK_LSQB
           
(package private) static int TOK_LT
           
(package private) static int TOK_LTE
           
(package private) static int TOK_MINUS
           
(package private) static int TOK_MOD
           
(package private) static int TOK_MULTIPLY
           
(package private) static int TOK_NAME_COLON_STAR
           
(package private) static int TOK_NODE_LPAR
           
(package private) static int TOK_NOT_EQUALS
           
(package private) static int TOK_NUMBER
           
(package private) static int TOK_OR
           
(package private) static int TOK_PLUS
           
(package private) static int TOK_PROCESSING_INSTRUCTION_LPAR
           
(package private) static int TOK_QNAME
           
(package private) static int TOK_RPAR
           
(package private) static int TOK_RSQB
           
(package private) static int TOK_SLASH
           
(package private) static int TOK_SLASH_SLASH
           
(package private) static int TOK_STAR
           
(package private) static int TOK_TEXT_LPAR
           
(package private) static int TOK_VARIABLE_REF
           
(package private) static int TOK_VBAR
           
 
Fields inherited from interface com.jclark.xsl.om.NamespaceConstants
XT_NAMESPACE
 
Method Summary
(package private) static boolean functionAvailable(Name name, ExprContext context)
           
static NodeSetExpr getChildrenExpr()
           
(package private)  ConvertibleExpr makeRelationalExpr(Relation rel, ConvertibleExpr e1, ConvertibleExpr e2)
           
(package private)  void next()
           
(package private)  ConvertibleExpr[] parseArgs()
           
static StringExpr parseAttributeValueTemplate(Node node, java.lang.String value, VariableSet locals)
           
static BooleanExpr parseBooleanExpr(Node node, java.lang.String expr, VariableSet locals)
           
static NodeSetExpr parseNodeSetExpr(Node node, java.lang.String expr, VariableSet locals)
           
static NumberExpr parseNumberExpr(Node node, java.lang.String expr, VariableSet locals)
           
static TopLevelPattern parsePattern(Node node, java.lang.String pattern)
           
static TopLevelPattern parsePattern(Node node, java.lang.String pattern, VariableSet locals)
           
static StringExpr parseStringExpr(Node node, java.lang.String expr, VariableSet locals)
           
static VariantExpr parseVariantExpr(Node node, java.lang.String expr, VariableSet locals)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TOK_EOF

static final int TOK_EOF
See Also:
Constant Field Values

TOK_QNAME

static final int TOK_QNAME
See Also:
Constant Field Values

TOK_STAR

static final int TOK_STAR
See Also:
Constant Field Values

TOK_NAME_COLON_STAR

static final int TOK_NAME_COLON_STAR
See Also:
Constant Field Values

TOK_AT

static final int TOK_AT
See Also:
Constant Field Values

TOK_DOT

static final int TOK_DOT
See Also:
Constant Field Values

TOK_DOT_DOT

static final int TOK_DOT_DOT
See Also:
Constant Field Values

TOK_COMMENT_LPAR

static final int TOK_COMMENT_LPAR
See Also:
Constant Field Values

TOK_PROCESSING_INSTRUCTION_LPAR

static final int TOK_PROCESSING_INSTRUCTION_LPAR
See Also:
Constant Field Values

TOK_TEXT_LPAR

static final int TOK_TEXT_LPAR
See Also:
Constant Field Values

TOK_NODE_LPAR

static final int TOK_NODE_LPAR
See Also:
Constant Field Values

TOK_MULTIPLY

static final int TOK_MULTIPLY
See Also:
Constant Field Values

TOK_LPAR

static final int TOK_LPAR
See Also:
Constant Field Values

TOK_RPAR

static final int TOK_RPAR
See Also:
Constant Field Values

TOK_LSQB

static final int TOK_LSQB
See Also:
Constant Field Values

TOK_RSQB

static final int TOK_RSQB
See Also:
Constant Field Values

TOK_LITERAL

static final int TOK_LITERAL
See Also:
Constant Field Values

TOK_NUMBER

static final int TOK_NUMBER
See Also:
Constant Field Values

TOK_AXIS

static final int TOK_AXIS
See Also:
Constant Field Values

TOK_FUNCTION_LPAR

static final int TOK_FUNCTION_LPAR
See Also:
Constant Field Values

TOK_CNAME_LPAR

static final int TOK_CNAME_LPAR
See Also:
Constant Field Values

TOK_VARIABLE_REF

static final int TOK_VARIABLE_REF
See Also:
Constant Field Values

TOK_SLASH

static final int TOK_SLASH
See Also:
Constant Field Values

TOK_SLASH_SLASH

static final int TOK_SLASH_SLASH
See Also:
Constant Field Values

TOK_VBAR

static final int TOK_VBAR
See Also:
Constant Field Values

TOK_COMMA

static final int TOK_COMMA
See Also:
Constant Field Values

TOK_PLUS

static final int TOK_PLUS
See Also:
Constant Field Values

TOK_MINUS

static final int TOK_MINUS
See Also:
Constant Field Values

TOK_EQUALS

static final int TOK_EQUALS
See Also:
Constant Field Values

TOK_NOT_EQUALS

static final int TOK_NOT_EQUALS
See Also:
Constant Field Values

TOK_GT

static final int TOK_GT
See Also:
Constant Field Values

TOK_LT

static final int TOK_LT
See Also:
Constant Field Values

TOK_GTE

static final int TOK_GTE
See Also:
Constant Field Values

TOK_LTE

static final int TOK_LTE
See Also:
Constant Field Values

TOK_AND

static final int TOK_AND
See Also:
Constant Field Values

TOK_OR

static final int TOK_OR
See Also:
Constant Field Values

TOK_MOD

static final int TOK_MOD
See Also:
Constant Field Values

TOK_DIV

static final int TOK_DIV
See Also:
Constant Field Values

currentToken

int currentToken

currentTokenValue

java.lang.String currentTokenValue
Method Detail

parseNodeSetExpr

public static NodeSetExpr parseNodeSetExpr(Node node,
                                           java.lang.String expr,
                                           VariableSet locals)
                                    throws XSLException
XSLException

parseStringExpr

public static StringExpr parseStringExpr(Node node,
                                         java.lang.String expr,
                                         VariableSet locals)
                                  throws XSLException
XSLException

parseNumberExpr

public static NumberExpr parseNumberExpr(Node node,
                                         java.lang.String expr,
                                         VariableSet locals)
                                  throws XSLException
XSLException

parseBooleanExpr

public static BooleanExpr parseBooleanExpr(Node node,
                                           java.lang.String expr,
                                           VariableSet locals)
                                    throws XSLException
XSLException

parseVariantExpr

public static VariantExpr parseVariantExpr(Node node,
                                           java.lang.String expr,
                                           VariableSet locals)
                                    throws XSLException
XSLException

parseArgs

ConvertibleExpr[] parseArgs()
                      throws ParseException
ParseException

makeRelationalExpr

ConvertibleExpr makeRelationalExpr(Relation rel,
                                   ConvertibleExpr e1,
                                   ConvertibleExpr e2)
                             throws ParseException
ParseException

parseAttributeValueTemplate

public static StringExpr parseAttributeValueTemplate(Node node,
                                                     java.lang.String value,
                                                     VariableSet locals)
                                              throws XSLException
XSLException

getChildrenExpr

public static NodeSetExpr getChildrenExpr()

parsePattern

public static TopLevelPattern parsePattern(Node node,
                                           java.lang.String pattern)
                                    throws XSLException
XSLException

parsePattern

public static TopLevelPattern parsePattern(Node node,
                                           java.lang.String pattern,
                                           VariableSet locals)
                                    throws XSLException
XSLException

functionAvailable

static boolean functionAvailable(Name name,
                                 ExprContext context)
                          throws XSLException
XSLException

next

void next()
    throws ParseException
ParseException