|
|||||||||
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.SdkInfo
@Beta public abstract class SdkInfo
Information about SDKs
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 | |
---|---|
SdkInfo()
|
Method Summary | |
---|---|
abstract java.lang.String |
getParentViewClass(java.lang.String fqcn)
Returns the fully qualified name of the parent view, or null if the view is the root android.view.View class. |
abstract java.lang.String |
getParentViewName(java.lang.String name)
Returns the class name of the parent view, or null if the view is the root android.view.View class. |
boolean |
isLayout(java.lang.String tag)
Returns true if the given widget name is a layout |
boolean |
isSubViewOf(java.lang.String parentViewFqcn,
java.lang.String childViewFqcn)
Returns true if the given child view is the same class or a sub class of the given parent view class |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SdkInfo()
Method Detail |
---|
public boolean isSubViewOf(@NonNull java.lang.String parentViewFqcn, @NonNull java.lang.String childViewFqcn)
parentViewFqcn
- the fully qualified class name of the parent viewchildViewFqcn
- the fully qualified class name of the child view
@Nullable public abstract java.lang.String getParentViewClass(@NonNull java.lang.String fqcn)
fqcn
- the fully qualified class name of the view
@Nullable public abstract java.lang.String getParentViewName(@NonNull java.lang.String name)
getParentViewClass(String)
but without the package.
name
- the view class name to look up the parent for (not including
package)
public boolean isLayout(@NonNull java.lang.String tag)
tag
- the XML tag for the view
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |