mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8140650: Method::is_accessor should cover getters and setters for all types
Reviewed-by: vlivanov, coleenp, sgehwolf
This commit is contained in:
parent
6ed8c23581
commit
ac09d8a135
8 changed files with 196 additions and 6 deletions
|
@ -595,6 +595,12 @@ class Method : public Metadata {
|
|||
// returns true if the method is an accessor function (setter/getter).
|
||||
bool is_accessor() const;
|
||||
|
||||
// returns true if the method is a getter
|
||||
bool is_getter() const;
|
||||
|
||||
// returns true if the method is a setter
|
||||
bool is_setter() const;
|
||||
|
||||
// returns true if the method does nothing but return a constant of primitive type
|
||||
bool is_constant_getter() const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue