blob: e24d1a6476e3cff429facabd09567fe6dd27ce9f [file] [log] [blame]
// Copyright (c) 2019, the R8 project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
package com.android.tools.r8.ir.analysis.proto.schema;
import com.android.tools.r8.graph.AppView;
import com.android.tools.r8.ir.code.IRCode;
import com.android.tools.r8.ir.code.Instruction;
public abstract class ProtoObject {
public abstract Instruction buildIR(AppView<?> appView, IRCode code);
public boolean isProtoFieldObject() {
return false;
}
public ProtoFieldObject asProtoFieldObject() {
return null;
}
public boolean isDeadProtoFieldObject() {
return false;
}
public boolean isLiveProtoFieldObject() {
return false;
}
public LiveProtoFieldObject asLiveProtoFieldObject() {
return null;
}
public boolean isProtoTypeObject() {
return false;
}
public ProtoTypeObject asProtoTypeObject() {
return null;
}
}