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 Dumper
Dumper.CannotCreateNested classes/interfaces inherited from interface MethodErrorCollector
MethodErrorCollector.SummaryDumperMethodErrorCollector -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprotected final Set<JavaTypeInstance> protected final IllegalIdentifierDumpprotected final Optionsprivate final TypeUsageInformationFields inherited from class 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 TypeMethodDescriptionbooleancanEmitClass(JavaTypeInstance type) private voiddoIndent()dump(JavaTypeInstance javaTypeInstance, TypeContext typeContext) ///////////fieldName(String name, JavaTypeInstance owner, boolean hiddenDeclaration, boolean isStatic, boolean defines) intintidentifier(String s, Object ref, boolean defines) voidindent(int diff) methodName(String s, MethodPrototype p, boolean special, boolean defines) newln()print(char c) private voidprotected abstract voidMethods inherited from class AbstractDumper
beginBlockComment, comment, dump, endBlockComment, enqueuePendingCarriageReturn, getIndentLevel, informBytecodeLoc, removePendingCarriageReturnMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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
Description copied from interface:Dumper/////////// -
dump
-
canEmitClass
-
getOutputCount
public int getOutputCount() -
getCurrentLine
public int getCurrentLine()- Specified by:
getCurrentLinein interfaceDumper- Overrides:
getCurrentLinein classAbstractDumper
-