Java Doc for XQParser.java in  » Scripting » Kawa » gnu » xquery » lang » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Scripting » Kawa » gnu.xquery.lang 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


gnu.text.Lexer
   gnu.xquery.lang.XQParser

XQParser
public class XQParser extends Lexer (Code)
A class to read xquery forms.


Field Summary
final static  intARROW_TOKEN
    
final static  intATTRIBUTE_TOKEN
    
final static  intAXIS_ANCESTOR
    
final static  intAXIS_ANCESTOR_OR_SELF
    
final static  intAXIS_ATTRIBUTE
    
final static  intAXIS_CHILD
    
final static  intAXIS_DESCENDANT
    
final static  intAXIS_DESCENDANT_OR_SELF
    
final static  intAXIS_FOLLOWING
    
final static  intAXIS_FOLLOWING_SIBLING
    
final static  intAXIS_NAMESPACE
    
final static  intAXIS_PARENT
    
final static  intAXIS_PRECEDING
    
final static  intAXIS_PRECEDING_SIBLING
    
final static  intAXIS_SELF
    
final static  intCASE_DOLLAR_TOKEN
    
final static  intCOLON_COLON_TOKEN
    
final static  intCOLON_EQUAL_TOKEN
    
final static  intCOMMENT_TOKEN
    
final static  intCOUNT_OP_AXIS
    
final static  charDECIMAL_TOKEN
    
final static  intDECLARE_BASE_URI_TOKEN
    
final static  intDECLARE_BOUNDARY_SPACE_TOKEN
    
final static  intDECLARE_CONSTRUCTION_TOKEN
    
final static  intDECLARE_COPY_NAMESPACES_TOKEN
    
final static  intDECLARE_FUNCTION_TOKEN
    
final static  intDECLARE_NAMESPACE_TOKEN
    
final static  intDECLARE_OPTION_TOKEN
    
final static  intDECLARE_ORDERING_TOKEN
    
final static  intDECLARE_VARIABLE_TOKEN
    
final static  intDEFAULT_COLLATION_TOKEN
    
final static  intDEFAULT_ELEMENT_TOKEN
    
final static  intDEFAULT_FUNCTION_TOKEN
    
final static  intDEFAULT_ORDER_TOKEN
    
final static  intDEFINE_QNAME_TOKEN
    
final static  intDOCUMENT_TOKEN
    
final static  intDOTDOT_TOKEN
    
final static  SymbolDOT_VARNAME
     The internal name of the variable containing '.', the context node.
final static  charDOUBLE_TOKEN
    
final static  intELEMENT_TOKEN
    
final static  intEOF_TOKEN
    
final static  intEOL_TOKEN
    
final static  intEVERY_DOLLAR_TOKEN
    
final static  intFNAME_TOKEN
    
final static  intFOR_DOLLAR_TOKEN
    
final static  intIF_LPAREN_TOKEN
    
final static  intIMPORT_MODULE_TOKEN
    
final static  intIMPORT_SCHEMA_TOKEN
    
final static  charINTEGER_TOKEN
    
final static  SymbolLAST_VARNAME
     The pseduo-function last() is mapped to a reference to this variable.
final static  intLET_DOLLAR_TOKEN
    
final static  intMODULE_NAMESPACE_TOKEN
    
final static  intNCNAME_COLON_TOKEN
     A non-qualified (simple) name (NCName) followed by a colon. The colon is not followed by another NCNAME (in which it would be a QNAME_TOKEN instead). The tokenBuffer contains the name (which does not contain the ':').
final static  intNCNAME_TOKEN
     A non-qualified (simple) name (NCName). The tokenBuffer contains the name (which does not contain a ':').
final static  intOP_ADD
    
final static  intOP_AND
    
final static  intOP_ATTRIBUTE
    
final static  intOP_AXIS_FIRST
    
final static  intOP_BASE
    
final static  intOP_CASTABLE_AS
    
final static  intOP_CAST_AS
    
final static  intOP_COMMENT
    
final static  intOP_DIV
    
final static  intOP_DOCUMENT
    
final static  intOP_ELEMENT
    
final static  intOP_EMPTY_SEQUENCE
    
final static  intOP_EQ
    
final static  intOP_EQU
    
final static  intOP_EXCEPT
    
final static  intOP_GE
    
final static  intOP_GEQ
    
final static  intOP_GRT
    
final static  intOP_GRTGRT
    
final static  intOP_GT
    
final static  intOP_IDIV
    
final static  intOP_INSTANCEOF
    
final static  intOP_INTERSECT
    
final static  intOP_IS
    
final static  intOP_ISNOT
    
final static  intOP_ITEM
    
final static  intOP_LE
    
final static  intOP_LEQ
    
final static  intOP_LSS
    
final static  intOP_LSSLSS
    
final static  intOP_LT
    
final static  intOP_MOD
    
final static  intOP_MUL
    
final static  intOP_NE
    
final static  intOP_NEQ
    
final static  intOP_NODE
    
final static  intOP_OR
    
final static  intOP_PI
    
final static  intOP_RANGE_TO
    
final static  intOP_SCHEMA_ATTRIBUTE
    
final static  intOP_SCHEMA_ELEMENT
    
