Package org.jboss.dna.graph.query.model

Examples of org.jboss.dna.graph.query.model.NamedSelector


     * @return the named selector object; never null
     */
    protected NamedSelector namedSelector( String nameWithOptionalAlias ) {
        String[] parts = nameWithOptionalAlias.split("\\sAS\\s");
        if (parts.length == 2) {
            return new NamedSelector(selector(parts[0]), selector(parts[1]));
        }
        return new NamedSelector(selector(parts[0]));
    }
View Full Code Here


            } else if (tokens.canConsume("CROSS", "JOIN") || tokens.canConsume("CROSS")) {
                joinType = JoinType.CROSS;
            }
            if (joinType == null) break;
            // Read the name of the selector on the right side of the join ...
            NamedSelector right = parseNamedSelector(tokens);
            // Read the join condition ...
            JoinCondition joinCondition = parseJoinCondition(tokens, typeSystem);
            // Create the join ...
            source = new Join(source, joinType, right, joinCondition);
        }
View Full Code Here

    protected NamedSelector parseNamedSelector( TokenStream tokens ) {
        SelectorName name = parseSelectorName(tokens);
        SelectorName alias = null;
        if (tokens.canConsume("AS")) alias = parseSelectorName(tokens);
        return new NamedSelector(name, alias);
    }
View Full Code Here

TOP

Related Classes of org.jboss.dna.graph.query.model.NamedSelector

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.