Package xbird.xquery.misc.QNameTable

Examples of xbird.xquery.misc.QNameTable.QualifiedName


    [132] ElementNameOrWildcard ::= ElementName | "*"
    [136] ElementName ::= QName
    [137] TypeName ::= QName
    ************************************************************************/
    final public ElementTest parseElementTest() throws ParseException, XQueryException {
        QualifiedName elementName = null;
        QualifiedName typeName = null;
        boolean isNillable = false;
        switch(jj_nt.kind) {
            case ElementType:
                currentToken = jj_consume_token(ElementType);
                break;
View Full Code Here


    [133] SchemaElementTest  ::= <"schema-element" "("> ElementDeclaration ")"
    [134] ElementDeclaration ::= ElementName
    [136] ElementName        ::= QName
    ************************************************************************/
    final public SchemaElementTest parseSchemaElementTest() throws ParseException, XQueryException {
        QualifiedName elementName = null;
        switch(jj_nt.kind) {
            case SchemaElementType:
                currentToken = jj_consume_token(SchemaElementType);
                break;
            case SchemaElementTypeForKindTest:
View Full Code Here

    [128] AttribNameOrWildcard ::= AttributeName | "*"
    [135] AttributeName      ::= QName
    [137] TypeName              ::= QName
    ************************************************************************/
    final public AttributeTest parseAttributeTest() throws ParseException, XQueryException {
        QualifiedName attributeName = null;
        QualifiedName typeName = null;
        switch(jj_nt.kind) {
            case AttributeType:
                currentToken = jj_consume_token(AttributeType);
                break;
            case AttributeTypeForKindTest:
View Full Code Here

    [130] AttributeDeclaration ::= AttributeName
    [135] AttributeName      ::= QName
    ************************************************************************/
    final public SchemaAttributeTest parseSchemaAttributeTest() throws ParseException,
            XQueryException {
        final QualifiedName attributeName;
        switch(jj_nt.kind) {
            case SchemaAttributeType:
                currentToken = jj_consume_token(SchemaAttributeType);
                break;
            case SchemaAttributeTypeForKindTest:
View Full Code Here

        return tc;
    }

    public Sequence<? extends Item> eval(Sequence<? extends Item> contextSeq, DynamicContext dynEnv)
            throws XQueryException {
        QualifiedName instName = name;
        if(instName == null) {
            instName = processNameExpr(contextSeq, dynEnv);
        }
        DMElement dmelem = XQueryDataModel.createElement(instName);
        boolean hasNamespaceDecl = false;
View Full Code Here

        ForVariable var;
        Type varType = null;
        XQExpression expr;
        currentToken = jj_consume_token(ForVariable);
        currentToken = jj_consume_token(VarName);
        QualifiedName varName = QNameUtil.parse(currentToken.image, namespaceContext, currentModule.getNamespace());
        var = new ForVariable(varName);
        currentModule.putVariable(varName, var);
        clause = new ForClause(var);
        locate(clause);
        switch(jj_nt.kind) {
            case As:
                //TypeDeclaration?
                currentToken = jj_consume_token(As);
                varType = parseSequenceType();
                var.setType(varType);
                break;
            default:
                jj_la1[68] = jj_gen;
                ;
        }
        switch(jj_nt.kind) {
            case AtWord:
                //PositionalVar?
                currentToken = jj_consume_token(AtWord);
                currentToken = jj_consume_token(VariableIndicator);
                currentToken = jj_consume_token(VarName);
                QualifiedName posVarName = QNameUtil.parse(currentToken.image, namespaceContext, currentModule.getNamespace());
                PositionalVariable posVar = new PositionalVariable(posVarName);
                currentModule.putVariable(posVarName, posVar);
                clause.setPositionVariable(posVar);
                break;
            default:
                jj_la1[69] = jj_gen;
                ;
        }
        currentToken = jj_consume_token(In);
        expr = parseExprSingle();
        clause.setInExpr(expr);
        fors = new LinkedList<Binding>();
        fors.add(clause);
        label_10: while(true) {
            switch(jj_nt.kind) {
                case Comma:
                    ;
                    break;
                default:
                    jj_la1[70] = jj_gen;
                    break label_10;
            }
            //("," "$" VarName TypeDeclaration? PositionalVar? "in" ExprSingle)*
            currentToken = jj_consume_token(Comma);
            currentToken = jj_consume_token(VariableIndicator);
            currentToken = jj_consume_token(VarName);
            varName = QNameUtil.parse(currentToken.image, namespaceContext, currentModule.getNamespace());
            var = new ForVariable(varName);
            currentModule.putVariable(varName, var);
            clause = new ForClause(var);
            switch(jj_nt.kind) {
                case As:
                    //TypeDeclaration?
                    currentToken = jj_consume_token(As);
                    varType = parseSequenceType();
                    var.setType(varType);
                    break;
                default:
                    jj_la1[71] = jj_gen;
                    ;
            }
            switch(jj_nt.kind) {
                case AtWord:
                    //PositionalVar?
                    currentToken = jj_consume_token(AtWord);
                    currentToken = jj_consume_token(VariableIndicator);
                    currentToken = jj_consume_token(VarName);
                    QualifiedName posVarName = QNameUtil.parse(currentToken.image, namespaceContext, currentModule.getNamespace());
                    PositionalVariable posVar = new PositionalVariable(posVarName);
                    currentModule.putVariable(posVarName, posVar);
                    clause.setPositionVariable(posVar);
                    break;
                default:
View Full Code Here

    }

    @Override
    public void evalAsEvents(XQEventReceiver handler, Sequence<? extends Item> contextSeq, DynamicContext dynEnv)
            throws XQueryException {
        QualifiedName instName = name;
        if(instName == null) {
            instName = processNameExpr(contextSeq, dynEnv);
        }
        handler.evStartElement(instName);
        boolean hasNamespaceDecl = false;
View Full Code Here

        LetClause clause;
        Type varType = null;
        XQExpression expr = null;
        currentToken = jj_consume_token(LetVariable);
        currentToken = jj_consume_token(VarName);
        QualifiedName varName = QNameUtil.parse(currentToken.image, namespaceContext, currentModule.getNamespace());
        var = new LetVariable(varName);
        currentModule.putVariable(varName, var);
        clause = new LetClause(var);
        locate(clause);
        switch(jj_nt.kind) {
View Full Code Here

        currentToken = jj_consume_token(VarName);
        String defaultNamespace = currentModule.getNamespace();
        if(defaultNamespace == null) {
            defaultNamespace = "";
        }
        QualifiedName vn = QNameUtil.parse(currentToken.image, namespaceContext, defaultNamespace);
        Variable var = currentModule.getVariable(vn);
        if(var == null) {
            error("err:XPST0008");
        }
        if(!(var instanceof ForVariable || var instanceof LetVariable)) {
View Full Code Here

    [110] TypeDeclaration ::= "as" SequenceType
    *************************************************************************/
    final public QuantifiedExpr parseQuantifiedExpr() throws ParseException, XQueryException {
        final QuantifiedExpr outermost;
        boolean isEveryQuantifier = false;
        QualifiedName varName;
        QuantifiedVariable var;
        Type varType = null;
        XQExpression valueExpr;
        final XQExpression condExpr;
        currentModule.pushVarScope();
View Full Code Here

TOP

Related Classes of xbird.xquery.misc.QNameTable.QualifiedName

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.