MCPcopy Create free account
hub / github.com/Z3Prover/z3 / toString

Method toString

src/api/java/Symbol.java:63–72  ·  view source on GitHub ↗

A string representation of the symbol.

()

Source from the content-addressed store, hash-verified

61 * A string representation of the symbol.
62 **/
63 @Override
64 public String toString() {
65 if (isIntSymbol()) {
66 return Integer.toString(((IntSymbol) this).getInt());
67 } else if (isStringSymbol()) {
68 return ((StringSymbol) this).getString();
69 } else {
70 return "Z3Exception: Unknown symbol kind encountered.";
71 }
72 }
73
74 /**
75 * Symbol constructor

Callers

nothing calls this directly

Calls 5

isIntSymbolMethod · 0.95
isStringSymbolMethod · 0.95
toStringMethod · 0.65
getIntMethod · 0.45
getStringMethod · 0.45

Tested by

no test coverage detected