Package org.benf.cfr.reader.util.output
Class StringStreamDumper
- java.lang.Object
-
- org.benf.cfr.reader.util.output.AbstractDumper
-
- org.benf.cfr.reader.util.output.StreamDumper
-
- org.benf.cfr.reader.util.output.StringStreamDumper
-
- All Implemented Interfaces:
Dumper
,MethodErrorCollector
public class StringStreamDumper extends StreamDumper
-
-
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
Fields Modifier and Type Field Description private MethodErrorCollector
methodErrorCollector
private java.lang.StringBuilder
stringBuilder
-
Fields inherited from class org.benf.cfr.reader.util.output.StreamDumper
emitted, illegalIdentifierDump, options
-
Fields inherited from class org.benf.cfr.reader.util.output.AbstractDumper
context, STANDARD_INDENT
-
-
Constructor Summary
Constructors Constructor Description StringStreamDumper(MethodErrorCollector methodErrorCollector, java.lang.StringBuilder sb, TypeUsageInformation typeUsageInformation, Options options, IllegalIdentifierDump illegalIdentifierDump)
StringStreamDumper(MethodErrorCollector methodErrorCollector, java.lang.StringBuilder sb, TypeUsageInformation typeUsageInformation, Options options, IllegalIdentifierDump illegalIdentifierDump, MovableDumperContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSummaryError(Method method, java.lang.String s)
void
close()
java.io.BufferedOutputStream
getAdditionalOutputStream(java.lang.String description)
Dumper
withTypeUsageInformation(TypeUsageInformation innerclassTypeUsageInformation)
protected void
write(java.lang.String s)
-
Methods inherited from class org.benf.cfr.reader.util.output.StreamDumper
canEmitClass, dump, dump, endCodeln, explicitIndent, fieldName, getCurrentLine, getObfuscationMapping, getOutputCount, getTypeUsageInformation, identifier, indent, keyword, label, literal, methodName, newln, operator, packageName, print, print, separator
-
Methods inherited from class org.benf.cfr.reader.util.output.AbstractDumper
beginBlockComment, comment, dump, endBlockComment, enqueuePendingCarriageReturn, getIndentLevel, informBytecodeLoc, removePendingCarriageReturn
-
-
-
-
Field Detail
-
methodErrorCollector
private final MethodErrorCollector methodErrorCollector
-
stringBuilder
private final java.lang.StringBuilder stringBuilder
-
-
Constructor Detail
-
StringStreamDumper
public StringStreamDumper(MethodErrorCollector methodErrorCollector, java.lang.StringBuilder sb, TypeUsageInformation typeUsageInformation, Options options, IllegalIdentifierDump illegalIdentifierDump)
-
StringStreamDumper
public StringStreamDumper(MethodErrorCollector methodErrorCollector, java.lang.StringBuilder sb, TypeUsageInformation typeUsageInformation, Options options, IllegalIdentifierDump illegalIdentifierDump, MovableDumperContext context)
-
-
Method Detail
-
write
protected void write(java.lang.String s)
- Specified by:
write
in classStreamDumper
-
close
public void close()
-
addSummaryError
public void addSummaryError(Method method, java.lang.String s)
-
withTypeUsageInformation
public Dumper withTypeUsageInformation(TypeUsageInformation innerclassTypeUsageInformation)
-
getAdditionalOutputStream
public java.io.BufferedOutputStream getAdditionalOutputStream(java.lang.String description)
-
-