1 22 23 package org.xquark.xquery.parser; 24 25 import java.util.ArrayList ; 26 import java.util.HashMap ; 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 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 localPrefixes, ArrayList vectAttributes, ArrayList vectExpressions, XQueryModule parentModule) throws TypeException, XQueryException; 49 50 FLWRExpression createFLWRExpression(ArrayList bindings, HintTree hintClause, XQueryExpression whereClause, ArrayList orderbys, XQueryExpression returnClause, XQueryModule parentModule) throws TypeException, XQueryException; 51 52 FLWRExpression createFLWRExpression(ArrayList bindings, XQueryExpression whereClause, ArrayList orderbys, XQueryExpression returnClause, XQueryModule parentModule) throws TypeException, XQueryException; 53 54 FLWRExpression createFLWRExpression(ArrayList bindings, XQueryExpression whereClause, XQueryExpression returnClause, XQueryModule parentModule) throws TypeException, XQueryException; 55 56 FunctionDeclaration createFunctionDeclaration(QName funcName, ArrayList tmpVect, SequenceType sequenceType, ArrayList vectExpression, XQueryModule parentModule) throws TypeException, XQueryException; 57 58 HintTree createHintTree(byte type, byte side, Object left, Object 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 argsVect, XQueryModule parentModule) throws TypeException, XQueryException; 65 66 ItemType createItemType(XQueryExpression expression, XQueryModule parentModule) throws TypeException, XQueryException; 67 68 LibraryFunctionCall createLibraryFunctionCall(QName funcName, ArrayList 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 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 namespace, String prefixname, String typeName, XQueryModule parentModule, NamespaceContext namespaceContext) throws TypeException, XQueryException; 93 94 QuantifiedExpression createQuantifiedExpression(int kind, ArrayList 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 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 tmpVect, boolean stable, XQueryModule parentModule) throws TypeException, XQueryException; 105 106 Step createStep(boolean separator, byte axis, XQueryExpression expression, ArrayList predicates, XQueryModule parentModule) throws TypeException, XQueryException; 107 108 TypeSwitchExpression createTypeSwitchExpression(XQueryExpression switchExpression, HashMap 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 str, XQueryModule parentModule) throws TypeException, XQueryException; 115 116 ValueDecimal createValueDecimal(String str, XQueryModule parentModule) throws TypeException, XQueryException; 117 118 ValueDouble createValueDouble(String str, XQueryModule parentModule) throws TypeException, XQueryException; 119 120 ValueInteger createValueInteger(String str, XQueryModule parentModule) throws TypeException, XQueryException; 121 122 ValueString createValueString(String str, XQueryModule parentModule) throws TypeException, XQueryException; 123 124 ValueText createValueText(String 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 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 subExpressions, XQueryModule parentModule) throws TypeException, XQueryException; 139 140 XQueryModule createXQueryModule(); 141 142 ImportSchema createImportSchema(boolean hasPrefix, String prefix, String name, String location); 143 144 ImportModule createImportModule(String prefix, String name, String location, XQueryModule module); 145 146 XQueryVoid createXQueryVoid(XQueryModule parentModule) throws TypeException, XQueryException; 147 } 148 | Popular Tags |