public class UnitsAnnotatedTypeFactory extends BasicAnnotatedTypeFactory<UnitsChecker>
AnnotatedTypeFactory.InheritedFromClassAnnotator
Modifier and Type | Field and Description |
---|---|
protected @Nullable AnnotationMirror |
mixedUnits |
checker, defaults, flow, FLOW_BY_DEFAULT, poly, treeAnnotator, typeAnnotator, useFlow
annotations, atypes, elements, env, fromTreeCache, qualHierarchy, root, trees, types, uid, visitorState
Constructor and Description |
---|
UnitsAnnotatedTypeFactory(UnitsChecker checker,
@Nullable CompilationUnitTree root) |
Modifier and Type | Method and Description |
---|---|
@Nullable AnnotationMirror |
aliasedAnnotation(@Nullable AnnotationMirror a)
Returns the canonical annotation for the passed annotation if it is
an alias of a canonical one in the framework.
|
protected TreeAnnotator |
createTreeAnnotator(UnitsChecker checker)
Returns a
TreeAnnotator that adds annotations to a type based
on the contents of a tree. |
annotateImplicit, annotateImplicit, annotateImplicit, constructorFromUse, createFlow, createFlowQualifiers, createTypeAnnotator, getDefaultedAnnotatedType, methodFromUse, postDirectSuperTypes, postInit
addAliasedAnnotation, 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
protected final @Nullable AnnotationMirror mixedUnits
public UnitsAnnotatedTypeFactory(UnitsChecker checker, @Nullable CompilationUnitTree root)
public @Nullable AnnotationMirror aliasedAnnotation(@Nullable AnnotationMirror a)
AnnotatedTypeFactory
aliasedAnnotation
in class AnnotatedTypeFactory
protected TreeAnnotator createTreeAnnotator(UnitsChecker checker)
BasicAnnotatedTypeFactory
TreeAnnotator
that adds annotations to a type based
on the contents of a tree.
Subclasses may override this method to specify more appriopriate
TreeAnnotator
createTreeAnnotator
in class BasicAnnotatedTypeFactory<UnitsChecker>