public static String toAQL ( List < QueryNode > alternative ) { List < String > fragments = new LinkedList <> ( ) ; for ( QueryNode n : alternative ) { String frag = n . toAQLNodeFragment ( ) ; if ( frag != null && ! frag . isEmpty ( ) ) { fragments . add ( frag ) ; } } for ( QueryNode n : alternative ) { String frag = n . toAQLEdgeFragment ( ) ; if ( frag != null && ! frag . isEmpty ( ) ) { fragments . add ( frag ) ; } } return Joiner . on ( " & " ) . join ( fragments ) ; }
Outputs this alternative as an equivalent AQL query .