|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.android.tools.lint.detector.api.Detector
com.android.tools.lint.detector.api.ResourceXmlDetector
com.android.tools.lint.detector.api.LayoutDetector
com.android.tools.lint.checks.ChildCountDetector
public class ChildCountDetector
Check which makes sure that views have the expected number of declared children (e.g. at most one in ScrollViews and none in AdapterViews)
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.android.tools.lint.detector.api.Detector |
|---|
com.android.tools.lint.detector.api.Detector.ClassScanner, com.android.tools.lint.detector.api.Detector.JavaScanner, com.android.tools.lint.detector.api.Detector.OtherFileScanner, com.android.tools.lint.detector.api.Detector.XmlScanner |
| Field Summary | |
|---|---|
static com.android.tools.lint.detector.api.Issue |
ADAPTER_VIEW_ISSUE
The main issue discovered by this detector |
static com.android.tools.lint.detector.api.Issue |
SCROLLVIEW_ISSUE
The main issue discovered by this detector |
| Fields inherited from interface com.android.tools.lint.detector.api.Detector.XmlScanner |
|---|
ALL |
| Constructor Summary | |
|---|---|
ChildCountDetector()
Constructs a new ChildCountDetector |
|
| Method Summary | |
|---|---|
java.util.Collection<java.lang.String> |
getApplicableElements()
|
com.android.tools.lint.detector.api.Speed |
getSpeed()
|
void |
visitElement(com.android.tools.lint.detector.api.XmlContext context,
org.w3c.dom.Element element)
|
| Methods inherited from class com.android.tools.lint.detector.api.LayoutDetector |
|---|
appliesTo, hasPadding, isHeightFillParent, isWidthFillParent |
| Methods inherited from class com.android.tools.lint.detector.api.ResourceXmlDetector |
|---|
appliesTo, run |
| Methods inherited from class com.android.tools.lint.detector.api.Detector |
|---|
afterCheckFile, afterCheckLibraryProject, afterCheckProject, appliesToFolder, appliesToResourceRefs, beforeCheckFile, beforeCheckLibraryProject, beforeCheckProject, checkCall, checkClass, checkInstruction, createJavaVisitor, getApplicableAsmNodeTypes, getApplicableAttributes, getApplicableCallNames, getApplicableCallOwners, getApplicableFiles, getApplicableMethodNames, getApplicableNodeTypes, visitAttribute, visitDocument, visitElementAfter, visitMethod, 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.XmlScanner |
|---|
getApplicableAttributes, visitAttribute, visitDocument, visitElementAfter |
| Field Detail |
|---|
public static final com.android.tools.lint.detector.api.Issue SCROLLVIEW_ISSUE
public static final com.android.tools.lint.detector.api.Issue ADAPTER_VIEW_ISSUE
| Constructor Detail |
|---|
public ChildCountDetector()
ChildCountDetector
| Method Detail |
|---|
@NonNull public com.android.tools.lint.detector.api.Speed getSpeed()
getSpeed in class com.android.tools.lint.detector.api.Detectorpublic java.util.Collection<java.lang.String> getApplicableElements()
getApplicableElements in interface com.android.tools.lint.detector.api.Detector.XmlScannergetApplicableElements in class com.android.tools.lint.detector.api.Detector
public void visitElement(@NonNull
com.android.tools.lint.detector.api.XmlContext context,
@NonNull
org.w3c.dom.Element element)
visitElement in interface com.android.tools.lint.detector.api.Detector.XmlScannervisitElement in class com.android.tools.lint.detector.api.Detector
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||