org.apache.jackrabbit.spi.commons.query.xpath
Class XPathTokenManager

java.lang.Object
  extended by org.apache.jackrabbit.spi.commons.query.xpath.XPathTokenManager
All Implemented Interfaces:
XPathConstants

public class XPathTokenManager
extends Object
implements XPathConstants

Token Manager.


Field Summary
protected  char curChar
           
 PrintStream debugStream
          Debug output.
protected  SimpleCharStream input_stream
           
static int[] jjnewLexState
          Lex State array.
static String[] jjstrLiteralImages
          Token literal values.
static String[] lexStateNames
          Lexer state names.
 
Fields inherited from interface org.apache.jackrabbit.spi.commons.query.xpath.XPathConstants
And, AnyName, APOS_ATTRIBUTE_CONTENT, AposAttrContentChar, As, Ascending, AssignEquals, At, AtStringLiteral, AttributeLbrace, AttributeQNameLbrace, AttributeType, AttributeTypeForKindTest, AtWord, AxisAncestor, AxisAncestorOrSelf, AxisAttribute, AxisChild, AxisDescendant, AxisDescendantOrSelf, AxisFollowing, AxisFollowingSibling, AxisParent, AxisPreceding, AxisPrecedingSibling, AxisSelf, BaseChar, Case, Castable, CastAs, CDATA_SECTION, CDataSectionChar, CdataSectionEnd, CdataSectionStart, CdataSectionStartForElementContent, Char, CharRef, CloseApos, CLOSEKINDTEST, CloseQuot, Collation, ColonEquals, CombiningChar, Comma, CommaForKindTest, Comment, CommentContent, CommentContentChar, CommentContentCharDash, CommentContents, CommentEnd, CommentLbrace, CommentLpar, CommentLparForKindTest, CommentStart, DecimalLiteral, DeclareBaseURI, DeclareCollation, DeclareConstruction, DeclareDefaultElement, DeclareDefaultFunction, DeclareDefaultOrderingEmpty, DeclareInheritNamespaces, DeclareNamespace, DeclareOrdering, DeclareXMLSpace, Default, DEFAULT, DefaultElement, DefineFunction, DefineVariable, Descending, Digit, Digits, Div, DocumentLbrace, DocumentLpar, DocumentLparForKindTest, Dot, DotDot, DoubleLiteral, ELEMENT_CONTENT, ElementContentChar, ElementLbrace, ElementQNameLbrace, ElementType, ElementTypeForDocumentTest, ElementTypeForKindTest, Else, EmptyGreatest, EmptyLeast, EmptyTagClose, EmptyTok, END_TAG, EndTagClose, EndTagOpen, EOF, Equals, EscapeApos, EscapeQuot, Every, Except, EXPR_COMMENT, EXT_CONTENT, EXT_KEY, EXT_NAME, Extender, Extension, ExtensionContentChar, ExtensionContents, ExtensionEnd, ExtensionQName, ExtensionStart, External, FortranEq, FortranGe, FortranGt, FortranLe, FortranLt, FortranNe, ForVariable, Gt, GtEquals, GtGt, HexDigits, Ideographic, Idiv, IfLpar, ImportModuleToken, ImportSchemaToken, In, Instanceof, IntegerLiteral, Intersect, Is, Item, ITEMTYPE, KINDTEST, KINDTESTFORPI, Lbrace, LbraceExprEnclosure, Lbrack, LCurlyBraceEscape, Letter, LetVariable, LocalPart, Lpar, Lt, LtEquals, LtLt, Minus, Mod, ModuleNamespace, MUExtension, Multiply, Namespace, NAMESPACEDECL, NAMESPACEKEYWORD, NCName, NCNameColonStar, NCNameForPI, NCNameForPrefix, Nillable, Nmchar, Nmstart, No, NodeLpar, NodeLparForKindTest, NotEquals, NotNumber, NotOccurrenceIndicator, NotOperatorKeyword, OCCURRENCEINDICATOR, OccurrenceOneOrMore, OccurrenceZeroOrMore, OccurrenceZeroOrOne, OpenApos, OpenQuot, OPERATOR, Or, OrderBy, OrderByStable, Ordered, OrderedOpen, PIContentChar, PILbrace, PINCNameLbrace, PITarget, Plus, Pragma, PragmaKeyword, PredefinedEntityRef, Prefix, PROCESSING_INSTRUCTION, PROCESSING_INSTRUCTION_CONTENT, ProcessingInstructionEnd, ProcessingInstructionLpar, ProcessingInstructionLparForKindTest, ProcessingInstructionStart, ProcessingInstructionStartForElementContent, QName, QNameForAtomicType, QNameForItemType, QNameForSequenceType, QNameLpar, QuerySeparator, QUOT_ATTRIBUTE_CONTENT, QuotAttrContentChar, Rbrace, Rbrack, RCurlyBraceEscape, Return, Root, RootDescendants, Rpar, RparAs, RparForKindTest, S, Satisfies, SchemaAttributeType, SchemaAttributeTypeForKindTest, SchemaElementType, SchemaElementTypeForDocumentTest, SchemaElementTypeForKindTest, SchemaModeForDeclareConstruction, SemiColon, SForExt, SForPI, SINGLETYPE, skip_, Slash, SlashSlash, Some, Star, StarColonNCName, START_TAG, StartTagClose, StartTagOpen, StartTagOpenRoot, StringLiteral, StringLiteralForKindTest, StringLiteralForVersion, TagQName, TextLbrace, TextLpar, TextLparForKindTest, Then, To, tokenImage, TreatAs, TypeswitchLpar, UnaryMinus, UnaryPlus, Union, Unordered, UnorderedOpen, URLLiteral, ValidateLbrace, ValidateSchemaMode, ValidationMode, ValueIndicator, VariableIndicator, VarName, VARNAME, Vbar, Where, WhitespaceChar, XML_COMMENT, XmlCommentEnd, XmlCommentStart, XmlCommentStartForElementContent, XMLSPACE_DECL, XMLSpacePreserve, XMLSpaceStrip, XQueryEncoding, XQueryVersion, XQUERYVERSION, Yes
 
