Package org.benf.cfr.reader.util.output
Class StreamDumper
java.lang.Object
org.benf.cfr.reader.util.output.AbstractDumper
org.benf.cfr.reader.util.output.StreamDumper
- All Implemented Interfaces:
Dumper
,MethodErrorCollector
- Direct Known Subclasses:
FileDumper
,StdIODumper
,StringStreamDumper
-
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 boolean
protected final Set<JavaTypeInstance>
protected final IllegalIdentifierDump
protected final Options
private final TypeUsageInformation
Fields inherited from class org.benf.cfr.reader.util.output.AbstractDumper
context, STANDARD_INDENT
-
Constructor Summary
ConstructorsConstructorDescriptionStreamDumper
(TypeUsageInformation typeUsageInformation, Options options, IllegalIdentifierDump illegalIdentifierDump, MovableDumperContext context) StreamDumper
(TypeUsageInformation typeUsageInformation, Options options, IllegalIdentifierDump illegalIdentifierDump, MovableDumperContext context, Set<JavaTypeInstance> emitted) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canEmitClass
(JavaTypeInstance type) private void
doIndent()
dump
(JavaTypeInstance javaTypeInstance, TypeContext typeContext) fieldName
(String name, JavaTypeInstance owner, boolean hiddenDeclaration, boolean isStatic, boolean defines) int
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
protected abstract void
Methods inherited from class org.benf.cfr.reader.util.output.AbstractDumper
beginBlockComment, comment, dump, endBlockComment, enqueuePendingCarriageReturn, getIndentLevel, informBytecodeLoc, removePendingCarriageReturn
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.benf.cfr.reader.util.output.Dumper
addSummaryError, close, getAdditionalOutputStream, withTypeUsageInformation
-
Field Details
-
typeUsageInformation
-
options
-
illegalIdentifierDump
-
convertUTF
private final boolean convertUTF -
emitted
-
-
Constructor Details
-
StreamDumper
StreamDumper(TypeUsageInformation typeUsageInformation, Options options, IllegalIdentifierDump illegalIdentifierDump, MovableDumperContext context) -
StreamDumper
StreamDumper(TypeUsageInformation typeUsageInformation, Options options, IllegalIdentifierDump illegalIdentifierDump, MovableDumperContext context, Set<JavaTypeInstance> emitted)
-
-
Method Details
-
getTypeUsageInformation
-
getObfuscationMapping
-
write
-
label
-
identifier
-
methodName
-
packageName
-
print
-
print
-
keyword
-
operator
-
separator
-
literal
-
newln
-
endCodeln
-
doIndent
private void doIndent() -
processPendingCR
private void processPendingCR() -
explicitIndent
-
indent
public void indent(int diff) -
fieldName
public Dumper fieldName(String name, JavaTypeInstance owner, boolean hiddenDeclaration, boolean isStatic, boolean defines) -
dump
-
dump
-
canEmitClass
-
getOutputCount
public int getOutputCount() -
getCurrentLine
public int getCurrentLine()- Specified by:
getCurrentLine
in interfaceDumper
- Overrides:
getCurrentLine
in classAbstractDumper
-