public class LinearAnnotatedTypeFactory extends BasicAnnotatedTypeFactory<LinearChecker>
Unusable
qualifier to a type if it represents:
Linear
reference once it is "used up"AnnotatedTypeFactory.InheritedFromClassAnnotator
checker, defaults, flow, FLOW_BY_DEFAULT, poly, treeAnnotator, typeAnnotator, useFlow
annotations, atypes, elements, env, fromTreeCache, qualHierarchy, root, trees, types, uid, visitorState
Constructor and Description |
---|
LinearAnnotatedTypeFactory(LinearChecker checker,
@Nullable CompilationUnitTree root) |
Modifier and Type | Method and Description |
---|---|
void |
annotateImplicit(@Nullable Element elt,
@Mutable AnnotatedTypeMirror type)
Case 1: type of class declaration
|
Flow |
createFlow(LinearChecker checker,
@Nullable CompilationUnitTree tree,
Set<@Nullable AnnotationMirror> flowQuals)
Returns a
Flow instance that performs flow sensitive analysis
to infer qualifiers on unqualified types. |
annotateImplicit, annotateImplicit, constructorFromUse, createFlowQualifiers, createTreeAnnotator, createTypeAnnotator, getDefaultedAnnotatedType, methodFromUse, postDirectSuperTypes, postInit
addAliasedAnnotation, aliasedAnnotation, annotateInheritedFromClass, canHaveAnnotatedTypeParameters, createLRUCache, declarationFromElement, fromClass, fromElement, fromElement, fromElement, fromExpression, fromMember, fromNewClass, fromTypeTree, getAnnotatedType, getAnnotatedType, getAnnotatedType, getAnnotatedType, getAnnotatedType, getAnnotatedType, getAnnotatedType, getAnnotatedType, getAnnotatedTypeFromTypeTree, getBoxedType, getCurrentClassTree, getCurrentClassType, getCurrentMethodReceiver, getDeclAnnotation, getEnclosingType, getImplicitReceiverType, getPath, getQualifierHierarchy, getReceiverType, getSelfType, getUnboxedType, getVisitorState, isAnyEnclosingThisDeref, isMostEnclosingThisDeref, isSupportedQualifier, isWithinConstructor, postAsMemberOf, toAnnotatedType, toString, typeVariablesFromUse, unify
public LinearAnnotatedTypeFactory(LinearChecker checker, @Nullable CompilationUnitTree root)
public void annotateImplicit(@Nullable Element elt, @Mutable AnnotatedTypeMirror type)
annotateImplicit
in class BasicAnnotatedTypeFactory<LinearChecker>
elt
- an elementtype
- the type obtained from elt
public Flow createFlow(LinearChecker checker, @Nullable CompilationUnitTree tree, Set<@Nullable AnnotationMirror> flowQuals)
BasicAnnotatedTypeFactory
Flow
instance that performs flow sensitive analysis
to infer qualifiers on unqualified types.createFlow
in class BasicAnnotatedTypeFactory<LinearChecker>
checker
- the checkertree
- the compilation unit associated with this factoryflowQuals
- the qualifiers to infer