Class ImportCollector
java.lang.Object
net.covers1624.coffeegrinder.source.ImportCollector
- All Implemented Interfaces:
ITypePrinter
Created by covers1624 on 8/8/21.
-
Constructor Summary
ConstructorsConstructorDescriptionImportCollector(@Nullable TypeResolver typeResolver, boolean alwaysPrintFullyQualified) -
Method Summary
Modifier and TypeMethodDescriptionfinal LineBufferannotation(Annotation ann) final LineBufferannotations(Iterable<Annotation> annotations) annotationValue(Object obj) collect(AnnotatedType type) collect(AType type, TypeAnnotationTree annotations) collect(ClassType type, TypeAnnotationTree annotations) collect(ClassType type, TypeAnnotationTree annotations, boolean targeted, boolean inferredTypeArgs) collectSimpleTypeParam(TypeParameter parameter) collectVarargs(AnnotatedType type, boolean isVarargs) booleandoesStaticFieldRequireQualifier(ClassType targetClassType, Field field) booleandoesStaticMethodRequireQualifier(ClassType targetClassType, String methodName) @Nullable NumericConstantPrintergetImports(@Nullable ClassDecl context) booleanisFieldHidden(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
public ImportCollector(@Nullable @Nullable TypeResolver typeResolver, boolean alwaysPrintFullyQualified)
-
-
Method Details
-
setConstantPrinter
-
getConstantPrinter
-
setIsVariableDeclared
-
getImports
-
setTopLevelClass
-
pushScope
-
popScope
public void popScope() -
collectSimpleTypeParam
-
collectTypeParam
-
annotations
-
annotation
-
annotationValue
-
print
- Specified by:
printin interfaceITypePrinter
-
collect
-
collectVarargs
-
collect
-
collect
-
collect
-
collect
-
collect
public String collect(ClassType type, TypeAnnotationTree annotations, boolean targeted, boolean inferredTypeArgs) -
isTypeHidden
-
isFieldHidden
-
doesStaticFieldRequireQualifier
-
isMethodHidden
-
doesStaticMethodRequireQualifier
-