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) booleanisVariableInScope(String variableName) voidpopScope()voidvoidvoidpushVariableName(String name) voidvoidsetConstantPrinter(NumericConstantPrinter printer) voidsetTopLevelClass(ClassType topLevelClass)
-
Constructor Details
-
ImportCollector
-
-
Method Details
-
setConstantPrinter
-
getConstantPrinter
-
getImports
-
setTopLevelClass
-
pushScope
-
popScope
public void popScope() -
pushVariableScope
public void pushVariableScope() -
isVariableInScope
-
pushVariableName
-
popVariableScope
public void popVariableScope() -
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
-