public class MetaArrayLengthProperty extends MetaProperty
name, PROPERTY_SET_PREFIX, type| Constructor and Description |
|---|
MetaArrayLengthProperty()
Sole constructor setting name to "length" and type to int
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getProperty(Object object)
Get this property from the given object.
|
void |
setProperty(Object object,
Object newValue)
Sets the property on the given object to the new value
|
getGetterName, getModifiers, getName, getSetterName, getTypepublic MetaArrayLengthProperty()
public Object getProperty(Object object)
getProperty in class MetaPropertyobject - an arrayIllegalArgumentException - if object is not an arraypublic void setProperty(Object object, Object newValue)
setProperty in class MetaPropertyobject - on which to set the propertynewValue - the new value of the propertyRuntimeException - if the property could not be set