Package org.benf.cfr.reader.util.output
Class FileDumper
java.lang.Object
org.benf.cfr.reader.util.output.AbstractDumper
org.benf.cfr.reader.util.output.StreamDumper
org.benf.cfr.reader.util.output.FileDumper
- All Implemented Interfaces:
Dumper,MethodErrorCollector
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.benf.cfr.reader.util.output.Dumper
Dumper.CannotCreateNested classes/interfaces inherited from interface org.benf.cfr.reader.util.output.MethodErrorCollector
MethodErrorCollector.SummaryDumperMethodErrorCollector -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final Stringprivate final Stringprivate static final intprivate final Stringprivate final SummaryDumperprivate static final intprivate final AtomicIntegerprivate final JavaTypeInstanceprivate final BufferedWriterFields inherited from class org.benf.cfr.reader.util.output.StreamDumper
emitted, illegalIdentifierDump, optionsFields inherited from class org.benf.cfr.reader.util.output.AbstractDumper
context, STANDARD_INDENT -
Constructor Summary
ConstructorsConstructorDescriptionFileDumper(String dir, boolean clobber, JavaTypeInstance type, SummaryDumper summaryDumper, TypeUsageInformation typeUsageInformation, Options options, AtomicInteger truncCount, IllegalIdentifierDump illegalIdentifierDump) FileDumper(String dir, String encoding, boolean clobber, JavaTypeInstance type, SummaryDumper summaryDumper, TypeUsageInformation typeUsageInformation, Options options, AtomicInteger truncCount, IllegalIdentifierDump illegalIdentifierDump) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSummaryError(Method method, String s) voidclose()getAdditionalOutputStream(String description) (package private) Stringprivate StringmkFilename(String dir, Pair<String, String> names, SummaryDumper summaryDumper) withTypeUsageInformation(TypeUsageInformation innerclassTypeUsageInformation) protected voidMethods 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, separatorMethods inherited from class org.benf.cfr.reader.util.output.AbstractDumper
beginBlockComment, comment, dump, endBlockComment, enqueuePendingCarriageReturn, getIndentLevel, informBytecodeLoc, removePendingCarriageReturn
-
Field Details
-
dir
-
encoding
-
clobber
private final boolean clobber -
type
-
summaryDumper
-
path
-
writer
-
truncCount
-
MAX_FILE_LEN_MINUS_EXT
private static final int MAX_FILE_LEN_MINUS_EXT- See Also:
-
TRUNC_PREFIX_LEN
private static final int TRUNC_PREFIX_LEN- See Also:
-
-
Constructor Details
-
FileDumper
FileDumper(String dir, boolean clobber, JavaTypeInstance type, SummaryDumper summaryDumper, TypeUsageInformation typeUsageInformation, Options options, AtomicInteger truncCount, IllegalIdentifierDump illegalIdentifierDump) -
FileDumper
FileDumper(String dir, String encoding, boolean clobber, JavaTypeInstance type, SummaryDumper summaryDumper, TypeUsageInformation typeUsageInformation, Options options, AtomicInteger truncCount, IllegalIdentifierDump illegalIdentifierDump)
-
-
Method Details
-
mkFilename
-
close
public void close() -
write
- Specified by:
writein classStreamDumper
-
getFileName
String getFileName() -
addSummaryError
-
withTypeUsageInformation
-
getAdditionalOutputStream
-