final static  intOP_SUB
    
final static  intOP_TEXT
    
final static  intOP_TREAT_AS
    
final static  intOP_UNION
    
final static  intOP_WHERE
    
final static  intORDERED_LBRACE_TOKEN
    
final static  intPI_TOKEN
    
final static  SymbolPOSITION_VARNAME
     The pseduo-function position() is mapped to a reference.
final static  intPRAGMA_START_TOKEN
    
final static  intQNAME_TOKEN
     A Qualified name (QName). The tokenBuffer contains the full name, which contains one ':'.
final static  intSLASHSLASH_TOKEN
    
final static  intSOME_DOLLAR_TOKEN
    
final static  intSTRING_TOKEN
    
final static  intTEXT_TOKEN
    
final static  intTYPESWITCH_LPAREN_TOKEN
    
final static  intUNORDERED_LBRACE_TOKEN
    
final static  intVALIDATE_LBRACE_TOKEN
    
final static  intXQUERY_VERSION_TOKEN
    
final public static  String[]axisNames
    
 PathbaseURI
    
 booleanbaseURIDeclarationSeen
    
 booleanboundarySpaceDeclarationSeen
    
 booleanboundarySpacePreserve
    
static  NamespaceBindingbuiltinNamespaces
    
final public static  CastableAscastableAs
    
 intcommentCount
    
 Compilationcomp
    
 booleanconstructionModeDeclarationSeen
     True if a construction mode declaration has been seen.
 booleanconstructionModeStrip
     The static construction mode.
 NamespaceBindingconstructorNamespaces
     Chain of namespace bindings from namespace declaration attributes in outer direct element constructors.
 booleancopyNamespacesDeclarationSeen
     True if we've seen a 'copy-namespaces' declaration'.
 intcopyNamespacesMode
    
 intcurColumn
     Value of getColumnNumber() at start of current token. Sometimes set otherwise, to report errors.
 intcurLine
     Value of getLineNumber() at start of current token. Sometimes set otherwise, to report errors.
 intcurToken
    
 ObjectcurValue
    
 NamedCollatordefaultCollator
    
 StringdefaultElementNamespace
    
 chardefaultEmptyOrder
     The default order for empty sequences.
 booleanemptyOrderDeclarationSeen
    
 intenclosedExpressionsSeen
     Count of enclosed expressions seen in element or attribute content.
 StringerrorIfComment
     An error message if comments are disallowed.
 Declaration[]flworDecls
     Stack of currently active for/let Declarations.
 intflworDeclsCount
    
 intflworDeclsFirst
    
public  Namespace[]functionNamespacePath
    
final public static  QuoteExpgetExternalFunction
    
final public static  gnu.kawa.reflect.InstanceOfinstanceOf
    
 XQueryinterpreter
    
 NameLookuplexical
    
 StringlibraryModuleNamespace
    
final static  ExpressionmakeCDATA
    
public static  QuoteExpmakeChildAxisStep
    
public static  QuoteExpmakeDescendantAxisStep
    
static  ExpressionmakeText
    
 booleanorderingModeSeen
    
 booleanorderingModeUnordered
    
 intparseContext
     Normally null. 'C' means parsing the type of a 'cast as' or 'castable as'.
 intparseCount
    
 NamespaceBindingprologNamespaces
     Chain of namespace bindings from declarations in prolog, followed by the builtinNamespaces.
 booleanseenDeclaration
     True if we've seen a VarDecl, FunctionDecl, or OptionDecl.
 intseenLast
    
 intseenPosition
    
final public static  ConverttreatAs
    
public static  booleanwarnHidePreviousDeclaration
    
public static  booleanwarnOldVersion
    

Constructor Summary
public  XQParser(InPort port, SourceMessages messages, XQuery interp)
    

Method Summary
public  voidappendNamedEntity(String name)
    
public static  ExpressionbooleanValue(Expression exp)
     Coerce the value of an expresison to a boolean value.
static  ApplyExpcastQName(Expression value)
     Generate code to cast argument to a QName (which is implemented using Symbol).
 voidcheckAllowedNamespaceDeclaration(String prefix, String uri, boolean inConstructor)
    
 voidcheckSeparator(char ch)
    
public  ExpressiondeclError(String message)
    
public  voideofError(String msg)
    
public  voiderror(char severity, String message, String code)
    
public  voiderror(char severity, String message)
    
public  voidfatal(String msg, String code)
    
static  PathfixupStaticBaseUri(Path path)
    
 intgetAxis()
    
public  voidgetDelimited(String delimiter)
     Scan until a given delimiter.
 intgetRawToken()
    
public  StringgetStaticBaseUri()
    
public  voidhandleOption(Symbol name, String value)
    
static  ExpressionmakeBinary(Expression func, Expression exp1, Expression exp2)
    
 ExpressionmakeBinary(int op, Expression exp1, Expression exp2)
    
static  ExpressionmakeExprSequence(Expression exp1, Expression exp2)
    
public static  ExpressionmakeFunctionExp(String className, String name)
    
public static  ExpressionmakeFunctionExp(String className, String fieldName, String name)
    
static  ExpressionmakeNamedNodeType(boolean attribute, Expression qname)
    
