KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > xquark > xquery > parser > ParserFactoryInterface


1 /*
2  * This file belongs to the XQuark distribution.
3  * Copyright (C) 2003 Universite de Versailles Saint-Quentin.
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307.
18  * You can also get it at http://www.gnu.org/licenses/lgpl.html
19  *
20  * For more information on this software, see http://www.xquark.org.
21  */

22
23 package org.xquark.xquery.parser;
24
25 import java.util.ArrayList JavaDoc;
26 import java.util.HashMap JavaDoc;
27
28 import org.xquark.xquery.parser.hinttree.HintTree;
29 import org.xquark.xquery.typing.TypeException;
30 import org.xquark.util.NamespaceContext;
31
32 public interface ParserFactoryInterface {
33     
34     AttributeValuePair createAttributeValuePair(XQueryExpression attributeName, XQueryExpression attributeValue, boolean isXmlns, XQueryModule parentModule) throws TypeException, XQueryException;
35
36     BinOpANDExpression createBinOpANDExpression(XQueryExpression mainExpression, XQueryExpression expression, XQueryModule parentModule) throws TypeException, XQueryException;
37
38     BinOpORExpression createBinOpORExpression(XQueryExpression mainExpression, XQueryExpression expression, XQueryModule parentModule) throws TypeException, XQueryException;
39
40     CData createCData(String JavaDoc data, XQueryModule parentModule) throws TypeException, XQueryException;
41
42     CaseClauseExpression createCaseClauseExpression(SequenceType sequenceType, Variable variable, XQueryExpression returnExpression, XQueryModule parentModule) throws TypeException, XQueryException;
43
44     CastTreatExpression createCastTreatExpression(int kind, SequenceType sequenceType, XQueryExpression expression, XQueryModule parentModule) throws TypeException, XQueryException;
45
46     Document createDocument(XQueryExpression element, XQueryModule parentModule) throws TypeException, XQueryException;
47
48     Element createElement(XQueryExpression startTag, HashMap JavaDoc localPrefixes, ArrayList JavaDoc vectAttributes, ArrayList JavaDoc vectExpressions, XQueryModule parentModule) throws TypeException, XQueryException;
49
50     FLWRExpression createFLWRExpression(ArrayList JavaDoc bindings, HintTree hintClause, XQueryExpression whereClause, ArrayList JavaDoc orderbys, XQueryExpression returnClause, XQueryModule parentModule) throws TypeException, XQueryException;
51
52     FLWRExpression createFLWRExpression(ArrayList JavaDoc bindings, XQueryExpression whereClause, ArrayList JavaDoc orderbys, XQueryExpression returnClause, XQueryModule parentModule) throws TypeException, XQueryException;
53
54     FLWRExpression createFLWRExpression(ArrayList JavaDoc bindings, XQueryExpression whereClause, XQueryExpression returnClause, XQueryModule parentModule) throws TypeException, XQueryException;
55
56     FunctionDeclaration createFunctionDeclaration(QName funcName, ArrayList JavaDoc tmpVect, SequenceType sequenceType, ArrayList JavaDoc vectExpression, XQueryModule parentModule) throws TypeException, XQueryException;
57     
58     HintTree createHintTree(byte type, byte side, Object JavaDoc left, Object JavaDoc right);
59
60     ITEExpression createITEExpression(XQueryExpression expressionIf, XQueryExpression expressionThen, XQueryExpression expressionElse, XQueryModule parentModule) throws TypeException, XQueryException;
61
62     InstanceOfExpression createInstanceOfExpression(XQueryExpression expression, SequenceType sequenceType, XQueryModule parentModule) throws TypeException, XQueryException;
63
64     InternalFunctionCall createInternalFunctionCall(QName funcName, ArrayList JavaDoc argsVect, XQueryModule parentModule) throws TypeException, XQueryException;
65
66     ItemType createItemType(XQueryExpression expression, XQueryModule parentModule) throws TypeException, XQueryException;
67
68     LibraryFunctionCall createLibraryFunctionCall(QName funcName, ArrayList JavaDoc argsVect, FunctionDeclaration functionDefinition, XQueryModule parentModule) throws TypeException, XQueryException;
69
70     ListOpAFTERExpression createListOpAFTERExpression(XQueryExpression mainExpression, XQueryExpression expression, XQueryModule parentModule) throws TypeException, XQueryException;
71
72     ListOpArithExpression createListOpArithExpression(XQueryExpression mainExpression, XQueryExpression expression, int kind, XQueryModule parentModule) throws TypeException, XQueryException;
73
74     ListOpBEFOREExpression createListOpBEFOREExpression(XQueryExpression mainExpression, XQueryExpression expression, XQueryModule parentModule) throws TypeException, XQueryException;
75
76     ListOpCompExpression createListOpCompExpression(XQueryExpression mainExpression, XQueryExpression expression, int kind, XQueryModule parentModule) throws TypeException, XQueryException;
77
78     ListOpEXCEPTExpression createListOpEXCEPTExpression(XQueryExpression mainExpression, XQueryExpression expression, XQueryModule parentModule) throws TypeException, XQueryException;
79
80     ListOpINTERSECTExpression createListOpINTERSECTExpression(XQueryExpression mainExpression, XQueryExpression expression, XQueryModule parentModule) throws TypeException, XQueryException;
81
82     ListOpUNIONExpression createListOpUNIONExpression(XQueryExpression mainExpression, XQueryExpression expression, XQueryModule parentModule) throws TypeException, XQueryException;
83
84     LocatedExpression createLocatedExpression(ArrayList JavaDoc pathVect, boolean inPredicate, XQueryModule parentModule) throws TypeException, XQueryException;
85
86     ElementTest createElementTest(SchemaContextPath scp, QName elementQName, QName typeQName, boolean nillable, XQueryModule parentModule) throws TypeException, XQueryException;
87
88     AttributeTest createAttributeTest(SchemaContextPath scp, QName elementQName, QName typeQName, XQueryModule parentModule) throws TypeException, XQueryException;
89
90     NodeTest createNodeTest(byte kind, XQueryExpression arg, XQueryModule parentModule) throws TypeException, XQueryException;
91
92     QName createQName(String JavaDoc namespace, String JavaDoc prefixname, String JavaDoc typeName, XQueryModule parentModule, NamespaceContext namespaceContext) throws TypeException, XQueryException;
93
94     QuantifiedExpression createQuantifiedExpression(int kind, ArrayList JavaDoc variables, XQueryExpression expressionSat, XQueryModule parentModule) throws TypeException, XQueryException;
95
96     RangeExpression createRangeExpression(XQueryExpression expression1, XQueryExpression expression2, XQueryModule parentModule) throws TypeException, XQueryException;
97
98     SchemaContextPath createSchemaContextPath(ArrayList JavaDoc steps, XQueryModule parentModule) throws TypeException, XQueryException;
99
100     SchemaContextStep createSchemaContextStep(byte axis, XQueryExpression expression, XQueryModule parentModule) throws TypeException, XQueryException;
101
102     SequenceType createSequenceType(ItemType itemType, int occurrence, XQueryModule parentModule) throws TypeException, XQueryException;
103
104     SortedExpression createSortedExpression(XQueryExpression expression, ArrayList JavaDoc tmpVect, boolean stable, XQueryModule parentModule) throws TypeException, XQueryException;
105
106     Step createStep(boolean separator, byte axis, XQueryExpression expression, ArrayList JavaDoc predicates, XQueryModule parentModule) throws TypeException, XQueryException;
107
108     TypeSwitchExpression createTypeSwitchExpression(XQueryExpression switchExpression, HashMap JavaDoc cases, Variable defaultVariable, XQueryExpression defaultExpression, XQueryModule parentModule) throws TypeException, XQueryException;
109
110     UnOpMinusExpression createUnOpMinusExpression(XQueryExpression expression, boolean minus, XQueryModule parentModule) throws TypeException, XQueryException;
111
112     ValidateExpression createValidateExpression(int scopeType, int validationType,SchemaContextPath schemaContext, XQueryExpression validateExpression, XQueryModule parentModule) throws TypeException, XQueryException;
113
114     ValueBoolean createValueBoolean(String JavaDoc str, XQueryModule parentModule) throws TypeException, XQueryException;
115
116     ValueDecimal createValueDecimal(String JavaDoc str, XQueryModule parentModule) throws TypeException, XQueryException;
117
118     ValueDouble createValueDouble(String JavaDoc str, XQueryModule parentModule) throws TypeException, XQueryException;
119
120     ValueInteger createValueInteger(String JavaDoc str, XQueryModule parentModule) throws TypeException, XQueryException;
121
122     ValueString createValueString(String JavaDoc str, XQueryModule parentModule) throws TypeException, XQueryException;
123
124     ValueText createValueText(String JavaDoc str, XQueryModule parentModule) throws TypeException, XQueryException;
125
126     ExternalVariable createExternalVariable(Variable var, XQueryModule parentModule) throws TypeException, XQueryException;
127
128     Variable createVariable(QName var, XQueryModule parentModule) throws TypeException, XQueryException;
129
130     XMLComment createXMLComment(XQueryExpression value, XQueryModule parentModule) throws TypeException, XQueryException;
131
132     ComputedNamespace createComputedNamespace(String JavaDoc ncname, XQueryExpression value, XQueryModule parentModule) throws TypeException, XQueryException;
133
134     ComputedText createComputedText(XQueryExpression value, XQueryModule parentModule) throws TypeException, XQueryException;
135
136     XMLProcessingInstruction createXMLProcessingInstruction(XQueryExpression PITarget, XQueryExpression data, XQueryModule parentModule) throws TypeException, XQueryException;
137
138     XQueryExpressionSequence createXQueryExpressionSequence(ArrayList JavaDoc subExpressions, XQueryModule parentModule) throws TypeException, XQueryException;
139
140     XQueryModule createXQueryModule();
141
142     ImportSchema createImportSchema(boolean hasPrefix, String JavaDoc prefix, String JavaDoc name, String JavaDoc location);
143
144     ImportModule createImportModule(String JavaDoc prefix, String JavaDoc name, String JavaDoc location, XQueryModule module);
145
146     XQueryVoid createXQueryVoid(XQueryModule parentModule) throws TypeException, XQueryException;
147 }
148
Popular Tags