Class JavaObjectBinding

java.lang.Object
team.unnamed.mocha.runtime.binding.JavaObjectBinding
All Implemented Interfaces:
ObjectValue, Value

@Internal public final class JavaObjectBinding extends Object implements ObjectValue
  • Method Details

    • of

      @NotNull public static <T> @NotNull JavaObjectBinding of(@NotNull @NotNull Class<T> clazz, @Nullable T instance, @Nullable @Nullable ObjectValue backingObject)
    • names

      @NotNull public @NotNull String[] names()
    • getField

      @Nullable public @Nullable JavaFieldBinding getField(@NotNull @NotNull String name)
    • getProperty

      @Nullable public @Nullable ObjectProperty getProperty(@NotNull @NotNull String name)
      Description copied from interface: ObjectValue
      Returns the property for the given name ignoring its case. This method is CASE-INSENSITIVE.
      Specified by:
      getProperty in interface ObjectValue
      Parameters:
      name - The name of the property
      Returns:
      The property for the given name
    • set

      public boolean set(@NotNull @NotNull String name, @Nullable @Nullable Value value)
      Specified by:
      set in interface ObjectValue