public  voidmark()
    
 booleanmatch(String word1, String word2, boolean force)
    
public  booleanmatch(String word)
    
public  voidmaybeSetLine(Expression exp, int line, int column)
    
public  voidmaybeSetLine(Declaration decl, int line, int column)
    
protected  SymbolnamespaceResolve(String name, boolean function)
    
public  Expressionparse(Compilation comp)
     Parse an expression. Return null on EOF.
 ExpressionparseBinaryExpr(int prio)
    
 voidparseContent(char delimiter, Vector result)
     Parse ElementContent (delimiter == '<') or AttributeContent (otherwise).
public  ExpressionparseDataType()
    
 ExpressionparseElementConstructor()
     Parse ElementConstructor. Assume initial '<' has been processed, and we're looking at the next token.. Reads through end of the end tag.
 ExpressionparseEnclosedExpr()
     Parse an EnclosedExpr.
 voidparseEntityOrCharRef()
    
 ExpressionparseExpr()
    
 ExpressionparseExprSequence(int rightToken, boolean optional)
    
final  ExpressionparseExprSingle()
    
public  ExpressionparseFLWRExpression(boolean isFor)
    
public  ExpressionparseFLWRInner(boolean isFor)
     Parse a let- or a for-expression. Assume the 'let'/'for'-token has been seen, and we've read '$'. If we see the 'order' keyword of an 'order by' clause then we stop parsing, and return a result as if we instead saw a 'return make-tuple($x, ...)'.
public  ExpressionparseFunctionDefinition(int declLine, int declColumn)
    
public  ExpressionparseIfExpr()
    
 ExpressionparseIntersectExceptExpr()
    
public  ExpressionparseItemType()
    
public  ExpressionparseMaybeKindTest()
    
 ExpressionparseMaybePrimaryExpr()
     Try to parse a PrimaryExpr.
 ExpressionparseNameTest(boolean attribute)
     Returns an expression that evaluates to a Symbol. The expression will normally be constant folded to a Symbol, but we cannot do that yet.
public  ExpressionparseNamedNodeType(boolean attribute)
    
 ExpressionparseNodeTest(int axis)
    
public  ExpressionparseOptionalTypeDeclaration()
    
 ExpressionparseParenExpr()
     Parse ParenthesizedExpr.
 ExpressionparsePathExpr()
    
 ExpressionparsePrimaryExpr()
     Parse a PrimaryExpr.
public  ExpressionparseQuantifiedExpr(boolean isEvery)
     Parse a some- or an every-expression. Assume the 'some'/'every'-token has been seen, and we've read '$'.
 ExpressionparseRelativePathExpr(Expression exp)
    
 voidparseSeparator()
    
 ExpressionparseStepExpr()
    
 ExpressionparseStepQualifiers(Expression exp, int axis)
    
 ExpressionparseTypeSwitch()
    
 ObjectparseURILiteral()
     Parse a URILiteral..
 ExpressionparseUnaryExpr()
    
 ExpressionparseUnionExpr()
    
public  ObjectparseVariable()
     Parse a Variable.
public  DeclarationparseVariableDeclaration()
    
 ExpressionparseXMLConstructor(int next, boolean inElementContent)
     Parse an ElementConstructor or other constructs starting with '<'.
final  intpeekNonSpace(String message)
     Do skipSpace followed by unread to find next non-space character.
 intpeekOperand()
     Process token, assuming we are in operand context.
 intpeekOperator()
     Return the current token, assuming it is in operator context.
 voidpushNamespace(String prefix, String uri)
    
public  ObjectreadObject()
    
public  voidreset()
    
public  StringresolveAgainstBaseUri(String uri)
    
public  voidsetInteractive(boolean v)
    
public  voidsetStaticBaseUri(String uri)
    
final  voidskipComment()
    
final  voidskipOldComment()
    
final  intskipSpace()
     Skip whitespace. Sets 'index' to the that of the next non-whitespace character, and returns that.
final  intskipSpace(boolean verticalToo)
    
final  voidskipToSemicolon()
    
public  ExpressionsyntaxError(String message, String code)
     Handle syntax errors (at rewrite time).
public  ExpressionsyntaxError(String message)
    
 StringtokenString()
     Helper method for debugging.
 voidwarnOldVersion(String message)
    
 ExpressionwrapWithBaseUri(Expression exp)
    

Field Detail
ARROW_TOKEN
final static int ARROW_TOKEN(Code)



ATTRIBUTE_TOKEN
final static int ATTRIBUTE_TOKEN(Code)



AXIS_ANCESTOR
final static int AXIS_ANCESTOR(Code)



AXIS_ANCESTOR_OR_SELF
final static int AXIS_ANCESTOR_OR_SELF(Code)



AXIS_ATTRIBUTE
final static int AXIS_ATTRIBUTE(Code)



AXIS_CHILD
final static int AXIS_CHILD(Code)



AXIS_DESCENDANT
final static int AXIS_DESCENDANT(Code)



AXIS_DESCENDANT_OR_SELF
final static int AXIS_DESCENDANT_OR_SELF(Code)



AXIS_FOLLOWING
final static int AXIS_FOLLOWING(Code)



AXIS_FOLLOWING_SIBLING
final static int AXIS_FOLLOWING_SIBLING(Code)



