checkers.propkey
Class PropertyKeyAnnotatedTypeFactory<Checker extends PropertyKeyChecker>

java.lang.Object
  extended by checkers.types.AnnotatedTypeFactory
      extended by checkers.types.BasicAnnotatedTypeFactory<Checker>
          extended by checkers.propkey.PropertyKeyAnnotatedTypeFactory<Checker>
Direct Known Subclasses:
CompilerMessagesAnnotatedTypeFactory, LocalizableKeyAnnotatedTypeFactory

public class PropertyKeyAnnotatedTypeFactory<Checker extends PropertyKeyChecker>
extends BasicAnnotatedTypeFactory<Checker>

This AnnotatedTypeFactory adds PropertyKey annotations to String literals that contain values from lookupKeys.

Author:
wmdietl

Nested Class Summary
Modifier and Type Class and Description
protected  class PropertyKeyAnnotatedTypeFactory.KeyLookupTreeAnnotator
          This TreeAnnotator checks for every String literal whether it is included in the lookup keys.
 
Nested classes/interfaces inherited from class checkers.types.AnnotatedTypeFactory
AnnotatedTypeFactory.InheritedFromClassAnnotator
 
Field Summary
Modifier and Type Field and Description
 
Fields inherited from class checkers.types.BasicAnnotatedTypeFactory
defaults, flow, FLOW_BY_DEFAULT, poly, treeAnnotator, typeAnnotator, useFlow
 
Fields inherited from class checkers.types.AnnotatedTypeFactory
annotations, atypes, elements, env, fromTreeCache, qualHierarchy, root, trees, types, visitorState
 
Constructor Summary
Constructor and Description
PropertyKeyAnnotatedTypeFactory(Checker checker, CompilationUnitTree root)
           
 
Method Summary
Modifier and Type Method and Description
 TreeAnnotator createTreeAnnotator(Checker checker)
          Returns a TreeAnnotator that adds annotations to a type based on the contents of a tree.
 
Methods inherited from class checkers.types.BasicAnnotatedTypeFactory
annotateImplicit, annotateImplicit, createFlow, createFlowQualifiers, createTypeAnnotator, methodFromUse, postDirectSuperTypes
 
Methods inherited from class checkers.types.AnnotatedTypeFactory
aliasedAnnotation, annotateInheritedFromClass, canHaveAnnotatedTypeParameters, constructorFromUse, createLRUCache, declarationFromElement, fromClass, fromElement, fromElement, fromElement, fromExpression, fromMember, fromNewClass, 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
 

Constructor Detail

PropertyKeyAnnotatedTypeFactory

public PropertyKeyAnnotatedTypeFactory(Checker checker,
                                       CompilationUnitTree root)
Method Detail

createTreeAnnotator

public TreeAnnotator createTreeAnnotator(Checker checker)
Description copied from class: BasicAnnotatedTypeFactory
Returns a TreeAnnotator that adds annotations to a type based on the contents of a tree. Subclasses may override this method to specify more appriopriate TreeAnnotator

Overrides:
createTreeAnnotator in class BasicAnnotatedTypeFactory<Checker extends PropertyKeyChecker>
Returns:
a tree annotator