public function objectList() { $value = null; $o1 = null; $o2 = null; try { $this->pushFollow(self::$FOLLOW_object_in_objectList1365); $o1 = $this->object(); $this->state->_fsp--; $value = new Erfurt_Sparql_Query2_ObjectList(array($o1)); // Sparql10.g:224:9: ( COMMA o2= object )* //loop45: do { $alt45 = 2; $alt45 = $this->dfa45->predict($this->input); switch ($alt45) { case 1: $this->match($this->input, $this->getToken('COMMA'), self::$FOLLOW_COMMA_in_objectList1379); $this->pushFollow(self::$FOLLOW_object_in_objectList1383); $o2 = $this->object(); $this->state->_fsp--; $value->addElement($o2); break; default: break 2; //loop45; } } while (true); } catch (RecognitionException $re) { $this->reportError($re); $this->recover($this->input, $re); } catch (Exception $e) { throw $e; } return $value; }
/** * getSparql * build a valid sparql representation of this obj - should be like "(obj1, obj2, obj3)" * @return string */ public function getSparql() { return '(' . parent::getSparql() . ')'; }