Constructor Summary
XPathTokenManager(SimpleCharStream stream)
          Constructor.
XPathTokenManager(SimpleCharStream stream, int lexState)
          Constructor.
 
Method Summary
 Token getNextToken()
          Get the next Token.
protected  Token jjFillToken()
           
 void printLinePos()
          Print the current line position.
 void ReInit(SimpleCharStream stream)
          Reinitialise parser.
 void ReInit(SimpleCharStream stream, int lexState)
          Reinitialise parser.
 void setDebugStream(PrintStream ds)
          Set debug output.
 void SwitchTo(int lexState)
          Switch to specified lex state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debugStream

public PrintStream debugStream
Debug output.


jjstrLiteralImages

public static final String[] jjstrLiteralImages
Token literal values.


lexStateNames

public static final String[] lexStateNames
Lexer state names.


jjnewLexState

public static final int[] jjnewLexState
Lex State array.


input_stream

protected SimpleCharStream input_stream

curChar

protected char curChar
Constructor Detail

XPathTokenManager

public XPathTokenManager(SimpleCharStream stream)
Constructor.


XPathTokenManager

public XPathTokenManager(SimpleCharStream stream,
                         int lexState)
Constructor.

Method Detail

printLinePos

public void printLinePos()
Print the current line position.


setDebugStream

public void setDebugStream(PrintStream ds)
Set debug output.


ReInit

public void ReInit(SimpleCharStream stream)
Reinitialise parser.


ReInit

public void ReInit(SimpleCharStream stream,
                   int lexState)
Reinitialise parser.


SwitchTo

public void SwitchTo(int lexState)
Switch to specified lex state.


jjFillToken

protected Token jjFillToken()

getNextToken

public Token getNextToken()
Get the next Token.



Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.