Class ToStringDumper
java.lang.Object
org.benf.cfr.reader.util.output.AbstractDumper
org.benf.cfr.reader.util.output.ToStringDumper
- All Implemented Interfaces:
Dumper, MethodErrorCollector
-
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 Set<JavaTypeInstance> private final StringBuilderprivate final TypeUsageInformationFields inherited from class AbstractDumper
context, STANDARD_INDENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSummaryError(Method method, String s) booleancanEmitClass(JavaTypeInstance type) voidclose()private voiddoIndent()dump(JavaTypeInstance javaTypeInstance, TypeContext typeContext) ///////////fieldName(String name, JavaTypeInstance owner, boolean hiddenDeclaration, boolean isStatic, boolean defines) getAdditionalOutputStream(String description) intidentifier(String s, Object ref, boolean defines) voidindent(int diff) methodName(String s, MethodPrototype p, boolean special, boolean defines) newln()print(char c) private voidtoString()static StringwithTypeUsageInformation(TypeUsageInformation innerclassTypeUsageInformation) Methods inherited from class AbstractDumper
beginBlockComment, comment, dump, endBlockComment, enqueuePendingCarriageReturn, getCurrentLine, getIndentLevel, informBytecodeLoc, removePendingCarriageReturn
-
Field Details
-
sb
-
typeUsageInformation
-
emitted
-
-
Constructor Details
-
ToStringDumper
public ToStringDumper()
-
-
Method Details
-
toString
-
label
-
processPendingCR
private void processPendingCR() -
identifier
-
methodName
-
packageName
-
print
-
print
-
newln
-
endCodeln
-
keyword
-
operator
-
separator
-
literal
-
doIndent
private void doIndent() -
indent
public void indent(int diff) -
explicitIndent
-
dump
-
getTypeUsageInformation
-
getObfuscationMapping
-
dump
Description copied from interface:Dumper/////////// -
fieldName
public Dumper fieldName(String name, JavaTypeInstance owner, boolean hiddenDeclaration, boolean isStatic, boolean defines) -
toString
-
addSummaryError
-
close
public void close() -
canEmitClass
-
getOutputCount
public int getOutputCount() -
withTypeUsageInformation
-
getAdditionalOutputStream
-