Package org.benf.cfr.reader.util.output
Class DelegatingDumper
- java.lang.Object
-
- org.benf.cfr.reader.util.output.DelegatingDumper
-
- All Implemented Interfaces:
Dumper
,MethodErrorCollector
- Direct Known Subclasses:
BytecodeTrackingDumper
,Mapping.ObfuscationWrappingDumper
,TypeOverridingDumper
public abstract class DelegatingDumper extends java.lang.Object implements Dumper
-
-
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
-
-
Constructor Summary
Constructors Constructor Description DelegatingDumper(Dumper delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSummaryError(Method method, java.lang.String s)
Dumper
beginBlockComment(boolean inline)
boolean
canEmitClass(JavaTypeInstance type)
void
close()
Dumper
comment(java.lang.String s)
Dumper
dump(JavaTypeInstance javaTypeInstance)
Dumper
dump(JavaTypeInstance javaTypeInstance, TypeContext typeContext)
Dumper
dump(Dumpable d)
Dumper
endBlockComment()
Dumper
endCodeln()
void
enqueuePendingCarriageReturn()
Dumper
explicitIndent()
Dumper
fieldName(java.lang.String name, JavaTypeInstance owner, boolean hiddenDeclaration, boolean isStatic, boolean defines)
java.io.BufferedOutputStream
getAdditionalOutputStream(java.lang.String description)
int
getCurrentLine()
int
getIndentLevel()
ObfuscationMapping
getObfuscationMapping()
int
getOutputCount()
TypeUsageInformation
getTypeUsageInformation()
Dumper
identifier(java.lang.String s, java.lang.Object ref, boolean defines)
void
indent(int diff)
void
informBytecodeLoc(HasByteCodeLoc loc)
Dumper
keyword(java.lang.String s)
Dumper
label(java.lang.String s, boolean inline)
Dumper
literal(java.lang.String s, java.lang.Object o)
Dumper
methodName(java.lang.String s, MethodPrototype p, boolean special, boolean defines)
Dumper
newln()
Dumper
operator(java.lang.String s)
Dumper
packageName(JavaRefTypeInstance t)
Dumper
print(char c)
Dumper
print(java.lang.String s)
Dumper
removePendingCarriageReturn()
Dumper
separator(java.lang.String s)
Dumper
withTypeUsageInformation(TypeUsageInformation innerclassTypeUsageInformation)
-
-
-
Field Detail
-
delegate
protected Dumper delegate
-
-
Constructor Detail
-
DelegatingDumper
public DelegatingDumper(Dumper delegate)
-
-
Method Detail
-
getTypeUsageInformation
public TypeUsageInformation getTypeUsageInformation()
- Specified by:
getTypeUsageInformation
in interfaceDumper
-
getObfuscationMapping
public ObfuscationMapping getObfuscationMapping()
- Specified by:
getObfuscationMapping
in interfaceDumper
-
label
public Dumper label(java.lang.String s, boolean inline)
-
enqueuePendingCarriageReturn
public void enqueuePendingCarriageReturn()
- Specified by:
enqueuePendingCarriageReturn
in interfaceDumper
-
removePendingCarriageReturn
public Dumper removePendingCarriageReturn()
- Specified by:
removePendingCarriageReturn
in interfaceDumper
-
literal
public Dumper literal(java.lang.String s, java.lang.Object o)
-
methodName
public Dumper methodName(java.lang.String s, MethodPrototype p, boolean special, boolean defines)
- Specified by:
methodName
in interfaceDumper
-
packageName
public Dumper packageName(JavaRefTypeInstance t)
- Specified by:
packageName
in interfaceDumper
-
identifier
public Dumper identifier(java.lang.String s, java.lang.Object ref, boolean defines)
- Specified by:
identifier
in interfaceDumper
-
explicitIndent
public Dumper explicitIndent()
- Specified by:
explicitIndent
in interfaceDumper
-
getIndentLevel
public int getIndentLevel()
- Specified by:
getIndentLevel
in interfaceDumper
-
dump
public Dumper dump(JavaTypeInstance javaTypeInstance)
-
dump
public Dumper dump(JavaTypeInstance javaTypeInstance, TypeContext typeContext)
-
addSummaryError
public void addSummaryError(Method method, java.lang.String s)
- Specified by:
addSummaryError
in interfaceDumper
- Specified by:
addSummaryError
in interfaceMethodErrorCollector
-
canEmitClass
public boolean canEmitClass(JavaTypeInstance type)
- Specified by:
canEmitClass
in interfaceDumper
-
fieldName
public Dumper fieldName(java.lang.String name, JavaTypeInstance owner, boolean hiddenDeclaration, boolean isStatic, boolean defines)
-
withTypeUsageInformation
public Dumper withTypeUsageInformation(TypeUsageInformation innerclassTypeUsageInformation)
- Specified by:
withTypeUsageInformation
in interfaceDumper
-
beginBlockComment
public Dumper beginBlockComment(boolean inline)
- Specified by:
beginBlockComment
in interfaceDumper
-
endBlockComment
public Dumper endBlockComment()
- Specified by:
endBlockComment
in interfaceDumper
-
getOutputCount
public int getOutputCount()
- Specified by:
getOutputCount
in interfaceDumper
-
informBytecodeLoc
public void informBytecodeLoc(HasByteCodeLoc loc)
- Specified by:
informBytecodeLoc
in interfaceDumper
-
getAdditionalOutputStream
public java.io.BufferedOutputStream getAdditionalOutputStream(java.lang.String description)
- Specified by:
getAdditionalOutputStream
in interfaceDumper
-
getCurrentLine
public int getCurrentLine()
- Specified by:
getCurrentLine
in interfaceDumper
-
-