public class UnitsAnnotatedTypeFactory extends BasicAnnotatedTypeFactory<UnitsChecker>
AnnotatedTypeFactory.InheritedFromClassAnnotator
Modifier and Type | Field and Description |
---|---|
protected AnnotationMirror |
mixedUnits |
checker, defaults, flow, FLOW_BY_DEFAULT, poly, treeAnnotator, typeAnnotator, useFlow
elements, fromTreeCache, processingEnv, qualHierarchy, root, trees, types, uid, visitorState
Constructor and Description |
---|
UnitsAnnotatedTypeFactory(UnitsChecker checker,
CompilationUnitTree root) |
Modifier and Type | Method and Description |
---|---|
AnnotationMirror |
aliasedAnnotation(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, constructorFromUse, createFlow, createFlowQualifiers, createQualifierDefaults, createQualifierPolymorphism, createTypeAnnotator, methodFromUse, postDirectSuperTypes, postInit
addAliasedAnnotation, addAliasedDeclAnnotation, annotateInheritedFromClass, canHaveAnnotatedTypeParameters, createLRUCache, declarationFromElement, fromClass, fromElement, fromElement, fromElement, fromExpression, fromMember, fromNewClass, fromTypeTree, getAnnotatedType, getAnnotatedType, getAnnotatedType, getAnnotatedType, getAnnotatedType, getAnnotatedType, getAnnotatedType, getAnnotatedType, getAnnotatedTypeFromTypeTree, getAnnotationWithMetaAnnotation, getBoxedType, getCurrentClassTree, getCurrentClassType, getCurrentMethodReceiver, getDeclAnnotation, getDeclAnnotations, getDeclAnnotationTree, getDeclAnnotationWithMetaAnnotation, getDefaultedAnnotatedType, getElementUtils, getEnclosingType, getImplicitReceiverType, getPath, getProcessingEnv, getQualifierHierarchy, getReceiverType, getSelfType, getUnboxedType, getUninferredMethodTypeArgument, getVisitorState, isAnyEnclosingThisDeref, isMostEnclosingThisDeref, isSupportedQualifier, isWithinConstructor, postAsMemberOf, toAnnotatedType, toString, type, typeVariablesFromUse
protected final AnnotationMirror mixedUnits
public UnitsAnnotatedTypeFactory(UnitsChecker checker, CompilationUnitTree root)
public AnnotationMirror aliasedAnnotation(AnnotationMirror a)
AnnotatedTypeFactory
aliasedAnnotation
in class AnnotatedTypeFactory
a
- the qualifier to check for an aliasprotected 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>