Class TypeUsageCollectingDumper
java.lang.Object
org.benf.cfr.reader.state.TypeUsageCollectingDumper
- 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 JavaRefTypeInstanceprivate final Set<JavaTypeInstance> private final Optionsprivate final Set<JavaRefTypeInstance> private final Set<DetectedStaticImport> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddStaticUsage(JavaRefTypeInstance clazz, String name) voidaddSummaryError(Method method, String s) beginBlockComment(boolean inline) booleancanEmitClass(JavaTypeInstance type) voidclose()dump(JavaTypeInstance javaTypeInstance) dump(JavaTypeInstance javaTypeInstance, TypeContext typeContext) ///////////voidfieldName(String name, JavaTypeInstance owner, boolean hiddenDeclaration, boolean isStatic, boolean defines) getAdditionalOutputStream(String description) intintintidentifier(String s, Object ref, boolean defines) voidindent(int diff) voidmethodName(String s, MethodPrototype p, boolean special, boolean defines) newln()print(char c) withTypeUsageInformation(TypeUsageInformation innerclassTypeUsageInformation)
-
Field Details
-
options
-
analysisType
-
refTypeInstanceSet
-
emitted
-
staticImports
-
-
Constructor Details
-
TypeUsageCollectingDumper
-
-
Method Details
-
addStaticUsage
-
getRealTypeUsageInformation
-
getTypeUsageInformation
- Specified by:
getTypeUsageInformationin interfaceDumper
-
getObfuscationMapping
- Specified by:
getObfuscationMappingin interfaceDumper
-
label
-
enqueuePendingCarriageReturn
public void enqueuePendingCarriageReturn()- Specified by:
enqueuePendingCarriageReturnin interfaceDumper
-
removePendingCarriageReturn
- Specified by:
removePendingCarriageReturnin interfaceDumper
-
keyword
-
operator
-
separator
-
literal
-
print
-
methodName
- Specified by:
methodNamein interfaceDumper
-
packageName
- Specified by:
packageNamein interfaceDumper
-
identifier
- Specified by:
identifierin interfaceDumper
-
print
-
newln
-
endCodeln
-
indent
-
explicitIndent
- Specified by:
explicitIndentin interfaceDumper
-
close
-
addSummaryError
- Specified by:
addSummaryErrorin interfaceDumper- Specified by:
addSummaryErrorin interfaceMethodErrorCollector
-
canEmitClass
- Specified by:
canEmitClassin interfaceDumper
-
fieldName
public Dumper fieldName(String name, JavaTypeInstance owner, boolean hiddenDeclaration, boolean isStatic, boolean defines) -
withTypeUsageInformation
- Specified by:
withTypeUsageInformationin interfaceDumper
-
comment
-
beginBlockComment
- Specified by:
beginBlockCommentin interfaceDumper
-
endBlockComment
- Specified by:
endBlockCommentin interfaceDumper
-
getOutputCount
public int getOutputCount()- Specified by:
getOutputCountin interfaceDumper
-
dump
-
dump
Description copied from interface:Dumper/////////// -
dump
-
getCurrentLine
public int getCurrentLine()- Specified by:
getCurrentLinein interfaceDumper
-
getIndentLevel
public int getIndentLevel()- Specified by:
getIndentLevelin interfaceDumper
-
informBytecodeLoc
- Specified by:
informBytecodeLocin interfaceDumper
-
getAdditionalOutputStream
- Specified by:
getAdditionalOutputStreamin interfaceDumper
-