AXIS_NAMESPACE
final static int AXIS_NAMESPACE(Code)



AXIS_PARENT
final static int AXIS_PARENT(Code)



AXIS_PRECEDING
final static int AXIS_PRECEDING(Code)



AXIS_PRECEDING_SIBLING
final static int AXIS_PRECEDING_SIBLING(Code)



AXIS_SELF
final static int AXIS_SELF(Code)



CASE_DOLLAR_TOKEN
final static int CASE_DOLLAR_TOKEN(Code)



COLON_COLON_TOKEN
final static int COLON_COLON_TOKEN(Code)



COLON_EQUAL_TOKEN
final static int COLON_EQUAL_TOKEN(Code)



COMMENT_TOKEN
final static int COMMENT_TOKEN(Code)



COUNT_OP_AXIS
final static int COUNT_OP_AXIS(Code)



DECIMAL_TOKEN
final static char DECIMAL_TOKEN(Code)



DECLARE_BASE_URI_TOKEN
final static int DECLARE_BASE_URI_TOKEN(Code)



DECLARE_BOUNDARY_SPACE_TOKEN
final static int DECLARE_BOUNDARY_SPACE_TOKEN(Code)



DECLARE_CONSTRUCTION_TOKEN
final static int DECLARE_CONSTRUCTION_TOKEN(Code)



DECLARE_COPY_NAMESPACES_TOKEN
final static int DECLARE_COPY_NAMESPACES_TOKEN(Code)



DECLARE_FUNCTION_TOKEN
final static int DECLARE_FUNCTION_TOKEN(Code)



DECLARE_NAMESPACE_TOKEN
final static int DECLARE_NAMESPACE_TOKEN(Code)



DECLARE_OPTION_TOKEN
final static int DECLARE_OPTION_TOKEN(Code)



DECLARE_ORDERING_TOKEN
final static int DECLARE_ORDERING_TOKEN(Code)



DECLARE_VARIABLE_TOKEN
final static int DECLARE_VARIABLE_TOKEN(Code)



DEFAULT_COLLATION_TOKEN
final static int DEFAULT_COLLATION_TOKEN(Code)



DEFAULT_ELEMENT_TOKEN
final static int DEFAULT_ELEMENT_TOKEN(Code)



DEFAULT_FUNCTION_TOKEN
final static int DEFAULT_FUNCTION_TOKEN(Code)



DEFAULT_ORDER_TOKEN
final static int DEFAULT_ORDER_TOKEN(Code)



DEFINE_QNAME_TOKEN
final static int DEFINE_QNAME_TOKEN(Code)



DOCUMENT_TOKEN
final static int DOCUMENT_TOKEN(Code)



DOTDOT_TOKEN
final static int DOTDOT_TOKEN(Code)



DOT_VARNAME
final static Symbol DOT_VARNAME(Code)
The internal name of the variable containing '.', the context node.



DOUBLE_TOKEN
final static char DOUBLE_TOKEN(Code)



ELEMENT_TOKEN
final static int ELEMENT_TOKEN(Code)



EOF_TOKEN
final static int EOF_TOKEN(Code)



EOL_TOKEN
final static int EOL_TOKEN(Code)



EVERY_DOLLAR_TOKEN
final static int EVERY_DOLLAR_TOKEN(Code)



FNAME_TOKEN
final static int FNAME_TOKEN(Code)



FOR_DOLLAR_TOKEN
final static int FOR_DOLLAR_TOKEN(Code)



IF_LPAREN_TOKEN
final static int IF_LPAREN_TOKEN(Code)



IMPORT_MODULE_TOKEN
final static int IMPORT_MODULE_TOKEN(Code)



IMPORT_SCHEMA_TOKEN
final static int IMPORT_SCHEMA_TOKEN(Code)



INTEGER_TOKEN
final static char INTEGER_TOKEN(Code)



LAST_VARNAME
final static Symbol LAST_VARNAME(Code)
The pseduo-function last() is mapped to a reference to this variable.



LET_DOLLAR_TOKEN
final static int LET_DOLLAR_TOKEN(Code)



MODULE_NAMESPACE_TOKEN
final static int MODULE_NAMESPACE_TOKEN(Code)



NCNAME_COLON_TOKEN
final static int NCNAME_COLON_TOKEN(Code)
A non-qualified (simple) name (NCName) followed by a colon. The colon is not followed by another NCNAME (in which it would be a QNAME_TOKEN instead). The tokenBuffer contains the name (which does not contain the ':').



NCNAME_TOKEN
final static int NCNAME_TOKEN(Code)
A non-qualified (simple) name (NCName). The tokenBuffer contains the name (which does not contain a ':').



OP_ADD
final static int OP_ADD(Code)



OP_AND
final static int OP_AND(Code)



OP_ATTRIBUTE
final static int OP_ATTRIBUTE(Code)



OP_AXIS_FIRST
final static int OP_AXIS_FIRST(Code)



OP_BASE
final static int OP_BASE(Code)



OP_CASTABLE_AS
final static int OP_CASTABLE_AS(Code)



OP_CAST_AS
final static int OP_CAST_AS(Code)



