Convert to String (if not already of the String type) and then return the String value. @return The current value as a String
()
| 212 | * @return The current value as a String |
| 213 | */ |
| 214 | public String toStringType() { |
| 215 | switch (type) { |
| 216 | case T_NULL: |
| 217 | case T_STR: |
| 218 | // No conversion required |
| 219 | break; |
| 220 | case T_BYTES: |
| 221 | setString(byteC.toString()); |
| 222 | break; |
| 223 | case T_CHARS: |
| 224 | setString(charC.toString()); |
| 225 | break; |
| 226 | } |
| 227 | |
| 228 | return strValue; |
| 229 | } |
| 230 | |
| 231 | |
| 232 | // ---------------------------------------- |