deeplyAppendParameter() — netty Function Reference
Architecture documentation for the deeplyAppendParameter() function in MessageFormatter.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 18685557_824c_32da_a77f_c1ade1ad4932["deeplyAppendParameter()"] 15dfd92a_397f_c44b_376f_363fa0eb3c7c["MessageFormatter"] 18685557_824c_32da_a77f_c1ade1ad4932 -->|defined in| 15dfd92a_397f_c44b_376f_363fa0eb3c7c aa43d43a_7006_3a89_f686_0e8102b22895["FormattingTuple()"] aa43d43a_7006_3a89_f686_0e8102b22895 -->|calls| 18685557_824c_32da_a77f_c1ade1ad4932 82153434_8f82_dab6_af73_f5294f9f0205["objectArrayAppend()"] 82153434_8f82_dab6_af73_f5294f9f0205 -->|calls| 18685557_824c_32da_a77f_c1ade1ad4932 4f13c2e2_74b8_7113_01aa_e5c8cd81afd4["safeObjectAppend()"] 18685557_824c_32da_a77f_c1ade1ad4932 -->|calls| 4f13c2e2_74b8_7113_01aa_e5c8cd81afd4 a8e9e32c_9ea1_d22a_5a8d_714a8afc44cd["booleanArrayAppend()"] 18685557_824c_32da_a77f_c1ade1ad4932 -->|calls| a8e9e32c_9ea1_d22a_5a8d_714a8afc44cd 98c0963e_a75d_0b60_b51c_e90065ff3863["byteArrayAppend()"] 18685557_824c_32da_a77f_c1ade1ad4932 -->|calls| 98c0963e_a75d_0b60_b51c_e90065ff3863 c9150c0c_918e_af04_fcf6_a3e9b7bda657["charArrayAppend()"] 18685557_824c_32da_a77f_c1ade1ad4932 -->|calls| c9150c0c_918e_af04_fcf6_a3e9b7bda657 a48456c1_449c_5482_6b5f_8cf245ac06eb["shortArrayAppend()"] 18685557_824c_32da_a77f_c1ade1ad4932 -->|calls| a48456c1_449c_5482_6b5f_8cf245ac06eb 91ac73b1_f921_0deb_0515_b549d5b0b607["intArrayAppend()"] 18685557_824c_32da_a77f_c1ade1ad4932 -->|calls| 91ac73b1_f921_0deb_0515_b549d5b0b607 eaa3dd45_0016_4dc6_167e_0ecf0f226513["longArrayAppend()"] 18685557_824c_32da_a77f_c1ade1ad4932 -->|calls| eaa3dd45_0016_4dc6_167e_0ecf0f226513 634e1c3a_6e26_553a_741e_19febf0d73be["floatArrayAppend()"] 18685557_824c_32da_a77f_c1ade1ad4932 -->|calls| 634e1c3a_6e26_553a_741e_19febf0d73be e5e365a1_a76c_6671_0a9f_ed3f5567c300["doubleArrayAppend()"] 18685557_824c_32da_a77f_c1ade1ad4932 -->|calls| e5e365a1_a76c_6671_0a9f_ed3f5567c300 82153434_8f82_dab6_af73_f5294f9f0205["objectArrayAppend()"] 18685557_824c_32da_a77f_c1ade1ad4932 -->|calls| 82153434_8f82_dab6_af73_f5294f9f0205 style 18685557_824c_32da_a77f_c1ade1ad4932 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/main/java/io/netty/util/internal/logging/MessageFormatter.java lines 223–272
private static void deeplyAppendParameter(StringBuilder sbuf, Object o,
Set<Object[]> seenSet) {
if (o == null) {
sbuf.append("null");
return;
}
Class<?> objClass = o.getClass();
if (!objClass.isArray()) {
if (Number.class.isAssignableFrom(objClass)) {
// Prevent String instantiation for some number types
if (objClass == Long.class) {
sbuf.append(((Long) o).longValue());
} else if (objClass == Integer.class || objClass == Short.class || objClass == Byte.class) {
sbuf.append(((Number) o).intValue());
} else if (objClass == Double.class) {
sbuf.append(((Double) o).doubleValue());
} else if (objClass == Float.class) {
sbuf.append(((Float) o).floatValue());
} else {
safeObjectAppend(sbuf, o);
}
} else {
safeObjectAppend(sbuf, o);
}
} else {
// check for primitive array types because they
// unfortunately cannot be cast to Object[]
sbuf.append('[');
if (objClass == boolean[].class) {
booleanArrayAppend(sbuf, (boolean[]) o);
} else if (objClass == byte[].class) {
byteArrayAppend(sbuf, (byte[]) o);
} else if (objClass == char[].class) {
charArrayAppend(sbuf, (char[]) o);
} else if (objClass == short[].class) {
shortArrayAppend(sbuf, (short[]) o);
} else if (objClass == int[].class) {
intArrayAppend(sbuf, (int[]) o);
} else if (objClass == long[].class) {
longArrayAppend(sbuf, (long[]) o);
} else if (objClass == float[].class) {
floatArrayAppend(sbuf, (float[]) o);
} else if (objClass == double[].class) {
doubleArrayAppend(sbuf, (double[]) o);
} else {
objectArrayAppend(sbuf, (Object[]) o, seenSet);
}
sbuf.append(']');
}
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does deeplyAppendParameter() do?
deeplyAppendParameter() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/internal/logging/MessageFormatter.java.
Where is deeplyAppendParameter() defined?
deeplyAppendParameter() is defined in common/src/main/java/io/netty/util/internal/logging/MessageFormatter.java at line 223.
What does deeplyAppendParameter() call?
deeplyAppendParameter() calls 10 function(s): booleanArrayAppend, byteArrayAppend, charArrayAppend, doubleArrayAppend, floatArrayAppend, intArrayAppend, longArrayAppend, objectArrayAppend, and 2 more.
What calls deeplyAppendParameter()?
deeplyAppendParameter() is called by 2 function(s): FormattingTuple, objectArrayAppend.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free