Class ImportCollector
java.lang.Object
net.covers1624.coffeegrinder.source.ImportCollector
Created by covers1624 on 8/8/21.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal LineBufferannotations(Iterable<AnnotationData> annotations) annotationValue(Object obj) collect(AType type, TypeAnnotationData annotations) collect(ClassType type, TypeAnnotationData annotations) collect(ClassType type, TypeAnnotationData annotations, boolean targeted, boolean inferredTypeArgs) collectSimpleTypeParam(TypeParameter parameter) collectTypeParam(TypeParameter parameter, AnnotationSupplier supplier) booleandoesStaticFieldRequireQualifier(@Nullable ClassType targetClassType, Field field) booleandoesStaticMethodRequireQualifier(ClassType targetClassType, String methodName) @Nullable NumericConstantPrintergetImports(@Nullable ClassDecl context) booleanisFieldHidden(@Nullable ClassType target, Field field) booleanisMethodHidden(ClassType targetClassType, String methodName) booleanisTypeHidden(ClassType type) voidpopScope()voidvoidsetConstantPrinter(NumericConstantPrinter printer) voidsetIsVariableDeclared(Predicate<String> predicate) voidsetTopLevelClass(ClassType topLevelClass)
-
Constructor Details
-
ImportCollector
-
-
Method Details
-
setConstantPrinter
-
getConstantPrinter
-
setIsVariableDeclared
-
getImports
-
setTopLevelClass
-
pushScope
-
popScope
public void popScope() -
collectSimpleTypeParam
-
collectTypeParam
-
annotations
-
annotationValue
-
collect
-
collect
-
collect
-
collect
-
collect
public String collect(ClassType type, TypeAnnotationData annotations, boolean targeted, boolean inferredTypeArgs) -
isTypeHidden
-
isFieldHidden
-
doesStaticFieldRequireQualifier
-
isMethodHidden
-
doesStaticMethodRequireQualifier
-