Class MutableObjectBinding

java.lang.Object
team.unnamed.mocha.runtime.value.MutableObjectBinding
All Implemented Interfaces:
ObjectValue, Value

public class MutableObjectBinding extends Object implements ObjectValue
Represents an object-like binding, these objects can have properties (or fields) that can be read and sometimes written
  • Constructor Details

    • MutableObjectBinding

      public MutableObjectBinding()
  • Method Details

    • 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)
      Sets the property with the given name to the specified value, may not be supported
      Specified by:
      set in interface ObjectValue
    • setAllFrom

      public void setAllFrom(MutableObjectBinding binding)
    • blocked

      public boolean blocked()
    • block

      public void block()