|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.android.tools.lint.client.api.LintRequest
@Beta public class LintRequest
Information about a request to run lint
NOTE: This is not a public or final API; if you rely on this be prepared to adjust your code for the next tools release.
Constructor Summary | |
---|---|
LintRequest(LintClient client,
java.util.List<java.io.File> files)
Creates a new LintRequest, to be passed to a LintDriver |
Method Summary | |
---|---|
LintClient |
getClient()
Returns the lint client requesting the lint check |
java.util.List<java.io.File> |
getFiles()
Returns the set of files to check with lint. |
java.util.EnumSet<Scope> |
getScope()
Sets the scope to use; lint checks which require a wider scope set will be ignored |
java.lang.Boolean |
isReleaseMode()
Returns true if lint is invoked as part of a release mode build,
false if it is part of a debug mode build, and null if
the release mode is not known |
LintRequest |
setReleaseMode(java.lang.Boolean releaseMode)
Sets the release mode. |
LintRequest |
setScope(java.util.EnumSet<Scope> scope)
Sets the scope to use; lint checks which require a wider scope set will be ignored |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LintRequest(@NonNull LintClient client, @NonNull java.util.List<java.io.File> files)
LintDriver
client
- the tool wrapping the analyzer, such as an IDE or a CLIfiles
- the set of files to check with lint. This can reference Android projects,
or directories containing Android projects, or individual XML or Java files
(typically for incremental IDE analysis).Method Detail |
---|
@NonNull public LintClient getClient()
@NonNull public java.util.List<java.io.File> getFiles()
@Nullable public java.util.EnumSet<Scope> getScope()
@NonNull public LintRequest setScope(@Nullable java.util.EnumSet<Scope> scope)
scope
- the scope
@Nullable public java.lang.Boolean isReleaseMode()
true
if lint is invoked as part of a release mode build,
false
if it is part of a debug mode build, and null
if
the release mode is not known
@NonNull public LintRequest setReleaseMode(@Nullable java.lang.Boolean releaseMode)
true
if lint is invoked as part of a
release mode build, false
if it is part of a debug mode build,
and null
if the release mode is not known
releaseMode
- true if this lint is running in release mode, null if not known
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |