public class DateFormatDetector
extends com.android.tools.lint.detector.api.Detector
implements com.android.tools.lint.detector.api.Detector.UastScanner
com.android.tools.lint.detector.api.Detector.BinaryResourceScanner, com.android.tools.lint.detector.api.Detector.ClassScanner, com.android.tools.lint.detector.api.Detector.GradleScanner, com.android.tools.lint.detector.api.Detector.JavaPsiScanner, com.android.tools.lint.detector.api.Detector.JavaScanner, com.android.tools.lint.detector.api.Detector.OtherFileScanner, com.android.tools.lint.detector.api.Detector.ResourceFolderScanner, com.android.tools.lint.detector.api.Detector.UastScanner, com.android.tools.lint.detector.api.Detector.XmlScanner
Modifier and Type | Field and Description |
---|---|
static com.android.tools.lint.detector.api.Issue |
DATE_FORMAT
Constructing SimpleDateFormat without an explicit locale
|
static java.lang.String |
LOCALE_CLS |
static java.lang.String |
SIMPLE_DATE_FORMAT_CLS |
Constructor and Description |
---|
DateFormatDetector()
Constructs a new
DateFormatDetector |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getApplicableConstructorTypes() |
void |
visitConstructor(com.android.tools.lint.detector.api.JavaContext context,
org.jetbrains.uast.UCallExpression node,
com.intellij.psi.PsiMethod constructor) |
afterCheckFile, afterCheckLibraryProject, afterCheckProject, applicableSuperClasses, appliesTo, appliesTo, appliesToResourceRefs, beforeCheckFile, beforeCheckLibraryProject, beforeCheckProject, checkBinaryResource, checkCall, checkClass, checkClass, checkClass, checkFolder, checkInstruction, createJavaVisitor, createPsiVisitor, createUastHandler, getApplicableAsmNodeTypes, getApplicableAttributes, getApplicableCallNames, getApplicableCallOwners, getApplicableElements, getApplicableFiles, getApplicableMethodNames, getApplicableNodeTypes, getApplicablePsiTypes, getApplicableReferenceNames, getApplicableUastTypes, getSpeed, getSpeed, run, visitAttribute, visitBuildScript, visitClass, visitClass, visitConstructor, visitConstructor, visitDocument, visitElement, visitElementAfter, visitMethod, visitMethod, visitMethod, visitReference, visitReference, visitResourceReference, visitResourceReference, visitResourceReference
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applicableSuperClasses, appliesToResourceRefs, createUastHandler, getApplicableMethodNames, getApplicablePsiTypes, getApplicableReferenceNames, getApplicableUastTypes, visitClass, visitClass, visitMethod, visitReference, visitResourceReference
public static final com.android.tools.lint.detector.api.Issue DATE_FORMAT
public static final java.lang.String LOCALE_CLS
public static final java.lang.String SIMPLE_DATE_FORMAT_CLS
public DateFormatDetector()
DateFormatDetector
@Nullable public java.util.List<java.lang.String> getApplicableConstructorTypes()
getApplicableConstructorTypes
in interface com.android.tools.lint.detector.api.Detector.UastScanner
getApplicableConstructorTypes
in class com.android.tools.lint.detector.api.Detector
public void visitConstructor(@NonNull com.android.tools.lint.detector.api.JavaContext context, @NonNull org.jetbrains.uast.UCallExpression node, @NonNull com.intellij.psi.PsiMethod constructor)
visitConstructor
in interface com.android.tools.lint.detector.api.Detector.UastScanner
visitConstructor
in class com.android.tools.lint.detector.api.Detector