public class DateFormatDetector
extends com.android.tools.lint.detector.api.Detector
implements com.android.tools.lint.detector.api.Detector.JavaPsiScanner
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.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,
com.intellij.psi.JavaElementVisitor visitor,
com.intellij.psi.PsiNewExpression node,
com.intellij.psi.PsiMethod constructor) |
afterCheckFile, afterCheckLibraryProject, afterCheckProject, applicableSuperClasses, appliesTo, appliesTo, appliesToFolder, appliesToResourceRefs, beforeCheckFile, beforeCheckLibraryProject, beforeCheckProject, checkBinaryResource, checkCall, checkClass, checkClass, checkClass, checkFolder, checkInstruction, createJavaVisitor, createPsiVisitor, getApplicableAsmNodeTypes, getApplicableAttributes, getApplicableCallNames, getApplicableCallOwners, getApplicableElements, getApplicableFiles, getApplicableMethodNames, getApplicableNodeTypes, getApplicablePsiTypes, getApplicableReferenceNames, getSpeed, getSpeed, run, visitAttribute, visitBuildScript, visitConstructor, visitDocument, visitElement, visitElementAfter, visitMethod, visitMethod, visitReference, visitResourceReference, visitResourceReferencepublic 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.JavaPsiScannergetApplicableConstructorTypes in class com.android.tools.lint.detector.api.Detectorpublic void visitConstructor(@NonNull
com.android.tools.lint.detector.api.JavaContext context,
@Nullable
com.intellij.psi.JavaElementVisitor visitor,
@NonNull
com.intellij.psi.PsiNewExpression node,
@NonNull
com.intellij.psi.PsiMethod constructor)
visitConstructor in interface com.android.tools.lint.detector.api.Detector.JavaPsiScannervisitConstructor in class com.android.tools.lint.detector.api.Detector