public final class Accessor extends Object
Modifier and Type | Method and Description |
---|---|
String |
getPropertyName()
Returns the name of the property this accessor handles.
|
boolean |
isGetter()
Returns whether the accessor is a getter.
|
boolean |
isSetter()
Returns whether the accessor is a setter.
|
public Accessor(Method method)
method
- must not be null.IllegalArgumentException
- in case the given method is not an accessor method.public boolean isGetter()
public boolean isSetter()
public String getPropertyName()
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.