Class JavaObjectBinding
java.lang.Object
team.unnamed.mocha.runtime.binding.JavaObjectBinding
- All Implemented Interfaces:
ObjectValue,Value
-
Nested Class Summary
Nested classes/interfaces inherited from interface team.unnamed.mocha.runtime.value.ObjectValue
ObjectValue.DoubleFunction1, ObjectValue.DoubleFunction2, ObjectValue.DoubleFunction3 -
Method Summary
Modifier and TypeMethodDescription@Nullable JavaFieldBinding@Nullable ObjectPropertygetProperty(@NotNull String name) Returns the property for the given name ignoring its case.@NotNull String[]names()static <T> @NotNull JavaObjectBindingof(@NotNull Class<T> clazz, T instance, @Nullable ObjectValue backingObject) booleanMethods 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
-
Method Details
-
of
@NotNull public static <T> @NotNull JavaObjectBinding of(@NotNull @NotNull Class<T> clazz, @Nullable T instance, @Nullable @Nullable ObjectValue backingObject) -
names
-
getField
-
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
- Specified by:
setin interfaceObjectValue
-