com.android.tools.lint.checks
Class DateFormatDetector

java.lang.Object
  extended by com.android.tools.lint.detector.api.Detector
      extended by com.android.tools.lint.checks.DateFormatDetector
All Implemented Interfaces:
com.android.tools.lint.detector.api.Detector.JavaScanner

public class DateFormatDetector
extends com.android.tools.lint.detector.api.Detector
implements com.android.tools.lint.detector.api.Detector.JavaScanner

Checks for errors related to Date Formats


Nested Class Summary
 
Nested classes/interfaces inherited from class com.android.tools.lint.detector.api.Detector
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.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
 
Field Summary
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 Summary
DateFormatDetector()
          Constructs a new DateFormatDetector
 
Method Summary
 java.util.List<java.lang.String> getApplicableConstructorTypes()
           
 com.android.tools.lint.detector.api.Speed getSpeed()
           
 void visitConstructor(com.android.tools.lint.detector.api.JavaContext context, lombok.ast.AstVisitor visitor, lombok.ast.ConstructorInvocation node, com.android.tools.lint.client.api.JavaParser.ResolvedMethod constructor)
           
 
Methods inherited from class com.android.tools.lint.detector.api.Detector
afterCheckFile, afterCheckLibraryProject, afterCheckProject, applicableSuperClasses, appliesTo, appliesTo, appliesToFolder, appliesToResourceRefs, beforeCheckFile, beforeCheckLibraryProject, beforeCheckProject, checkBinaryResource, checkCall, checkClass, checkClass, checkFolder, checkInstruction, createJavaVisitor, getApplicableAsmNodeTypes, getApplicableAttributes, getApplicableCallNames, getApplicableCallOwners, getApplicableElements, getApplicableFiles, getApplicableMethodNames, getApplicableNodeTypes, getSpeed, run, visitAttribute, visitBuildScript, visitDocument, visitElement, visitElementAfter, visitMethod, visitResourceReference
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.android.tools.lint.detector.api.Detector.JavaScanner
applicableSuperClasses, appliesToResourceRefs, checkClass, createJavaVisitor, getApplicableMethodNames, getApplicableNodeTypes, visitMethod, visitResourceReference
 

Field Detail

DATE_FORMAT

public static final com.android.tools.lint.detector.api.Issue DATE_FORMAT
Constructing SimpleDateFormat without an explicit locale


LOCALE_CLS

public static final java.lang.String LOCALE_CLS
See Also:
Constant Field Values

SIMPLE_DATE_FORMAT_CLS

public static final java.lang.String SIMPLE_DATE_FORMAT_CLS
See Also:
Constant Field Values
Constructor Detail

DateFormatDetector

public DateFormatDetector()
Constructs a new DateFormatDetector

Method Detail

getSpeed

@NonNull
public com.android.tools.lint.detector.api.Speed getSpeed()
Overrides:
getSpeed in class com.android.tools.lint.detector.api.Detector

getApplicableConstructorTypes

@Nullable
public java.util.List<java.lang.String> getApplicableConstructorTypes()
Specified by:
getApplicableConstructorTypes in interface com.android.tools.lint.detector.api.Detector.JavaScanner
Overrides:
getApplicableConstructorTypes in class com.android.tools.lint.detector.api.Detector

visitConstructor

public void visitConstructor(@NonNull
                             com.android.tools.lint.detector.api.JavaContext context,
                             @Nullable
                             lombok.ast.AstVisitor visitor,
                             @NonNull
                             lombok.ast.ConstructorInvocation node,
                             @NonNull
                             com.android.tools.lint.client.api.JavaParser.ResolvedMethod constructor)
Specified by:
visitConstructor in interface com.android.tools.lint.detector.api.Detector.JavaScanner
Overrides:
visitConstructor in class com.android.tools.lint.detector.api.Detector