Class Getter

java.lang.Object
org.klojang.invoke.Getter

public final class Getter extends Object
Represents a getter for a single property.
Author:
Ayco Holleman
  • Method Details

    • getProperty

      public String getProperty()
      Returns the name of the property.
      Returns:
      the name of the property
    • getReturnType

      public Class<?> getReturnType()
      Returns the type of the property.
      Returns:
      the type of the property
    • read

      public Object read(Object bean) throws Throwable
      Reads the value of the property off the specified bean
      Parameters:
      bean - The bean off which to read the property's value
      Returns:
      the value of the property
      Throws:
      Throwable - The unspecified Throwable associated with calls to MethodHandle.invoke.