OP_COMMENT
final static int OP_COMMENT(Code)



OP_DIV
final static int OP_DIV(Code)



OP_DOCUMENT
final static int OP_DOCUMENT(Code)



OP_ELEMENT
final static int OP_ELEMENT(Code)



OP_EMPTY_SEQUENCE
final static int OP_EMPTY_SEQUENCE(Code)



OP_EQ
final static int OP_EQ(Code)



OP_EQU
final static int OP_EQU(Code)



OP_EXCEPT
final static int OP_EXCEPT(Code)



OP_GE
final static int OP_GE(Code)



OP_GEQ
final static int OP_GEQ(Code)



OP_GRT
final static int OP_GRT(Code)



OP_GRTGRT
final static int OP_GRTGRT(Code)



OP_GT
final static int OP_GT(Code)



OP_IDIV
final static int OP_IDIV(Code)



OP_INSTANCEOF
final static int OP_INSTANCEOF(Code)



OP_INTERSECT
final static int OP_INTERSECT(Code)



OP_IS
final static int OP_IS(Code)



OP_ISNOT
final static int OP_ISNOT(Code)



OP_ITEM
final static int OP_ITEM(Code)



OP_LE
final static int OP_LE(Code)



OP_LEQ
final static int OP_LEQ(Code)



OP_LSS
final static int OP_LSS(Code)



OP_LSSLSS
final static int OP_LSSLSS(Code)



OP_LT
final static int OP_LT(Code)



OP_MOD
final static int OP_MOD(Code)



OP_MUL
final static int OP_MUL(Code)



OP_NE
final static int OP_NE(Code)



OP_NEQ
final static int OP_NEQ(Code)



OP_NODE
final static int OP_NODE(Code)



OP_OR
final static int OP_OR(Code)



OP_PI
final static int OP_PI(Code)



OP_RANGE_TO
final static int OP_RANGE_TO(Code)



OP_SCHEMA_ATTRIBUTE
final static int OP_SCHEMA_ATTRIBUTE(Code)



OP_SCHEMA_ELEMENT
final static int OP_SCHEMA_ELEMENT(Code)



OP_SUB
final static int OP_SUB(Code)



OP_TEXT
final static int OP_TEXT(Code)



OP_TREAT_AS
final static int OP_TREAT_AS(Code)



OP_UNION
final static int OP_UNION(Code)



OP_WHERE
final static int OP_WHERE(Code)



ORDERED_LBRACE_TOKEN
final static int ORDERED_LBRACE_TOKEN(Code)



PI_TOKEN
final static int PI_TOKEN(Code)



POSITION_VARNAME
final static Symbol POSITION_VARNAME(Code)
The pseduo-function position() is mapped to a reference.



PRAGMA_START_TOKEN
final static int PRAGMA_START_TOKEN(Code)



QNAME_TOKEN
final static int QNAME_TOKEN(Code)
A Qualified name (QName). The tokenBuffer contains the full name, which contains one ':'.



SLASHSLASH_TOKEN
final static int SLASHSLASH_TOKEN(Code)



SOME_DOLLAR_TOKEN
final static int SOME_DOLLAR_TOKEN(Code)



STRING_TOKEN
final static int STRING_TOKEN(Code)



TEXT_TOKEN
final static int TEXT_TOKEN(Code)



TYPESWITCH_LPAREN_TOKEN
final static int TYPESWITCH_LPAREN_TOKEN(Code)



UNORDERED_LBRACE_TOKEN
final static int UNORDERED_LBRACE_TOKEN(Code)



VALIDATE_LBRACE_TOKEN
final static int VALIDATE_LBRACE_TOKEN(Code)



XQUERY_VERSION_TOKEN
final static int XQUERY_VERSION_TOKEN(Code)



axisNames
final public static String[] axisNames(Code)



baseURI
Path baseURI(Code)



baseURIDeclarationSeen
boolean baseURIDeclarationSeen(Code)



boundarySpaceDeclarationSeen
boolean boundarySpaceDeclarationSeen(Code)



boundarySpacePreserve
boolean boundarySpacePreserve(Code)



builtinNamespaces
static NamespaceBinding builtinNamespaces(Code)



castableAs
final public static CastableAs castableAs(Code)



commentCount
int commentCount(Code)



comp
Compilation comp(Code)



constructionModeDeclarationSeen
boolean constructionModeDeclarationSeen(Code)
True if a construction mode declaration has been seen.



constructionModeStrip
boolean constructionModeStrip(Code)
The static construction mode. True if "strip"; false if "preserve".



constructorNamespaces
NamespaceBinding constructorNamespaces(Code)
Chain of namespace bindings from namespace declaration attributes in outer direct element constructors. This is only non-empty during resolve time, but it is declared here so namespaceResolve can use it.



copyNamespacesDeclarationSeen
boolean copyNamespacesDeclarationSeen(Code)
True if we've seen a 'copy-namespaces' declaration'.



copyNamespacesMode
int copyNamespacesMode(Code)



curColumn
int curColumn(Code)
Value of getColumnNumber() at start of current token. Sometimes set otherwise, to report errors.



curLine
int curLine(Code)
Value of getLineNumber() at start of current token. Sometimes set otherwise, to report errors.



