< prev index next >

src/hotspot/share/oops/fieldStreams.hpp

Print this page

        

@@ -36,10 +36,11 @@
 // generally the preferred iterator.  InternalFieldStream only
 // iterates over fields that have been injected by the JVM.
 // AllFieldStream exposes all fields and should only be used in rare
 // cases.
 class FieldStreamBase : public StackObj {
+
  protected:
   Array<u2>*          _fields;
   constantPoolHandle  _constants;
   int                 _index;
   int                 _limit;

@@ -159,10 +160,24 @@
 
   int allocation_type() const {
     return field()->allocation_type();
   }
 
+  bool is_flattened() {
+    return field()->is_flattened();
+  }
+
+  void set_flattened(bool b) {
+    field()->set_flattened(b);
+  }
+
+  bool is_flattenable() const {
+    AccessFlags flags;
+    flags.set_flags(field()->access_flags());
+    return flags.is_flattenable();
+  }
+
   void set_offset(int offset) {
     field()->set_offset(offset);
   }
 
   bool is_offset_set() const {
< prev index next >