blob: 6b6ce21574815c2dab96d6c6d16f68ccb9ad3e8f [file] [log] [blame]
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 TestInspectable}.
*
* Generated by {@link android.processor.view.inspector.InspectionCompanionGenerator}
* on behalf of {@link android.processor.view.inspector.InspectionCompanionGeneratorTest}.
*/
public final class TestInspectable$$InspectionCompanion implements InspectionCompanion<TestInspectable> {
/**
* Set by {@link #mapProperties(PropertyMapper)} once properties have been mapped.
*/
private boolean mPropertiesMapped = false;
/**
* Property ID of {@code suppliedAttributeProperty}.
*/
private int mSuppliedAttributePropertyId;
@Override
public void mapProperties(PropertyMapper propertyMapper) {
mSuppliedAttributePropertyId = propertyMapper.mapInt("suppliedAttributeProperty",
0xdecafbad);
mPropertiesMapped = true;
}
@Override
public void readProperties(TestInspectable inspectable, PropertyReader propertyReader) {
if (!mPropertiesMapped) {
throw new InspectionCompanion.UninitializedPropertyMapException();
}
propertyReader.readInt(mSuppliedAttributePropertyId, inspectable.getSuppliedAttributeProperty());
}
}