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.CannotCreate
Nested classes/interfaces inherited from interface org.benf.cfr.reader.util.output.MethodErrorCollector
MethodErrorCollector.SummaryDumperMethodErrorCollector
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private String
private static final int
private final String
private final SummaryDumper
private static final int
private static int
private final JavaTypeInstance
private final BufferedWriter
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
ConstructorsConstructorDescriptionFileDumper
(String dir, boolean clobber, JavaTypeInstance type, SummaryDumper summaryDumper, TypeUsageInformation typeUsageInformation, Options options, IllegalIdentifierDump illegalIdentifierDump) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSummaryError
(Method method, String s) void
close()
getAdditionalOutputStream
(String description) (package private) String
private String
mkFilename
(String dir, Pair<String, String> names, SummaryDumper summaryDumper) withTypeUsageInformation
(TypeUsageInformation innerclassTypeUsageInformation) protected void
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 Details
-
dir
-
clobber
private boolean clobber -
type
-
summaryDumper
-
path
-
writer
-
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:
-
truncCount
private static int truncCount
-
-
Constructor Details
-
FileDumper
FileDumper(String dir, boolean clobber, JavaTypeInstance type, SummaryDumper summaryDumper, TypeUsageInformation typeUsageInformation, Options options, IllegalIdentifierDump illegalIdentifierDump)
-
-
Method Details
-
mkFilename
-
close
public void close() -
write
- Specified by:
write
in classStreamDumper
-
getFileName
String getFileName() -
addSummaryError
-
withTypeUsageInformation
-
getAdditionalOutputStream
-