checkers.linear
Class LinearAnnotatedTypeFactory
java.lang.Object
checkers.types.AnnotatedTypeFactory
checkers.types.BasicAnnotatedTypeFactory<LinearChecker>
checkers.linear.LinearAnnotatedTypeFactory
public class LinearAnnotatedTypeFactory
extends BasicAnnotatedTypeFactory<LinearChecker>
Methods inherited from class checkers.types.AnnotatedTypeFactory |
aliasedAnnotation, annotateInheritedFromClass, constructorFromUse, createLRUCache, declarationFromElement, fromClass, fromElement, fromElement, fromElement, fromExpression, fromMember, fromTypeTree, getAnnotatedType, getAnnotatedType, getAnnotatedType, getAnnotatedType, getAnnotatedType, getAnnotatedType, getAnnotatedType, getAnnotatedType, getAnnotatedType, getAnnotatedType, getAnnotatedTypeFromTypeTree, getBoxedType, getCurrentClassType, getCurrentMethodReceiver, getEnclosingType, getImplicitReceiverType, getPath, getQualifierHierarchy, getReceiver, getSelfType, getUnboxedType, getVisitorState, isMostEnclosingThisDeref, isWithinConstructor, postAsMemberOf, unify |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LinearAnnotatedTypeFactory
public LinearAnnotatedTypeFactory(LinearChecker checker,
CompilationUnitTree root)
annotateImplicit
public void annotateImplicit(Element elt,
AnnotatedTypeMirror type)
- Description copied from class:
AnnotatedTypeFactory
- Adds implicit annotations to a type obtained from a
Element
. By
default, this method does nothing. Subclasses should use this method to
implement implicit annotations specific to their type systems.
- Overrides:
annotateImplicit
in class BasicAnnotatedTypeFactory<LinearChecker>
- Parameters:
elt
- an elementtype
- the type obtained from elt
createFlow
public Flow createFlow(LinearChecker checker,
CompilationUnitTree tree,
Set<AnnotationMirror> flowQuals)
- Description copied from class:
BasicAnnotatedTypeFactory
- Returns a
Flow
instance that performs flow sensitive analysis
to infer qualifiers on unqualified types.
- Overrides:
createFlow
in class BasicAnnotatedTypeFactory<LinearChecker>
- Parameters:
checker
- the checkertree
- the compilation unit associated with this factoryflowQuals
- the qualifiers to infer
- Returns:
- the flow analysis class