Package team.unnamed.mocha.runtime.value
Interface ObjectValue
- All Superinterfaces:
Value
- All Known Subinterfaces:
Scope
- All Known Implementing Classes:
JavaObjectBinding,MochaMath,MutableObjectBinding
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interfacestatic interface -
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull Map<String,ObjectProperty> entries()default @NotNull ValueGets the value of the specified property, ignoring its casing.@Nullable ObjectPropertygetProperty(@NotNull String name) Returns the property for the given name ignoring its case.default booleandefault voidsetFunction(@NotNull String name, @NotNull ObjectValue.DoubleFunction1 function) default voidsetFunction(@NotNull String name, @NotNull ObjectValue.DoubleFunction2 function) default voidsetFunction(@NotNull String name, @NotNull ObjectValue.DoubleFunction3 function) Methods inherited from interface team.unnamed.mocha.runtime.value.Value
getAsBoolean, getAsNumber, getAsString, isString
-
Method Details
-
getProperty
Returns the property for the given name ignoring its case. This method is CASE-INSENSITIVE.- Parameters:
name- The name of the property- Returns:
- The property for the given name
- Since:
- 3.0.0
-
get
Gets the value of the specified property, ignoring its casing. This method is CASE-INSENSITIVE.- Parameters:
name- The name of the property- Returns:
- The value of the property
- Since:
- 3.0.0
-
set
-
entries
-
setFunction
default void setFunction(@NotNull @NotNull String name, @NotNull @NotNull ObjectValue.DoubleFunction1 function) -
setFunction
default void setFunction(@NotNull @NotNull String name, @NotNull @NotNull ObjectValue.DoubleFunction2 function) -
setFunction
default void setFunction(@NotNull @NotNull String name, @NotNull @NotNull ObjectValue.DoubleFunction3 function)
-