private static class ClassDump.SortedBuilder extends ClassDump.AbstractBuilder<ClassDump.Builder>
ClassDump.AbstractBuilder
which sorts its children by name before building.children
Constructor and Description |
---|
SortedBuilder(ClassDump.Builder parent) |
Modifier and Type | Method and Description |
---|---|
(package private) ClassDump.Builder |
addBuilder(java.lang.String name)
Appends a new
ClassDump.Builder to children and returns it. |
(package private) void |
build(java.lang.StringBuilder stringBuilder)
Recursively appends the builder's children to the given string.
|
getCpInfo, getCpInfo, getInsnIndex, putCpInfo, putInsnIndex
SortedBuilder(ClassDump.Builder parent)
ClassDump.Builder addBuilder(java.lang.String name)
ClassDump.Builder
to children and returns it.name
- the name of the new builder.void build(java.lang.StringBuilder stringBuilder)
ClassDump.AbstractBuilder
build
in class ClassDump.AbstractBuilder<ClassDump.Builder>
stringBuilder
- a string builder.