public class GroovyGradleDetector
extends com.android.tools.lint.checks.GradleDetector
GradleDetector using a real Groovy AST,
which the Gradle plugin has access to.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.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.Implementation |
IMPLEMENTATION |
ACCIDENTAL_OCTAL, ANDROID_WEAR_GROUP_ID, APP_PLUGIN_ID, BUNDLED_GMS, COMPATIBILITY, DEPENDENCY, DEPRECATED, DEV_MODE_OBSOLETE, DUPLICATE_CLASSES, FIREBASE_GROUP_ID, GMS_GROUP_ID, GOOGLE_SUPPORT_GROUP_ID, GRADLE_GETTER, GRADLE_PLUGIN_COMPATIBILITY, HIGH_APP_VERSION_CODE, IDE_SUPPORT, LIB_PLUGIN_ID, MIN_SDK_TOO_LOW, NOT_INTERPOLATED, OLD_APP_PLUGIN_ID, OLD_LIB_PLUGIN_ID, PATH, PLUS, REMOTE_VERSION, STRING_INTEGER| Constructor and Description |
|---|
GroovyGradleDetector() |
| Modifier and Type | Method and Description |
|---|---|
protected com.android.tools.lint.detector.api.Location |
createLocation(com.android.tools.lint.detector.api.Context context,
java.lang.Object cookie) |
protected int |
getStartOffset(com.android.tools.lint.detector.api.Context context,
java.lang.Object cookie) |
void |
visitBuildScript(com.android.tools.lint.detector.api.Context context) |
afterCheckProject, beforeCheckProject, checkDslPropertyAssignment, checkMethodCall, checkOctal, getAndroidLibraries, getArtifactCacheHome, getCompileDependencies, getGradleUserHome, getHighestKnownVersion, getJavaLibraries, getLatestVersionFromRemoteRepo, getPropertyKeyCookie, getPropertyPairCookie, handleGradleKotlinScript, isInterestingBlock, isInterestingProperty, isInterestingStatementafterCheckFile, afterCheckLibraryProject, analyzeCallGraph, applicableAnnotations, applicableSuperClasses, appliesTo, appliesTo, appliesToResourceRefs, beforeCheckFile, beforeCheckLibraryProject, checkBinaryResource, checkCall, checkClass, checkClass, checkFolder, checkInstruction, createPsiVisitor, createUastHandler, fix, getApplicableAsmNodeTypes, getApplicableAttributes, getApplicableCallNames, getApplicableCallOwners, getApplicableConstructorTypes, getApplicableElements, getApplicableFiles, getApplicableMethodNames, getApplicablePsiTypes, getApplicableReferenceNames, getApplicableUastTypes, getSpeed, isApplicableAnnotationUsage, isCallGraphRequired, run, visitAnnotationUsage, visitAttribute, visitClass, visitClass, visitConstructor, visitConstructor, visitDocument, visitElement, visitElementAfter, visitMethod, visitMethod, visitReference, visitReference, visitResourceReference, visitResourceReferencepublic static final com.android.tools.lint.detector.api.Implementation IMPLEMENTATION
public void visitBuildScript(@NonNull
com.android.tools.lint.detector.api.Context context)
visitBuildScript in interface com.android.tools.lint.detector.api.GradleScannervisitBuildScript in class com.android.tools.lint.checks.GradleDetectorprotected int getStartOffset(@NonNull
com.android.tools.lint.detector.api.Context context,
@NonNull
java.lang.Object cookie)
getStartOffset in class com.android.tools.lint.checks.GradleDetectorprotected com.android.tools.lint.detector.api.Location createLocation(@NonNull
com.android.tools.lint.detector.api.Context context,
@NonNull
java.lang.Object cookie)
createLocation in class com.android.tools.lint.checks.GradleDetector