< prev index next >

src/hotspot/share/oops/method.hpp

Print this page




 613   bool is_public() const                         { return access_flags().is_public();      }
 614   bool is_private() const                        { return access_flags().is_private();     }
 615   bool is_protected() const                      { return access_flags().is_protected();   }
 616   bool is_package_private() const                { return !is_public() && !is_private() && !is_protected(); }
 617   bool is_static() const                         { return access_flags().is_static();      }
 618   bool is_final() const                          { return access_flags().is_final();       }
 619   bool is_synchronized() const                   { return access_flags().is_synchronized();}
 620   bool is_native() const                         { return access_flags().is_native();      }
 621   bool is_abstract() const                       { return access_flags().is_abstract();    }
 622   bool is_strict() const                         { return access_flags().is_strict();      }
 623   bool is_synthetic() const                      { return access_flags().is_synthetic();   }
 624 
 625   // returns true if contains only return operation
 626   bool is_empty_method() const;
 627 
 628   // returns true if this is a vanilla constructor
 629   bool is_vanilla_constructor() const;
 630 
 631   // checks method and its method holder
 632   bool is_final_method() const;
 633   bool is_final_method(AccessFlags class_access_flags) const;
 634   // interface method declared with 'default' - excludes private interface methods
 635   bool is_default_method() const;
 636 
 637   // true if method needs no dynamic dispatch (final and/or no vtable entry)
 638   bool can_be_statically_bound() const;
 639   bool can_be_statically_bound(InstanceKlass* context) const;
 640   bool can_be_statically_bound(AccessFlags class_access_flags) const;
 641 
 642   // returns true if the method has any backward branches.
 643   bool has_loops() {
 644     return access_flags().loops_flag_init() ? access_flags().has_loops() : compute_has_loops_flag();
 645   };
 646 
 647   bool compute_has_loops_flag();
 648 
 649   bool has_jsrs() {
 650     return access_flags().has_jsrs();
 651   };
 652   void set_has_jsrs() {
 653     _access_flags.set_has_jsrs();




 613   bool is_public() const                         { return access_flags().is_public();      }
 614   bool is_private() const                        { return access_flags().is_private();     }
 615   bool is_protected() const                      { return access_flags().is_protected();   }
 616   bool is_package_private() const                { return !is_public() && !is_private() && !is_protected(); }
 617   bool is_static() const                         { return access_flags().is_static();      }
 618   bool is_final() const                          { return access_flags().is_final();       }
 619   bool is_synchronized() const                   { return access_flags().is_synchronized();}
 620   bool is_native() const                         { return access_flags().is_native();      }
 621   bool is_abstract() const                       { return access_flags().is_abstract();    }
 622   bool is_strict() const                         { return access_flags().is_strict();      }
 623   bool is_synthetic() const                      { return access_flags().is_synthetic();   }
 624 
 625   // returns true if contains only return operation
 626   bool is_empty_method() const;
 627 
 628   // returns true if this is a vanilla constructor
 629   bool is_vanilla_constructor() const;
 630 
 631   // checks method and its method holder
 632   bool is_final_method() const;
 633   bool is_final_method(AccessFlags class_access_flags, bool has_sealed_holder) const;
 634   // interface method declared with 'default' - excludes private interface methods
 635   bool is_default_method() const;
 636 
 637   // true if method needs no dynamic dispatch (final and/or no vtable entry)
 638   bool can_be_statically_bound() const;
 639   bool can_be_statically_bound(InstanceKlass* context) const;
 640   bool can_be_statically_bound(AccessFlags class_access_flags) const;
 641 
 642   // returns true if the method has any backward branches.
 643   bool has_loops() {
 644     return access_flags().loops_flag_init() ? access_flags().has_loops() : compute_has_loops_flag();
 645   };
 646 
 647   bool compute_has_loops_flag();
 648 
 649   bool has_jsrs() {
 650     return access_flags().has_jsrs();
 651   };
 652   void set_has_jsrs() {
 653     _access_flags.set_has_jsrs();


< prev index next >