A collection of String-to-whatever properties which supports a value at the node and also subnodes with values. This is to represent the semi- hierarchical nature of mixin's sytem properties. There's probably a builtin Gradle class which does something similar to this but I couldn't find it so here we are.
The most important aspect of this class is that the value is actually always set by the parent node because when the node is accessed via the getter, the last element of the node chain is actually the member being accessed (via propertyMissing) so since the last element of the chain which is actually a node is the parent of that node, the parent node sets the value. Child nodes are automatically added for every missing property.
| Constructor and description |
|---|
DynamicProperties
(java.lang.String name) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
java.lang.Object |
getArgs()Get all args from this properties collection and all of its children as a single map |
|
java.lang.Object |
methodMissing(java.lang.String name, java.lang.Object args)Probably not used but does technically allow leaf node values to be set in a method-call style instead of assignment style |
|
java.lang.Object |
propertyMissing(java.lang.String name)A getter, if this node is in the middle of a node chain |
|
java.lang.Object |
propertyMissing(java.lang.String name, java.lang.Object value)A setter, sets the leaf node value |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(), java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Get all args from this properties collection and all of its children as a single map
Probably not used but does technically allow leaf node values to be set in a method-call style instead of assignment style
A getter, if this node is in the middle of a node chain
A setter, sets the leaf node value