Package org.benf.cfr.reader.util.output
Class ToStringDumper
java.lang.Object
org.benf.cfr.reader.util.output.AbstractDumper
org.benf.cfr.reader.util.output.ToStringDumper
- All Implemented Interfaces:
Dumper
,MethodErrorCollector
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.benf.cfr.reader.util.output.Dumper
Dumper.CannotCreate
Nested classes/interfaces inherited from interface org.benf.cfr.reader.util.output.MethodErrorCollector
MethodErrorCollector.SummaryDumperMethodErrorCollector
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Set<JavaTypeInstance>
private final StringBuilder
private final TypeUsageInformation
Fields inherited from class org.benf.cfr.reader.util.output.AbstractDumper
context, STANDARD_INDENT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSummaryError
(Method method, String s) boolean
canEmitClass
(JavaTypeInstance type) void
close()
private void
doIndent()
dump
(JavaTypeInstance javaTypeInstance, TypeContext typeContext) fieldName
(String name, JavaTypeInstance owner, boolean hiddenDeclaration, boolean isStatic, boolean defines) getAdditionalOutputStream
(String description) int
identifier
(String s, Object ref, boolean defines) void
indent
(int diff) methodName
(String s, MethodPrototype p, boolean special, boolean defines) newln()
print
(char c) private void
toString()
static String
withTypeUsageInformation
(TypeUsageInformation innerclassTypeUsageInformation) Methods inherited from class org.benf.cfr.reader.util.output.AbstractDumper
beginBlockComment, comment, dump, endBlockComment, enqueuePendingCarriageReturn, getCurrentLine, getIndentLevel, informBytecodeLoc, removePendingCarriageReturn
-
Field Details
-
sb
-
typeUsageInformation
-
emitted
-
-
Constructor Details
-
ToStringDumper
public ToStringDumper()
-
-
Method Details
-
toString
-
label
-
processPendingCR
private void processPendingCR() -
identifier
-
methodName
-
packageName
-
print
-
print
-
newln
-
endCodeln
-
keyword
-
operator
-
separator
-
literal
-
doIndent
private void doIndent() -
indent
public void indent(int diff) -
explicitIndent
-
dump
-
getTypeUsageInformation
-
getObfuscationMapping
-
dump
-
fieldName
public Dumper fieldName(String name, JavaTypeInstance owner, boolean hiddenDeclaration, boolean isStatic, boolean defines) -
toString
-
addSummaryError
-
close
public void close() -
canEmitClass
-
getOutputCount
public int getOutputCount() -
withTypeUsageInformation
-
getAdditionalOutputStream
-