< prev index next >

src/hotspot/share/runtime/fieldDescriptor.hpp

Print this page




  83   bool has_initial_value()        const    { return field()->initval_index() != 0; }
  84   int initial_value_index()       const    { return field()->initval_index(); }
  85   constantTag initial_value_tag() const;  // The tag will return true on one of is_int(), is_long(), is_single(), is_double()
  86   jint int_initial_value()        const;
  87   jlong long_initial_value()      const;
  88   jfloat float_initial_value()    const;
  89   jdouble double_initial_value()  const;
  90   oop string_initial_value(TRAPS) const;
  91 
  92   // Field signature type
  93   BasicType field_type()          const    { return FieldType::basic_type(signature()); }
  94 
  95   // Access flags
  96   bool is_public()                const    { return access_flags().is_public(); }
  97   bool is_private()               const    { return access_flags().is_private(); }
  98   bool is_protected()             const    { return access_flags().is_protected(); }
  99   bool is_package_private()       const    { return !is_public() && !is_private() && !is_protected(); }
 100 
 101   bool is_static()                const    { return access_flags().is_static(); }
 102   bool is_final()                 const    { return access_flags().is_final(); }

 103   bool is_volatile()              const    { return access_flags().is_volatile(); }
 104   bool is_transient()             const    { return access_flags().is_transient(); }
 105 
 106   bool is_synthetic()             const    { return access_flags().is_synthetic(); }
 107 
 108   bool is_field_access_watched()  const    { return access_flags().is_field_access_watched(); }
 109   bool is_field_modification_watched() const
 110                                            { return access_flags().is_field_modification_watched(); }
 111   bool has_initialized_final_update() const { return access_flags().has_field_initialized_final_update(); }
 112   bool has_generic_signature()    const    { return access_flags().field_has_generic_signature(); }
 113 
 114   void set_is_field_access_watched(const bool value) {
 115     _access_flags.set_is_field_access_watched(value);
 116     update_klass_field_access_flag();
 117   }
 118 
 119   void set_is_field_modification_watched(const bool value) {
 120     _access_flags.set_is_field_modification_watched(value);
 121     update_klass_field_access_flag();
 122   }


  83   bool has_initial_value()        const    { return field()->initval_index() != 0; }
  84   int initial_value_index()       const    { return field()->initval_index(); }
  85   constantTag initial_value_tag() const;  // The tag will return true on one of is_int(), is_long(), is_single(), is_double()
  86   jint int_initial_value()        const;
  87   jlong long_initial_value()      const;
  88   jfloat float_initial_value()    const;
  89   jdouble double_initial_value()  const;
  90   oop string_initial_value(TRAPS) const;
  91 
  92   // Field signature type
  93   BasicType field_type()          const    { return FieldType::basic_type(signature()); }
  94 
  95   // Access flags
  96   bool is_public()                const    { return access_flags().is_public(); }
  97   bool is_private()               const    { return access_flags().is_private(); }
  98   bool is_protected()             const    { return access_flags().is_protected(); }
  99   bool is_package_private()       const    { return !is_public() && !is_private() && !is_protected(); }
 100 
 101   bool is_static()                const    { return access_flags().is_static(); }
 102   bool is_final()                 const    { return access_flags().is_final(); }
 103   bool is_stable()                const    { return access_flags().is_stable(); }
 104   bool is_volatile()              const    { return access_flags().is_volatile(); }
 105   bool is_transient()             const    { return access_flags().is_transient(); }
 106 
 107   bool is_synthetic()             const    { return access_flags().is_synthetic(); }
 108 
 109   bool is_field_access_watched()  const    { return access_flags().is_field_access_watched(); }
 110   bool is_field_modification_watched() const
 111                                            { return access_flags().is_field_modification_watched(); }
 112   bool has_initialized_final_update() const { return access_flags().has_field_initialized_final_update(); }
 113   bool has_generic_signature()    const    { return access_flags().field_has_generic_signature(); }
 114 
 115   void set_is_field_access_watched(const bool value) {
 116     _access_flags.set_is_field_access_watched(value);
 117     update_klass_field_access_flag();
 118   }
 119 
 120   void set_is_field_modification_watched(const bool value) {
 121     _access_flags.set_is_field_modification_watched(value);
 122     update_klass_field_access_flag();
 123   }
< prev index next >