blob: da41a72aab00d56126eee3b74f927bfd0494c8a7 [file] [log] [blame]
// Copyright (c) 2017, 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 identifiernamestring;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
public class R {
static Field findField(Class clazz, String name) throws NoSuchFieldException {
return clazz.getDeclaredField(name);
}
static Method findMethod(Class clazz, String name, Class[] params) throws NoSuchMethodException {
return clazz.getDeclaredMethod(name, params);
}
}