MCPcopy Create free account
hub / github.com/SWI-Prolog/packages-jpl / toString

Method toString

src/main/java/org/jpl7/Term.java:860–869  ·  view source on GitHub ↗

Converts a list of Terms to a String. @param args An array of Terms to convert @return String representation of a list of Terms

(Term[] args)

Source from the content-addressed store, hash-verified

858 * @return String representation of a list of Terms
859 */
860 public static String toString(Term[] args) {
861 String s = "";
862 for (int i = 0; i < args.length; ++i) {
863 s += args[i].toString();
864 if (i != args.length - 1) {
865 s += ", ";
866 }
867 }
868 return s;
869 }
870
871 /**
872 * returns the type of this term, as one of org.jpl7.fli.Prolog.COMPOUND, .ATOM, .VARIABLE, .INTEGER, .FLOAT etc

Callers 9

testLength1Method · 0.95
quotedName1Method · 0.95
testWeirdCompoundMethod · 0.95
mainMethod · 0.95
toStringMethod · 0.95
toStringMethod · 0.95
putLoopMethod · 0.95
toStringMethod · 0.95

Calls

no outgoing calls

Tested by 5

testLength1Method · 0.76
quotedName1Method · 0.76
testWeirdCompoundMethod · 0.76
mainMethod · 0.76