curToken
int curToken(Code)



curValue
Object curValue(Code)



defaultCollator
NamedCollator defaultCollator(Code)



defaultElementNamespace
String defaultElementNamespace(Code)



defaultEmptyOrder
char defaultEmptyOrder(Code)
The default order for empty sequences. Either 'L' (for "least") or 'G' (for "greatest").



emptyOrderDeclarationSeen
boolean emptyOrderDeclarationSeen(Code)



enclosedExpressionsSeen
int enclosedExpressionsSeen(Code)
Count of enclosed expressions seen in element or attribute content.



errorIfComment
String errorIfComment(Code)
An error message if comments are disallowed. Normally null.



flworDecls
Declaration[] flworDecls(Code)
Stack of currently active for/let Declarations.



flworDeclsCount
int flworDeclsCount(Code)



flworDeclsFirst
int flworDeclsFirst(Code)



functionNamespacePath
public Namespace[] functionNamespacePath(Code)



getExternalFunction
final public static QuoteExp getExternalFunction(Code)



instanceOf
final public static gnu.kawa.reflect.InstanceOf instanceOf(Code)



interpreter
XQuery interpreter(Code)



lexical
NameLookup lexical(Code)



libraryModuleNamespace
String libraryModuleNamespace(Code)



makeCDATA
final static Expression makeCDATA(Code)



makeChildAxisStep
public static QuoteExp makeChildAxisStep(Code)



makeDescendantAxisStep
public static QuoteExp makeDescendantAxisStep(Code)



makeText
static Expression makeText(Code)



orderingModeSeen
boolean orderingModeSeen(Code)



orderingModeUnordered
boolean orderingModeUnordered(Code)



parseContext
int parseContext(Code)
Normally null. 'C' means parsing the type of a 'cast as' or 'castable as'.



parseCount
int parseCount(Code)



prologNamespaces
NamespaceBinding prologNamespaces(Code)
Chain of namespace bindings from declarations in prolog, followed by the builtinNamespaces.



seenDeclaration
boolean seenDeclaration(Code)
True if we've seen a VarDecl, FunctionDecl, or OptionDecl.



seenLast
int seenLast(Code)



seenPosition
int seenPosition(Code)



treatAs
final public static Convert treatAs(Code)



warnHidePreviousDeclaration
public static boolean warnHidePreviousDeclaration(Code)



warnOldVersion
public static boolean warnOldVersion(Code)




Constructor Detail
XQParser
public XQParser(InPort port, SourceMessages messages, XQuery interp)(Code)




Method Detail
appendNamedEntity
public void appendNamedEntity(String name)(Code)



booleanValue
public static Expression booleanValue(Expression exp)(Code)
Coerce the value of an expresison to a boolean value.



castQName
static ApplyExp castQName(Expression value)(Code)
Generate code to cast argument to a QName (which is implemented using Symbol).



checkAllowedNamespaceDeclaration
void checkAllowedNamespaceDeclaration(String prefix, String uri, boolean inConstructor)(Code)



checkSeparator
void checkSeparator(char ch)(Code)



declError
public Expression declError(String message) throws java.io.IOException, SyntaxException(Code)



eofError
public void eofError(String msg) throws SyntaxException(Code)



error
public void error(char severity, String message, String code)(Code)



error
public void error(char severity, String message)(Code)



fatal
public void fatal(String msg, String code) throws SyntaxException(Code)



fixupStaticBaseUri
static Path fixupStaticBaseUri(Path path)(Code)



getAxis
int getAxis()(Code)



getDelimited
public void getDelimited(String delimiter) throws java.io.IOException, SyntaxException(Code)
Scan until a given delimiter. On success, text upto the delimiter is in then tokenBuffer (with tokenBufferLength marking its length); the delimiter is not included.



getRawToken
int getRawToken() throws java.io.IOException, SyntaxException(Code)



getStaticBaseUri
public String getStaticBaseUri()(Code)



handleOption
public void handleOption(Symbol name, String value)(Code)



makeBinary
static Expression makeBinary(Expression func, Expression exp1, Expression exp2)(Code)



makeBinary
Expression makeBinary(int op, Expression exp1, Expression exp2) throws java.io.IOException, SyntaxException(Code)



makeExprSequence
static Expression makeExprSequence(Expression exp1, Expression exp2)(Code)



makeFunctionExp
public static Expression makeFunctionExp(String className, String name)(Code)



makeFunctionExp
public static Expression makeFunctionExp(String className, String fieldName, String name)(Code)



makeNamedNodeType
static Expression makeNamedNodeType(boolean attribute, Expression qname)(Code)



mark
public void mark() throws java.io.IOException(Code)



match
boolean match(String word1, String word2, boolean force) throws java.io.IOException, SyntaxException(Code)



match
public boolean match(String word)(Code)



maybeSetLine
public void maybeSetLine(Expression exp, int line, int column)(Code)



maybeSetLine
public void maybeSetLine(Declaration decl, int line, int column)(Code)



namespaceResolve
protected Symbol namespaceResolve(String name, boolean function)(Code)



parse
public Expression parse(Compilation comp) throws java.io.IOException, SyntaxException(Code)
Parse an expression. Return null on EOF.



