Class FieldFinder

java.lang.Object
nl.pim16aap2.util.reflection.FieldFinder

public class FieldFinder extends Object
Represents a ReflectionFinder for fields.

This class can be used to retrieve fields by name and by type. When retrieving by type, it can also return all fields of that type in the given source class.

Calls should be chained, as the instance can change between invocations of some methods.

  • Constructor Details

    • FieldFinder

      public FieldFinder()
  • Method Details

    • inClass

      @CheckReturnValue @Contract(pure=true) public FieldFinder.FieldFinderInSource inClass(Class<?> source)
      Sets the class this field finder will search in for fields.
      Parameters:
      source - The class to analyze.
      Returns:
      The next step in the field finding process.