Package team.unnamed.mocha.runtime.value
Interface ObjectProperty
public interface ObjectProperty
Represents a
ObjectValue property.- Since:
- 3.0.0
-
Method Summary
Modifier and TypeMethodDescriptionbooleanconstant()Determines whether this property is constant and cannot be changed in runtime.static @NotNull ObjectPropertyCreates a newObjectPropertywith the givenValueand constant flag.@NotNull Valuevalue()Returns the value of this property.
-
Method Details
-
property
Creates a newObjectPropertywith the givenValueand constant flag.- Parameters:
value- The value of the propertyconstant- Whether the property is constant or not- Returns:
- The created property
- Since:
- 3.0.0
-
value
Returns the value of this property.- Returns:
- The value of this property
- Since:
- 3.0.0
-
constant
boolean constant()Determines whether this property is constant and cannot be changed in runtime.- Returns:
- Whether this property is constant or not
- Since:
- 3.0.0
-