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

Method toString

src/main/java/org/jpl7/Atom.java:172–174  ·  view source on GitHub ↗

an Atom's name is quoted if it is not a simple identifier. @return string representation of an Atom

()

Source from the content-addressed store, hash-verified

170 * @return string representation of an Atom
171 */
172 public String toString() {
173 return (JPL.isSimpleName(name) || isListNil() ? name : "'" + name + "'");
174 }
175
176 /**
177 * returns the type of this term, as "Prolog.ATOM"

Callers 4

testAtomToString1Method · 0.95
testAtomToString2Method · 0.95
testAtomToString3Method · 0.95
toStringMethod · 0.95

Calls 2

isSimpleNameMethod · 0.95
isListNilMethod · 0.95

Tested by 3

testAtomToString1Method · 0.76
testAtomToString2Method · 0.76
testAtomToString3Method · 0.76