MCPcopy Index your code
hub / github.com/apache/tomcat / toStringType

Method toStringType

java/org/apache/tomcat/util/buf/MessageBytes.java:214–229  ·  view source on GitHub ↗

Convert to String (if not already of the String type) and then return the String value. @return The current value as a String

()

Source from the content-addressed store, hash-verified

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 // ----------------------------------------

Callers 15

doTestSetLongMethod · 0.95
getHeaderMethod · 0.95
nextElementMethod · 0.95
toMapMethod · 0.80
filterMethod · 0.80
findNextMethod · 0.80
setMethodMethod · 0.80
getMethodMethod · 0.80
getContentTypeMethod · 0.80
restoreRequestMethod · 0.80
getProtocolMethod · 0.80

Calls 2

setStringMethod · 0.95
toStringMethod · 0.65

Tested by 2

doTestSetLongMethod · 0.76