Package team.unnamed.mocha.runtime.value
Class MutableObjectBinding
java.lang.Object
team.unnamed.mocha.runtime.value.MutableObjectBinding
- All Implemented Interfaces:
ObjectValue,Value
Represents an object-like binding,
these objects can have properties
(or fields) that can be read and
sometimes written
-
Nested Class Summary
Nested classes/interfaces inherited from interface team.unnamed.mocha.runtime.value.ObjectValue
ObjectValue.DoubleFunction1, ObjectValue.DoubleFunction2, ObjectValue.DoubleFunction3 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidblock()booleanblocked()@Nullable ObjectPropertygetProperty(@NotNull String name) Returns the property for the given name ignoring its case.booleanSets the property with the givennameto the specifiedvalue, may not be supportedvoidsetAllFrom(MutableObjectBinding binding) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface team.unnamed.mocha.runtime.value.ObjectValue
entries, get, setFunction, setFunction, setFunctionMethods inherited from interface team.unnamed.mocha.runtime.value.Value
getAsBoolean, getAsNumber, getAsString, isString
-
Constructor Details
-
MutableObjectBinding
public MutableObjectBinding()
-
-
Method Details
-
getProperty
Description copied from interface:ObjectValueReturns the property for the given name ignoring its case. This method is CASE-INSENSITIVE.- Specified by:
getPropertyin interfaceObjectValue- Parameters:
name- The name of the property- Returns:
- The property for the given name
-
set
Sets the property with the givennameto the specifiedvalue, may not be supported- Specified by:
setin interfaceObjectValue
-
setAllFrom
-
blocked
public boolean blocked() -
block
public void block()
-