Package org.teiid.query.sql.navigator

Examples of org.teiid.query.sql.navigator.PreOrderNavigator


        }
    }
   
    public static void validate(LanguageObject obj, final AggregateValidationVisitor visitor) {
      visitor.validateBelow = true;
        PreOrderNavigator nav = new PreOrderNavigator(visitor) {
            private boolean validateBelow;

            protected void visitNode(LanguageObject obj) {
                if (validateBelow) {
                    super.visitNode(obj);
View Full Code Here


        visitor.reset();

    visitor.setMetadata(metadata);
        setTempMetadata(metadata, visitor, object);
       
        PreOrderNavigator nav = new PreOrderNavigator(visitor) {
           
          protected void visitNode(LanguageObject obj) {
            QueryMetadataInterface previous = visitor.getMetadata();
            setTempMetadata(metadata, visitor, obj);
            super.visitNode(obj);
View Full Code Here

     * @param elements Collection to collect commands in
     */
    public static final List<Command> getCommands(Command command) {
        CommandCollectorVisitor visitor = new CommandCollectorVisitor();
        final boolean visitCommands = command instanceof SetQuery;
        PreOrderNavigator navigator = new PreOrderNavigator(visitor) {

          @Override
          protected void visitNode(LanguageObject obj) {
            if (!visitCommands && obj instanceof Command) {
            return;
View Full Code Here

        if(obj == null || exprMap == null || exprMap.isEmpty()) {
            return;
        }
        final Set reverseSet = new HashSet(exprMap.values());
        final ExpressionMappingVisitor visitor = new ExpressionMappingVisitor(exprMap);
        PreOrderNavigator pon = new PreOrderNavigator(visitor) {
          @Override
          protected void visitNode(LanguageObject obj) {
            if (!(obj instanceof Expression) || !reverseSet.contains(obj)) {
                super.visitNode(obj);
            }
View Full Code Here

TOP

Related Classes of org.teiid.query.sql.navigator.PreOrderNavigator

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.