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 |
---|---|
java.lang.Object |
getProperty(java.lang.Object object)
Get this property from the given object.
|
void |
setProperty(java.lang.Object object,
java.lang.Object newValue)
Sets the property on the given object to the new value
|
getGetterName, getModifiers, getName, getSetterName, getType
public MetaArrayLengthProperty()
public java.lang.Object getProperty(java.lang.Object object)
getProperty
in class MetaProperty
object
- an arrayjava.lang.IllegalArgumentException
- if object is not an arraypublic void setProperty(java.lang.Object object, java.lang.Object newValue)
setProperty
in class MetaProperty
object
- on which to set the propertynewValue
- the new value of the propertyjava.lang.RuntimeException
- if the property could not be set