toString method
A string representation of this object.
Some classes have a default textual representation,
often paired with a static parse
function (like int.parse).
These classes will provide the textual representation as
their string representation.
Other classes have no meaningful textual representation
that a program will care about.
Such classes will typically override toString
to provide
useful information when inspecting the object,
mainly for debugging or logging.
Implementation
String toString() {
StringBuffer ret = new StringBuffer("Value(");
if (isSetNVal()) {
ret.write("nVal:");
String? nVal_name = NullType.VALUES_TO_NAMES[this.nVal];
if (nVal_name != null) {
ret.write(nVal_name);
ret.write(" (");
}
ret.write(this.nVal);
if (nVal_name != null) {
ret.write(")");
}
}
if (isSetBVal()) {
ret.write(", ");
ret.write("bVal:");
ret.write(this.bVal);
}
if (isSetIVal()) {
ret.write(", ");
ret.write("iVal:");
ret.write(this.iVal);
}
if (isSetFVal()) {
ret.write(", ");
ret.write("fVal:");
ret.write(this.fVal);
}
if (isSetSVal()) {
ret.write(", ");
ret.write("sVal:");
if (this.sVal == null) {
ret.write("null");
} else {
ret.write("BINARY");
}
}
if (isSetDVal()) {
ret.write(", ");
ret.write("dVal:");
if (this.dVal == null) {
ret.write("null");
} else {
ret.write(this.dVal);
}
}
if (isSetTVal()) {
ret.write(", ");
ret.write("tVal:");
if (this.tVal == null) {
ret.write("null");
} else {
ret.write(this.tVal);
}
}
if (isSetDtVal()) {
ret.write(", ");
ret.write("dtVal:");
if (this.dtVal == null) {
ret.write("null");
} else {
ret.write(this.dtVal);
}
}
if (isSetVVal()) {
ret.write(", ");
ret.write("vVal:");
if (this.vVal == null) {
ret.write("null");
} else {
ret.write(this.vVal);
}
}
if (isSetEVal()) {
ret.write(", ");
ret.write("eVal:");
if (this.eVal == null) {
ret.write("null");
} else {
ret.write(this.eVal);
}
}
if (isSetPVal()) {
ret.write(", ");
ret.write("pVal:");
if (this.pVal == null) {
ret.write("null");
} else {
ret.write(this.pVal);
}
}
if (isSetLVal()) {
ret.write(", ");
ret.write("lVal:");
if (this.lVal == null) {
ret.write("null");
} else {
ret.write(this.lVal);
}
}
if (isSetMVal()) {
ret.write(", ");
ret.write("mVal:");
if (this.mVal == null) {
ret.write("null");
} else {
ret.write(this.mVal);
}
}
if (isSetUVal()) {
ret.write(", ");
ret.write("uVal:");
if (this.uVal == null) {
ret.write("null");
} else {
ret.write(this.uVal);
}
}
if (isSetGVal()) {
ret.write(", ");
ret.write("gVal:");
if (this.gVal == null) {
ret.write("null");
} else {
ret.write(this.gVal);
}
}
if (isSetGgVal()) {
ret.write(", ");
ret.write("ggVal:");
if (this.ggVal == null) {
ret.write("null");
} else {
ret.write(this.ggVal);
}
}
if (isSetDuVal()) {
ret.write(", ");
ret.write("duVal:");
if (this.duVal == null) {
ret.write("null");
} else {
ret.write(this.duVal);
}
}
ret.write(")");
return ret.toString();
}