public class ImportCollector
extends java.lang.Object
| Constructor and Description |
|---|
ImportCollector(@Nullable TypeResolver typeResolver) |
| Modifier and Type | Method and Description |
|---|---|
LineBuffer |
annotations(java.lang.Iterable<AnnotationData> annotations) |
LineBuffer |
annotationValue(java.lang.Object obj) |
java.lang.String |
collect(AType type) |
java.lang.String |
collect(AType type,
TypeAnnotationData annotations) |
java.lang.String |
collect(ClassType type) |
java.lang.String |
collect(ClassType type,
TypeAnnotationData annotations) |
java.lang.String |
collect(ClassType type,
TypeAnnotationData annotations,
boolean targeted,
boolean inferredTypeArgs) |
java.lang.String |
collectSimpleTypeParam(TypeParameter parameter) |
java.lang.String |
collectTypeParam(TypeParameter parameter,
AnnotationSupplier supplier) |
boolean |
doesStaticFieldRequireQualifier(@Nullable ClassType targetClassType,
Field field) |
boolean |
doesStaticMethodRequireQualifier(ClassType targetClassType,
java.lang.String methodName) |
@Nullable NumericConstantPrinter |
getConstantPrinter() |
java.util.List<java.lang.String> |
getImports(@Nullable ClassDecl context) |
boolean |
isFieldHidden(@Nullable ClassType target,
Field field) |
boolean |
isMethodHidden(ClassType targetClassType,
java.lang.String methodName) |
boolean |
isTypeHidden(ClassType type) |
boolean |
isVariableInScope(java.lang.String variableName) |
void |
popScope() |
void |
popVariableScope() |
void |
pushScope(ClassType type) |
void |
pushVariableName(java.lang.String name) |
void |
pushVariableScope() |
void |
setConstantPrinter(NumericConstantPrinter printer) |
void |
setTopLevelClass(ClassType topLevelClass) |
public ImportCollector(@Nullable
@Nullable TypeResolver typeResolver)
public void setConstantPrinter(NumericConstantPrinter printer)
@Nullable public @Nullable NumericConstantPrinter getConstantPrinter()
public java.util.List<java.lang.String> getImports(@Nullable
@Nullable ClassDecl context)
public void setTopLevelClass(ClassType topLevelClass)
public void pushScope(ClassType type)
public void popScope()
public void pushVariableScope()
public boolean isVariableInScope(java.lang.String variableName)
public void pushVariableName(java.lang.String name)
public void popVariableScope()
public java.lang.String collectSimpleTypeParam(TypeParameter parameter)
public java.lang.String collectTypeParam(TypeParameter parameter, AnnotationSupplier supplier)
public final LineBuffer annotations(java.lang.Iterable<AnnotationData> annotations)
public LineBuffer annotationValue(java.lang.Object obj)
public java.lang.String collect(AType type)
public java.lang.String collect(AType type, TypeAnnotationData annotations)
public java.lang.String collect(ClassType type)
public java.lang.String collect(ClassType type, TypeAnnotationData annotations)
public java.lang.String collect(ClassType type, TypeAnnotationData annotations, boolean targeted, boolean inferredTypeArgs)
public boolean isTypeHidden(ClassType type)
public boolean doesStaticFieldRequireQualifier(@Nullable
@Nullable ClassType targetClassType,
Field field)
public boolean isMethodHidden(ClassType targetClassType, java.lang.String methodName)
public boolean doesStaticMethodRequireQualifier(ClassType targetClassType, java.lang.String methodName)