|
|||||||||
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.
Field Summary | |
---|---|
protected LintClient |
mClient
|
protected java.util.List<java.io.File> |
mFiles
|
protected java.util.Collection<Project> |
mProjects
|
protected java.lang.Boolean |
mReleaseMode
|
protected java.util.EnumSet<Scope> |
mScope
|
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.Collection<Project> |
getProjects()
Gets the projects for the lint requests. |
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 |
void |
setProjects(java.util.Collection<Project> projects)
Sets the projects for the lint requests. |
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 |
Field Detail |
---|
@NonNull protected final LintClient mClient
@NonNull protected final java.util.List<java.io.File> mFiles
@Nullable protected java.util.EnumSet<Scope> mScope
@Nullable protected java.lang.Boolean mReleaseMode
@Nullable protected java.util.Collection<Project> mProjects
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
@Nullable public java.util.Collection<Project> getProjects()
getFiles()
directories and look for projects via LintClient.isProjectDirectory(java.io.File)
. However, this method allows a lint client to
set up all the projects ahead of time, and associate those projects with native resources
(in an IDE for example, each lint project can be associated with the corresponding IDE
project).
public void setProjects(@Nullable java.util.Collection<Project> projects)
getFiles()
directories and look for projects via LintClient.isProjectDirectory(java.io.File)
. However, this method allows a lint client to
set up all the projects ahead of time, and associate those projects with native resources
(in an IDE for example, each lint project can be associated with the corresponding IDE
project).
projects
- a collection of projects, or null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |