|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.android.tools.lint.detector.api.Detector com.android.tools.lint.checks.WrongCallDetector
public class WrongCallDetector
Checks for cases where the wrong call is being made
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 |
ISSUE
Calling the wrong method |
Constructor Summary | |
---|---|
WrongCallDetector()
Constructs a new WrongCallDetector |
Method Summary | |
---|---|
java.util.List<java.lang.String> |
getApplicableMethodNames()
|
static java.lang.String |
getNewValue(java.lang.String errorMessage,
com.android.tools.lint.detector.api.TextFormat format)
Given an error message produced by this lint detector for the given issue type, returns the new value to be put into the source code. |
static java.lang.String |
getOldValue(java.lang.String errorMessage,
com.android.tools.lint.detector.api.TextFormat format)
Given an error message produced by this lint detector for the given issue type, returns the old value to be replaced in the source code. |
com.android.tools.lint.detector.api.Speed |
getSpeed()
|
void |
visitMethod(com.android.tools.lint.detector.api.JavaContext context,
lombok.ast.AstVisitor visitor,
lombok.ast.MethodInvocation node)
|
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, getApplicableConstructorTypes, getApplicableElements, getApplicableFiles, getApplicableNodeTypes, getSpeed, run, visitAttribute, visitBuildScript, visitConstructor, visitDocument, visitElement, visitElementAfter, 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, getApplicableConstructorTypes, getApplicableNodeTypes, visitConstructor, visitResourceReference |
Field Detail |
---|
public static final com.android.tools.lint.detector.api.Issue ISSUE
Constructor Detail |
---|
public WrongCallDetector()
WrongCallDetector
Method Detail |
---|
@NonNull public com.android.tools.lint.detector.api.Speed getSpeed()
getSpeed
in class com.android.tools.lint.detector.api.Detector
@Nullable public java.util.List<java.lang.String> getApplicableMethodNames()
getApplicableMethodNames
in interface com.android.tools.lint.detector.api.Detector.JavaScanner
getApplicableMethodNames
in class com.android.tools.lint.detector.api.Detector
public void visitMethod(@NonNull com.android.tools.lint.detector.api.JavaContext context, @Nullable lombok.ast.AstVisitor visitor, @NonNull lombok.ast.MethodInvocation node)
visitMethod
in interface com.android.tools.lint.detector.api.Detector.JavaScanner
visitMethod
in class com.android.tools.lint.detector.api.Detector
@Nullable public static java.lang.String getOldValue(@NonNull java.lang.String errorMessage, @NonNull com.android.tools.lint.detector.api.TextFormat format)
Intended for IDE quickfix implementations.
errorMessage
- the error message associated with the errorformat
- the format of the error message
@Nullable public static java.lang.String getNewValue(@NonNull java.lang.String errorMessage, @NonNull com.android.tools.lint.detector.api.TextFormat format)
Intended for IDE quickfix implementations.
errorMessage
- the error message associated with the errorformat
- the format of the error message
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |