public class RegexQualifiedTypeFactory extends DefaultQualifiedTypeFactory<Regex>
Constructor and Description |
---|
RegexQualifiedTypeFactory(QualifierContext<Regex> checker) |
Modifier and Type | Method and Description |
---|---|
protected AnnotationConverter<Regex> |
createAnnotationConverter()
Constructs an
AnnotationConverter for the current type system. |
QualAnalysis<Regex> |
createFlowAnalysis(List<Pair<VariableElement,QualValue<Regex>>> fieldValues)
Configure dataflow to use the RegexQualifiedTransfer.
|
protected QualifierHierarchy<Regex> |
createQualifierHierarchy()
Constructs a
QualifierHierarchy for the current type system. |
protected TreeAnnotator<Regex> |
createTreeAnnotator()
Constructs the
TreeAnnotator to be used by this type factory. |
Regex |
getEffectiveQualifier(QualifiedTypeMirror<Regex> mirror) |
static int |
getGroupCount(String regex)
Returns the number of groups in the given regex String.
|
computeQualifiedTypeParameterBounds, constructorFromUse, createQualifiedTypes, createTypeAnnotator, createTypeHierarchy, createTypeVariableSubstitutor, getAnnotationConverter, getContext, getDeclAnnotations, getDecoratedElement, getPath, getQualifiedType, getQualifiedType, getQualifiedTypeFromTypeTree, getQualifiedTypeParameterBounds, getQualifiedTypes, getQualifierHierarchy, getReceiverType, getTypeHierarchy, methodFromUse, methodFromUse, postAsMemberOf, postDirectSuperTypes
public RegexQualifiedTypeFactory(QualifierContext<Regex> checker)
protected QualifierHierarchy<Regex> createQualifierHierarchy()
DefaultQualifiedTypeFactory
QualifierHierarchy
for the current type system.
Every checker must override this method to return an appropriate QualifierHierarchy
subclass for that checker.createQualifierHierarchy
in class DefaultQualifiedTypeFactory<Regex>
protected AnnotationConverter<Regex> createAnnotationConverter()
DefaultQualifiedTypeFactory
AnnotationConverter
for the current type system.
Every checker must override this method to return an appropriate AnnotationConverter
subclass for that checker.createAnnotationConverter
in class DefaultQualifiedTypeFactory<Regex>
protected TreeAnnotator<Regex> createTreeAnnotator()
DefaultQualifiedTypeFactory
TreeAnnotator
to be used by this type factory.
Checkers that need custom TreeAnnotator
behavior should
override this method to return an instance of their custom TreeAnnotator
subclass.createTreeAnnotator
in class DefaultQualifiedTypeFactory<Regex>
public static int getGroupCount(String regex)
public QualAnalysis<Regex> createFlowAnalysis(List<Pair<VariableElement,QualValue<Regex>>> fieldValues)
createFlowAnalysis
in interface QualifiedTypeFactory<Regex>
createFlowAnalysis
in class DefaultQualifiedTypeFactory<Regex>
fieldValues
- the initial field valuesQualAnalysis
to usepublic Regex getEffectiveQualifier(QualifiedTypeMirror<Regex> mirror)