public String toAQL ( ) { StringBuilder sb = new StringBuilder ( ) ; Iterator < List < QueryNode > > itAlternative = alternatives . iterator ( ) ; while ( itAlternative . hasNext ( ) ) { List < QueryNode > alt = itAlternative . next ( ) ; if ( alternatives . size ( ) > 1 ) { sb . append ( "(" ) ; } sb . append ( toAQL ( alt ) ) ; if ( alternatives . size ( ) > 1 ) { sb . append ( ")" ) ; if ( itAlternative . hasNext ( ) ) { sb . append ( "\n|\n" ) ; } } } // TODO: add metadata return sb . toString ( ) ; }
Outputs this normalized query data as an equivalent AQL query .