| package com.android.inspectable; |
| |
| import android.view.inspector.InspectionCompanion; |
| import android.view.inspector.PropertyMapper; |
| import android.view.inspector.PropertyReader; |
| import java.lang.Override; |
| |
| /** |
| * Inspection companion for {@link Outer.Inner}. |
| * |
| * Generated by {@link android.processor.view.inspector.InspectionCompanionGenerator} |
| * on behalf of {@link android.processor.view.inspector.InspectionCompanionGeneratorTest}. |
| */ |
| public final class Outer$Inner$$InspectionCompanion implements InspectionCompanion<Outer.Inner> { |
| /** |
| * Set by {@link #mapProperties(PropertyMapper)} once properties have been mapped. |
| */ |
| private boolean mPropertiesMapped = false; |
| |
| @Override |
| public void mapProperties(PropertyMapper propertyMapper) { |
| mPropertiesMapped = true; |
| } |
| |
| @Override |
| public void readProperties(Outer.Inner inspectable, PropertyReader propertyReader) { |
| if (!mPropertiesMapped) { |
| throw new InspectionCompanion.UninitializedPropertyMapException(); |
| } |
| } |
| } |