public final class Fields extends Object
Modifier and Type | Method and Description |
---|---|
static Field |
findField(Type classType,
String fieldName)
Find a
Field in the class hierarchy of the given type. |
public static Field findField(Type classType, String fieldName) throws NoSuchFieldException
Field
in the class hierarchy of the given type.classType
- The leaf class to start with.fieldName
- Name of the field.Field
if found.NoSuchFieldException
- If the field is not found.Copyright © 2024 Cask Data, Inc. Licensed under the Apache License, Version 2.0.