checkers.regex
Class RegexAnnotatedTypeFactory
java.lang.Object
checkers.types.AnnotatedTypeFactory
checkers.types.BasicAnnotatedTypeFactory<RegexChecker>
checkers.regex.RegexAnnotatedTypeFactory
public class RegexAnnotatedTypeFactory
extends BasicAnnotatedTypeFactory<RegexChecker>
Adds Regex
to the type of tree, in two cases:
- a
String
literal that is a valid regular expression
- a
String
concatenation tree of two valid regular
expression values.
Adds Regex
to the type of each String
literal that is
a syntactically valid regular expression.
Fields inherited from class checkers.types.AnnotatedTypeFactory |
annotations, atypes, elements, env, fromTreeCache, qualHierarchy, root, trees, types, uid, visitorState |
Methods inherited from class checkers.types.AnnotatedTypeFactory |
addAliasedAnnotation, 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, postInit, toAnnotatedType, toString, unify |
RegexAnnotatedTypeFactory
public RegexAnnotatedTypeFactory(RegexChecker checker,
CompilationUnitTree root)
createTreeAnnotator
public TreeAnnotator createTreeAnnotator(RegexChecker 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<RegexChecker>
- Returns:
- a tree annotator