parseBinaryExpr
Expression parseBinaryExpr(int prio) throws java.io.IOException, SyntaxException(Code)



parseContent
void parseContent(char delimiter, Vector result) throws java.io.IOException, SyntaxException(Code)
Parse ElementContent (delimiter == '<') or AttributeContent (otherwise).
Parameters:
  delimiter - is '<' if parsing ElementContent, is either '\'' or'\"' if parsing AttributeContent depending on the starting quote
Parameters:
  result - a buffer to place the resulting Expressions.



parseDataType
public Expression parseDataType() throws java.io.IOException, SyntaxException(Code)



parseElementConstructor
Expression parseElementConstructor() throws java.io.IOException, SyntaxException(Code)
Parse ElementConstructor. Assume initial '<' has been processed, and we're looking at the next token.. Reads through end of the end tag. FIXME



parseEnclosedExpr
Expression parseEnclosedExpr() throws java.io.IOException, SyntaxException(Code)
Parse an EnclosedExpr. Assume the '{' has been read.



parseEntityOrCharRef
void parseEntityOrCharRef() throws java.io.IOException, SyntaxException(Code)



parseExpr
Expression parseExpr() throws java.io.IOException, SyntaxException(Code)



parseExprSequence
Expression parseExprSequence(int rightToken, boolean optional) throws java.io.IOException, SyntaxException(Code)



parseExprSingle
final Expression parseExprSingle() throws java.io.IOException, SyntaxException(Code)



parseFLWRExpression
public Expression parseFLWRExpression(boolean isFor) throws java.io.IOException, SyntaxException(Code)



parseFLWRInner
public Expression parseFLWRInner(boolean isFor) throws java.io.IOException, SyntaxException(Code)
Parse a let- or a for-expression. Assume the 'let'/'for'-token has been seen, and we've read '$'. If we see the 'order' keyword of an 'order by' clause then we stop parsing, and return a result as if we instead saw a 'return make-tuple($x, ...)'. The 'order by' clause will get parsed by the outer-most 'for' or 'let'.



parseFunctionDefinition
public Expression parseFunctionDefinition(int declLine, int declColumn) throws java.io.IOException, SyntaxException(Code)



parseIfExpr
public Expression parseIfExpr() throws java.io.IOException, SyntaxException(Code)



parseIntersectExceptExpr
Expression parseIntersectExceptExpr() throws java.io.IOException, SyntaxException(Code)



parseItemType
public Expression parseItemType() throws java.io.IOException, SyntaxException(Code)



parseMaybeKindTest
public Expression parseMaybeKindTest() throws java.io.IOException, SyntaxException(Code)



parseMaybePrimaryExpr
Expression parseMaybePrimaryExpr() throws java.io.IOException, SyntaxException(Code)
Try to parse a PrimaryExpr. an Expression, or null if no PrimaryExpr was seen.



parseNameTest
Expression parseNameTest(boolean attribute) throws java.io.IOException, SyntaxException(Code)
Returns an expression that evaluates to a Symbol. The expression will normally be constant folded to a Symbol, but we cannot do that yet.



parseNamedNodeType
public Expression parseNamedNodeType(boolean attribute) throws java.io.IOException, SyntaxException(Code)



parseNodeTest
Expression parseNodeTest(int axis) throws java.io.IOException, SyntaxException(Code)



parseOptionalTypeDeclaration
public Expression parseOptionalTypeDeclaration() throws java.io.IOException, SyntaxException(Code)
Parse: ["as" SequenceType]



parseParenExpr
Expression parseParenExpr() throws java.io.IOException, SyntaxException(Code)
Parse ParenthesizedExpr. .When called, curToken should be pointing at a '(', or a token which ends if a '(', such as IF_LPAREN_TOKEN.



parsePathExpr
Expression parsePathExpr() throws java.io.IOException, SyntaxException(Code)



parsePrimaryExpr
Expression parsePrimaryExpr() throws java.io.IOException, SyntaxException(Code)
Parse a PrimaryExpr. an Expression.



parseQuantifiedExpr
public Expression parseQuantifiedExpr(boolean isEvery) throws java.io.IOException, SyntaxException(Code)
Parse a some- or an every-expression. Assume the 'some'/'every'-token has been seen, and we've read '$'.



parseRelativePathExpr
Expression parseRelativePathExpr(Expression exp) throws java.io.IOException, SyntaxException(Code)



parseSeparator
void parseSeparator() throws java.io.IOException, SyntaxException(Code)



parseStepExpr
Expression parseStepExpr() throws java.io.IOException, SyntaxException(Code)



parseStepQualifiers
Expression parseStepQualifiers(Expression exp, int axis) throws java.io.IOException, SyntaxException(Code)



parseTypeSwitch
Expression parseTypeSwitch() throws java.io.IOException, SyntaxException(Code)



parseURILiteral
Object parseURILiteral() throws java.io.IOException, SyntaxException(Code)
Parse a URILiteral.. either a String (on success),or an ErrorExp (after emitting an error).



parseUnaryExpr
Expression parseUnaryExpr() throws java.io.IOException, SyntaxException(Code)



parseUnionExpr
Expression parseUnionExpr() throws java.io.IOException, SyntaxException(Code)



