Package org.benf.cfr.reader.util.output
Class AbstractDumper
- java.lang.Object
-
- org.benf.cfr.reader.util.output.AbstractDumper
-
- All Implemented Interfaces:
Dumper
,MethodErrorCollector
- Direct Known Subclasses:
StreamDumper
,TokenStreamDumper
,ToStringDumper
abstract class AbstractDumper 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
-
-
Field Summary
Fields Modifier and Type Field Description (package private) MovableDumperContext
context
protected static java.lang.String
STANDARD_INDENT
-
Constructor Summary
Constructors Constructor Description AbstractDumper(MovableDumperContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Dumper
beginBlockComment(boolean inline)
Dumper
comment(java.lang.String s)
Dumper
dump(JavaTypeInstance javaTypeInstance)
Dumper
endBlockComment()
void
enqueuePendingCarriageReturn()
int
getCurrentLine()
int
getIndentLevel()
void
informBytecodeLoc(HasByteCodeLoc loc)
Dumper
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, canEmitClass, close, dump, dump, endCodeln, explicitIndent, fieldName, getAdditionalOutputStream, getObfuscationMapping, getOutputCount, getTypeUsageInformation, identifier, indent, keyword, label, literal, methodName, newln, operator, packageName, print, print, separator, withTypeUsageInformation
-
-
-
-
Field Detail
-
STANDARD_INDENT
protected static final java.lang.String STANDARD_INDENT
- See Also:
- Constant Field Values
-
context
final MovableDumperContext context
-
-
Constructor Detail
-
AbstractDumper
AbstractDumper(MovableDumperContext context)
-
-
Method Detail
-
beginBlockComment
public Dumper beginBlockComment(boolean inline)
- Specified by:
beginBlockComment
in interfaceDumper
-
endBlockComment
public Dumper endBlockComment()
- Specified by:
endBlockComment
in interfaceDumper
-
enqueuePendingCarriageReturn
public void enqueuePendingCarriageReturn()
- Specified by:
enqueuePendingCarriageReturn
in interfaceDumper
-
dump
public Dumper dump(JavaTypeInstance javaTypeInstance)
-
removePendingCarriageReturn
public Dumper removePendingCarriageReturn()
- Specified by:
removePendingCarriageReturn
in interfaceDumper
-
getCurrentLine
public int getCurrentLine()
- Specified by:
getCurrentLine
in interfaceDumper
-
getIndentLevel
public int getIndentLevel()
- Specified by:
getIndentLevel
in interfaceDumper
-
informBytecodeLoc
public void informBytecodeLoc(HasByteCodeLoc loc)
- Specified by:
informBytecodeLoc
in interfaceDumper
-
-