Package | Description |
---|---|
gololang |
Provides the top-level Golo support classes.
|
Modifier and Type | Method and Description |
---|---|
DynamicObject |
DynamicObject.copy() |
DynamicObject |
DynamicObject.define(java.lang.String name,
java.lang.Object value)
Defines a property.
|
DynamicObject |
DynamicObject.fallback(java.lang.Object value)
Let the user define a fallback behavior.
|
DynamicObject |
DynamicObject.freeze()
Freezes a dynamic object, meaning that its properties cannot be added, updated and removed anymore.
|
DynamicObject |
DynamicObject.mixin(DynamicObject other)
Mixes all properties from another dynamic object into this one, overwriting existing properties.
|
DynamicObject |
DynamicObject.undefine(java.lang.String name)
Removes a property.
|
Modifier and Type | Method and Description |
---|---|
static FunctionReference |
DynamicObject.delegate(DynamicObject deleguee)
Creates a function suitable for the
fallback property delegating to the given dynamic object. |
static java.lang.Object |
DynamicObject.dispatchDelegate(DynamicObject deleguee,
DynamicObject receiver,
java.lang.String property,
java.lang.Object... args)
Dispatches on another dynamic object (fallback helper).
|
static java.lang.Object |
DynamicObject.dispatchGetterStyle(java.lang.String property,
DynamicObject object)
Dispatches getter-style dynamic object methods, i.e., methods with a receiver and no argument.
|
static java.lang.Object |
DynamicObject.dispatchSetterStyle(java.lang.String property,
DynamicObject object,
java.lang.Object arg)
Dispatches setter-style dynamic object methods, i.e., methods with a receiver and exactly 1 argument.
|
DynamicObject |
DynamicObject.mixin(DynamicObject other)
Mixes all properties from another dynamic object into this one, overwriting existing properties.
|
boolean |
DynamicObject.sameKind(DynamicObject other) |