/** Generate ParseException. */ public ParseException generateParseException() { jj_expentries.clear(); boolean[] la1tokens = new boolean[22]; if (jj_kind >= 0) { la1tokens[jj_kind] = true; jj_kind = -1; } for (int i = 0; i < 6; i++) { if (jj_la1[i] == jj_gen) { for (int j = 0; j < 32; j++) { if ((jj_la1_0[i] & 1<<j) != 0) { la1tokens[j] = true; } } } } for (int i = 0; i < 22; i++) { if (la1tokens[i]) { jj_expentry = new int[1]; jj_expentry[0] = i; jj_expentries.add(jj_expentry); } } int[][] exptokseq = new int[jj_expentries.size()][]; for (int i = 0; i < jj_expentries.size(); i++) { exptokseq[i] = jj_expentries.get(i); } return new ParseException(token, exptokseq, tokenImage); }
/** This constructor is used by the method "generateParseException" in the * generated parser. Calling this constructor generates a new object of this * type with the fields "currentToken", "expectedTokenSequences", and * "tokenImage" set. * * @param currentTokenVal * @param expectedTokenSequencesVal * @param tokenImageVal */ public ParseException(Token currentTokenVal, int[][] expectedTokenSequencesVal, String[] tokenImageVal ) { super(initialise(currentTokenVal, expectedTokenSequencesVal, tokenImageVal)); currentToken = currentTokenVal; expectedTokenSequences = expectedTokenSequencesVal; tokenImage = tokenImageVal; }
break; retval += add_escapes(tok.image); tok = tok.next;
if (e.getCause() != null && e.getCause() instanceof OWLOntologyChangeException) { throw (OWLOntologyChangeException) e.getCause(); if (e.getCause() != null && e.getCause() instanceof OWLOntologyAlreadyExistsException) { OWLOntologyAlreadyExistsException ex = (OWLOntologyAlreadyExistsException) e.getCause(); throw new UnloadableImportException(ex, ontology.getOWLOntologyManager().getOWLDataFactory().getOWLImportsDeclaration(ex.getOntologyID().getOntologyIRI()));
retval += add_escapes(tok.image); retval += " \""; tok = tok.next;
if (e.getCause() != null && e.getCause() instanceof OWLOntologyChangeException) { throw (OWLOntologyChangeException) e.getCause(); if (e.getCause() != null && e.getCause() instanceof OWLOntologyAlreadyExistsException) { OWLOntologyAlreadyExistsException ex = (OWLOntologyAlreadyExistsException) e.getCause(); throw new UnloadableImportException(ex, ontology.getOWLOntologyManager().getOWLDataFactory().getOWLImportsDeclaration(ex.getOntologyID().getOntologyIRI()));
/** Generate ParseException. */ public ParseException generateParseException() { jj_expentries.clear(); boolean[] la1tokens = new boolean[22]; if (jj_kind >= 0) { la1tokens[jj_kind] = true; jj_kind = -1; } for (int i = 0; i < 6; i++) { if (jj_la1[i] == jj_gen) { for (int j = 0; j < 32; j++) { if ((jj_la1_0[i] & (1<<j)) != 0) { la1tokens[j] = true; } } } } for (int i = 0; i < 22; i++) { if (la1tokens[i]) { jj_expentry = new int[1]; jj_expentry[0] = i; jj_expentries.add(jj_expentry); } } int[][] exptokseq = new int[jj_expentries.size()][]; for (int i = 0; i < jj_expentries.size(); i++) { exptokseq[i] = jj_expentries.get(i); } return new ParseException(token, exptokseq, tokenImage); }
retval += add_escapes(tok.image); retval += " \""; tok = tok.next;
/** * This constructor is used by the method "generateParseException" * in the generated parser. Calling this constructor generates * a new object of this type with the fields "currentToken", * "expectedTokenSequences", and "tokenImage" set. */ public ParseException(Token currentTokenVal, int[][] expectedTokenSequencesVal, String[] tokenImageVal ) { super(initialise(currentTokenVal, expectedTokenSequencesVal, tokenImageVal)); currentToken = currentTokenVal; expectedTokenSequences = expectedTokenSequencesVal; tokenImage = tokenImageVal; }
exptokseq[i] = (int[])jj_expentries.elementAt(i); return new ParseException(token, exptokseq, tokenImage);
jj_la1[4] = jj_gen; jj_consume_token(-1); throw new ParseException();
jj_la1[4] = jj_gen; jj_consume_token(-1); throw new ParseException();
final public String String() throws ParseException { Token t; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case STRING: t = jj_consume_token(STRING); break; case CHAR: t = jj_consume_token(CHAR); break; default: jj_la1[3] = jj_gen; jj_consume_token(-1); throw new ParseException(); } {if (true) return t.image;} throw new Error("Missing return statement in function"); }