The following document contains the results of PMD's CPD 4.2.5.
File | Line |
---|---|
io\github\prolobjectlink\prolog\jpl7\JplEngine.java | 305 |
io\github\prolobjectlink\prolog\jpl7\JplEngine.java | 326 |
public final Set<PrologIndicator> getBuiltIns() { Set<PrologIndicator> indicators = new HashSet<PrologIndicator>(); String opQuery = consultCacheComma + "findall(X/Y,current_predicate(X/Y)," + KEY + ")"; Query query = new Query(opQuery); if (query.hasSolution()) { Term term = query.oneSolution().get(KEY); Term[] termArray = term.toTermArray(); for (Term t : termArray) { Term f = t.arg(1); Term a = t.arg(2); int arity = a.intValue(); String functor = f.name(); JplIndicator pi = new JplIndicator(functor, arity); indicators.add(pi); } } |