parseVariable
public Object parseVariable() throws java.io.IOException, SyntaxException(Code)
Parse a Variable.



parseVariableDeclaration
public Declaration parseVariableDeclaration() throws java.io.IOException, SyntaxException(Code)



parseXMLConstructor
Expression parseXMLConstructor(int next, boolean inElementContent) throws java.io.IOException, SyntaxException(Code)
Parse an ElementConstructor or other constructs starting with '<'. Assume initial '<' has been processed.
Parameters:
  next - next character (after '<').



peekNonSpace
final int peekNonSpace(String message) throws java.io.IOException, SyntaxException(Code)
Do skipSpace followed by unread to find next non-space character.



peekOperand
int peekOperand() throws java.io.IOException, SyntaxException(Code)
Process token, assuming we are in operand context.



peekOperator
int peekOperator() throws java.io.IOException, SyntaxException(Code)
Return the current token, assuming it is in operator context. Resolve NCNAME_TOKEN (identifier) to 'and', 'or', 'div', etc.



pushNamespace
void pushNamespace(String prefix, String uri)(Code)



readObject
public Object readObject() throws java.io.IOException, SyntaxException(Code)



reset
public void reset() throws java.io.IOException(Code)



resolveAgainstBaseUri
public String resolveAgainstBaseUri(String uri)(Code)



setInteractive
public void setInteractive(boolean v)(Code)



setStaticBaseUri
public void setStaticBaseUri(String uri)(Code)



skipComment
final void skipComment() throws java.io.IOException, SyntaxException(Code)



skipOldComment
final void skipOldComment() throws java.io.IOException, SyntaxException(Code)



skipSpace
final int skipSpace() throws java.io.IOException, SyntaxException(Code)
Skip whitespace. Sets 'index' to the that of the next non-whitespace character, and returns that. If there are no more non-space characters, returns ' '.



skipSpace
final int skipSpace(boolean verticalToo) throws java.io.IOException, SyntaxException(Code)



skipToSemicolon
final void skipToSemicolon() throws java.io.IOException(Code)



syntaxError
public Expression syntaxError(String message, String code) throws java.io.IOException, SyntaxException(Code)
Handle syntax errors (at rewrite time).
Parameters:
  message - an error message to print out an ErrorExp



syntaxError
public Expression syntaxError(String message) throws java.io.IOException, SyntaxException(Code)



tokenString
String tokenString()(Code)
Helper method for debugging.



warnOldVersion
void warnOldVersion(String message)(Code)



wrapWithBaseUri
Expression wrapWithBaseUri(Expression exp)(Code)



Fields inherited from gnu.text.Lexer
protected boolean interactive(Code)(Java Doc)
protected int nesting(Code)(Java Doc)
protected LineBufferedReader port(Code)(Java Doc)
public char[] tokenBuffer(Code)(Java Doc)
public int tokenBufferLength(Code)(Java Doc)

Methods inherited from gnu.text.Lexer
public boolean checkErrors(PrintWriter out, int max)(Code)(Java Doc)
public boolean checkNext(char ch) throws java.io.IOException(Code)(Java Doc)
public void clearErrors()(Code)(Java Doc)
public void close() throws java.io.IOException(Code)(Java Doc)
public void eofError(String msg) throws SyntaxException(Code)(Java Doc)
public void eofError(String message, int startLine, int startColumn) throws SyntaxException(Code)(Java Doc)
public void error(char severity, String filename, int line, int column, String message)(Code)(Java Doc)
public void error(char severity, String message)(Code)(Java Doc)
public void error(String message)(Code)(Java Doc)
public void fatal(String message) throws SyntaxException(Code)(Java Doc)
public int getColumnNumber()(Code)(Java Doc)
public SourceError getErrors()(Code)(Java Doc)
public int getLineNumber()(Code)(Java Doc)
public SourceMessages getMessages()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
final public LineBufferedReader getPort()(Code)(Java Doc)
public boolean isInteractive()(Code)(Java Doc)
public void mark() throws java.io.IOException(Code)(Java Doc)
public int peek() throws java.io.IOException(Code)(Java Doc)
public void popNesting(char save)(Code)(Java Doc)
public char pushNesting(char promptChar)(Code)(Java Doc)
public int read() throws java.io.IOException(Code)(Java Doc)
public int read(char[] buf, int offset, int length) throws java.io.IOException(Code)(Java Doc)
public static long readDigitsInBuffer(LineBufferedReader port, int radix)(Code)(Java Doc)
public int readOptionalExponent() throws java.io.IOException(Code)(Java Doc)
public void reset() throws java.io.IOException(Code)(Java Doc)
public boolean seenErrors()(Code)(Java Doc)
public void setInteractive(boolean v)(Code)(Java Doc)
public void setMessages(SourceMessages messages)(Code)(Java Doc)
public void skip() throws java.io.IOException(Code)(Java Doc)
protected void skip_quick() throws java.io.IOException(Code)(Java Doc)
public void tokenBufferAppend(int ch)(Code)(Java Doc)
public void unread(int ch) throws java.io.IOException(Code)(Java Doc)
protected void unread() throws java.io.IOException(Code)(Java Doc)
protected void unread_quick() throws java.io.IOException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.