Class Helpers

java.lang.Object
org.cyclops.commoncapabilities.core.Helpers

public class Helpers extends Object
Helper methods.
  • Constructor Details

    • Helpers

      public Helpers()
  • Method Details

    • invokeMethod

      public static <R> R invokeMethod(Object instance, @Nullable Method method, Object... arguments)
    • getFieldValue

      public static <R> R getFieldValue(Object instance, @Nullable Field field)
    • getMethod

      public static <E> Method getMethod(Class<? super E> clazz, String method, Class<?>... methodTypes)
    • getField

      public static <T> Field getField(Class<? super T> clazz, String field)