public class MetaArrayLengthProperty extends MetaProperty
Represents the length property of an array
| Fields inherited from class | Fields |
|---|---|
class MetaProperty | PROPERTY_SET_PREFIX, name, type |
| Constructor and description |
|---|
MetaArrayLengthProperty
()Sole constructor setting name to "length" and type to int |
| Type Params | Return Type | Name and description |
|---|---|---|
public Object |
getProperty(Object object)Get this property from the given object. | |
public void |
setProperty(Object object, Object newValue)Sets the property on the given object to the new value |
| Methods inherited from class | Name |
|---|---|
class MetaProperty | getGetterName, getModifiers, getName, getProperty, getSetterName, getType, setProperty |
Sole constructor setting name to "length" and type to int
Get this property from the given object.
object - an arraySets the property on the given object to the new value
object - on which to set the propertynewValue - the new value of the property
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/groovy/lang/MetaArrayLengthProperty.html