blob: 49ed565f13e9a07e08a72c35da10113bfca2238e [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 class LibraryField extends DexClassAndField
implements LibraryMember<DexEncodedField, DexField> {
public LibraryField(DexLibraryClass holder, DexEncodedField field) {
super(holder, field);
}
@Override
public DexLibraryClass getHolder() {
DexClass holder = super.getHolder();
assert holder.isLibraryClass();
return holder.asLibraryClass();
}
@Override
public boolean isLibraryField() {
return true;
}
@Override
public LibraryField asLibraryField() {
return this;
}
@Override
public boolean isLibraryMember() {
return true;
}
}