final public Element OptionalGraphPattern() throws ParseException { Element el ; jj_consume_token(OPTIONAL); el = GroupGraphPattern(); {if (true) return new ElementOptional(el) ;} throw new Error("Missing return statement in function"); }
@Override public void visit(ElementOptional e) { e.getOptionalElement().visit(this); result = new ElementOptional(result); }
final public Element OptionalGraphPattern() throws ParseException { Element el ; jj_consume_token(OPTIONAL); el = GroupGraphPattern(); {if (true) return new ElementOptional(el) ;} throw new Error("Missing return statement in function"); }
@Override public void visit(ElementOptional opt) { Element elt = opt.getOptionalElement(); elt.visit(this); result = new ElementOptional(result); }
final public Element OptionalGraphPattern() throws ParseException { Element el ; jj_consume_token(OPTIONAL); el = GroupGraphPattern(); {if (true) return new ElementOptional(el) ;} throw new Error("Missing return statement in function"); }
@Override public void visit(ElementOptional opt) { opt.getOptionalElement().visit(this); result = new ElementOptional(result); }
final public Element OptionalGraphPattern() throws ParseException { Element el ; jj_consume_token(OPTIONAL); el = GroupGraphPattern(); {if (true) return new ElementOptional(el) ;} throw new Error("Missing return statement in function"); }
final public Element OptionalGraphPattern() throws ParseException { Element el ; jj_consume_token(OPTIONAL); el = GroupGraphPattern(); {if (true) return new ElementOptional(el) ;} throw new Error("Missing return statement in function"); }
final public Element OptionalGraphPattern() throws ParseException { Element el ; jj_consume_token(OPTIONAL); el = GroupGraphPattern(); {if (true) return new ElementOptional(el) ;} throw new Error("Missing return statement in function"); }
@Override public void visit(ElementOptional e) { e.getOptionalElement().visit(this); result = new ElementOptional(result); }
public final ElementOptional optionalGraphPattern() throws RecognitionException { ElementOptional e = null; ElementGroup groupGraphPattern62 = null; try { // com/clarkparsia/sparqlowl/parser/antlr/SparqlOwlTreeARQ.g:861:2: ( ^( OPTIONAL_GRAPH_PATTERN groupGraphPattern ) ) // com/clarkparsia/sparqlowl/parser/antlr/SparqlOwlTreeARQ.g:861:4: ^( OPTIONAL_GRAPH_PATTERN groupGraphPattern ) { match(input,OPTIONAL_GRAPH_PATTERN,FOLLOW_OPTIONAL_GRAPH_PATTERN_in_optionalGraphPattern1893); match(input, Token.DOWN, null); pushFollow(FOLLOW_groupGraphPattern_in_optionalGraphPattern1895); groupGraphPattern62=groupGraphPattern(); state._fsp--; match(input, Token.UP, null); e = new ElementOptional( groupGraphPattern62 ); } } catch( RecognitionException rce ) { throw rce; } finally { } return e; } // $ANTLR end "optionalGraphPattern"
public void visit(OpLeftJoin opLeftJoin) { Element eLeft = asElement(opLeftJoin.getLeft()) ; ElementGroup eRight = asElementGroup(opLeftJoin.getRight()) ; if ( opLeftJoin.getExprs() != null ) { for ( Expr expr : opLeftJoin.getExprs() ) { ElementFilter f = new ElementFilter(expr) ; eRight.addElement(f) ; } } ElementGroup g = currentGroup() ; if ( ! emptyGroup(eLeft) ) g.addElement(eLeft) ; ElementOptional opt = new ElementOptional(eRight) ; g.addElement(opt) ; }
@Override public void visit(OpLeftJoin opLeftJoin) { Element eLeft = asElement(opLeftJoin.getLeft()) ; ElementGroup eRight = asElementGroup(opLeftJoin.getRight()) ; if ( opLeftJoin.getExprs() != null ) { for ( Expr expr : opLeftJoin.getExprs() ) { ElementFilter f = new ElementFilter(expr) ; eRight.addElement(f) ; } } ElementGroup g = currentGroup() ; if ( ! emptyGroup(eLeft) ) g.addElement(eLeft) ; ElementOptional opt = new ElementOptional(eRight) ; g.addElement(opt) ; }