}
return this.fSTreeModel.getCas().getStringForCode((int) this.addr);
}
private String getValueString() {
CASImpl cas = this.fSTreeModel.getCas();
switch (this.nodeClass) {
case INT_FS:
case BYTE_FS:
case SHORT_FS: {
return Long.toString(this.addr);
}
case FLOAT_FS: {
return Float.toString(CASImpl.int2float((int) this.addr));
}
case BOOL_FS: {
return (0 == this.addr) ? "false" : "true";
}
case LONG_FS: {
return Long.toString(this.addr);
}
case DOUBLE_FS: {
return Double.toString(CASImpl.long2double(this.addr));
}
case STRING_FS: {
if (this.addr == LowLevelCAS.NULL_FS_REF) {
return getNullString();
}
String s = cas.getStringForCode((int) this.addr);
// Check if we need to shorten the string for display purposes
String s1 = shortenString(s);
// Remember if string is shortened
this.isShortenedString = (s != s1);
return "\"" + escapeLt(s1) + "\"";
}
case ARRAY_FS: {
if (cas.getHeapValue((int) this.addr) == LowLevelCAS.NULL_FS_REF) {
return getNullString();
}
return "<font color=blue>" + getType().getName() + "</font>["
+ cas.ll_getArraySize((int) this.addr) + "]";
}
case STD_FS: {
if (cas.getHeapValue((int) this.addr) == LowLevelCAS.NULL_FS_REF) {
return getNullString();
}
return "<font color=blue>" + getType().getName() + "</font>";
}
}