blob: 82a133c5daca78c770cf31b44e3cdbfdba862b60 [file] [log] [blame]
// Copyright (c) 2020, 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.graph;
public interface ProgramDefinition {
DexProgramClass getContextClass();
AccessFlags<?> getAccessFlags();
DexType getContextType();
DexDefinition getDefinition();
default boolean isProgramClass() {
return false;
}
default DexProgramClass asProgramClass() {
return null;
}
default boolean isProgramField() {
return false;
}
default ProgramField asProgramField() {
return null;
}
default boolean isProgramMethod() {
return false;
}
default ProgramMethod asProgramMethod() {
return null;
}
}