public Exc createException(POS pos, String lemma, List<String> exceptions) throws JWNLException { return new Exc(dictionary, pos, lemma, exceptions); }
public Exc createException(POS pos, String lemma, List<String> exceptions) throws JWNLException { return new Exc(dictionary, pos, lemma, exceptions); }
public Exc createExc(POS pos, String derivation, ResultSet rs) throws SQLException, JWNLException { ArrayList<String> exceptions = new ArrayList<>(); while (rs.next()) { exceptions.add(stringCache.replace(rs.getString(1))); } if (0 < exceptions.size()) { exceptions.trimToSize(); return new Exc(dictionary, pos, stringCache.replace(derivation), exceptions); } else { return null; } } }
public Exc createExc(POS pos, String derivation, ResultSet rs) throws SQLException, JWNLException { ArrayList<String> exceptions = new ArrayList<>(); while (rs.next()) { exceptions.add(stringCache.replace(rs.getString(1))); } if (0 < exceptions.size()) { exceptions.trimToSize(); return new Exc(dictionary, pos, stringCache.replace(derivation), exceptions); } else { return null; } } }
public Exc createExc(POS pos, CharSequence line) throws JWNLException { CharSequenceParser p = new CharSequenceParser(line); String lemma = stringCache.replace(p.nextToken().replace('_', ' ')); ArrayList<String> exceptions = new ArrayList<>(); while (p.hasMoreTokens()) { exceptions.add(stringCache.replace(p.nextToken().replace('_', ' '))); } exceptions.trimToSize(); if (log.isTraceEnabled()) { log.trace(dictionary.getMessages().resolveMessage("PRINCETON_INFO_001", new Object[]{pos, lemma})); } return new Exc(dictionary, pos, lemma, exceptions); } }
public Exc createExc(POS pos, CharSequence line) throws JWNLException { CharSequenceParser p = new CharSequenceParser(line); String lemma = stringCache.replace(p.nextToken().replace('_', ' ')); ArrayList<String> exceptions = new ArrayList<>(); while (p.hasMoreTokens()) { exceptions.add(stringCache.replace(p.nextToken().replace('_', ' '))); } exceptions.trimToSize(); if (log.isTraceEnabled()) { log.trace(dictionary.getMessages().resolveMessage("PRINCETON_INFO_001", new Object[]{pos, lemma})); } return new Exc(dictionary, pos, lemma, exceptions); } }