annotate agent/src/share/classes/sun/jvm/hotspot/oops/Klass.java @ 6725:da91efe96a93

6964458: Reimplement class meta-data storage to use native memory Summary: Remove PermGen, allocate meta-data in metaspace linked to class loaders, rewrite GC walking, rewrite and rename metadata to be C++ classes Reviewed-by: jmasa, stefank, never, coleenp, kvn, brutisso, mgerdin, dholmes, jrose, twisti, roland Contributed-by: jmasa <jon.masamitsu@oracle.com>, stefank <stefan.karlsson@oracle.com>, mgerdin <mikael.gerdin@oracle.com>, never <tom.rodriguez@oracle.com>
author coleenp
date Sat, 01 Sep 2012 13:25:18 -0400
parents 1d1603768966
children d8ce2825b193
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a61af66fc99e Initial load
duke
parents:
diff changeset
1 /*
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 2426
diff changeset
2 * Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
a61af66fc99e Initial load
duke
parents:
diff changeset
4 *
a61af66fc99e Initial load
duke
parents:
diff changeset
5 * This code is free software; you can redistribute it and/or modify it
a61af66fc99e Initial load
duke
parents:
diff changeset
6 * under the terms of the GNU General Public License version 2 only, as
a61af66fc99e Initial load
duke
parents:
diff changeset
7 * published by the Free Software Foundation.
a61af66fc99e Initial load
duke
parents:
diff changeset
8 *
a61af66fc99e Initial load
duke
parents:
diff changeset
9 * This code is distributed in the hope that it will be useful, but WITHOUT
a61af66fc99e Initial load
duke
parents:
diff changeset
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a61af66fc99e Initial load
duke
parents:
diff changeset
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a61af66fc99e Initial load
duke
parents:
diff changeset
12 * version 2 for more details (a copy is included in the LICENSE file that
a61af66fc99e Initial load
duke
parents:
diff changeset
13 * accompanied this code).
a61af66fc99e Initial load
duke
parents:
diff changeset
14 *
a61af66fc99e Initial load
duke
parents:
diff changeset
15 * You should have received a copy of the GNU General Public License version
a61af66fc99e Initial load
duke
parents:
diff changeset
16 * 2 along with this work; if not, write to the Free Software Foundation,
a61af66fc99e Initial load
duke
parents:
diff changeset
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
a61af66fc99e Initial load
duke
parents:
diff changeset
18 *
1552
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 196
diff changeset
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 196
diff changeset
20 * or visit www.oracle.com if you need additional information or have any
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 196
diff changeset
21 * questions.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
22 *
a61af66fc99e Initial load
duke
parents:
diff changeset
23 */
a61af66fc99e Initial load
duke
parents:
diff changeset
24
a61af66fc99e Initial load
duke
parents:
diff changeset
25 package sun.jvm.hotspot.oops;
a61af66fc99e Initial load
duke
parents:
diff changeset
26
a61af66fc99e Initial load
duke
parents:
diff changeset
27 import java.io.*;
a61af66fc99e Initial load
duke
parents:
diff changeset
28 import java.util.*;
a61af66fc99e Initial load
duke
parents:
diff changeset
29 import sun.jvm.hotspot.debugger.*;
a61af66fc99e Initial load
duke
parents:
diff changeset
30 import sun.jvm.hotspot.runtime.*;
a61af66fc99e Initial load
duke
parents:
diff changeset
31 import sun.jvm.hotspot.types.*;
a61af66fc99e Initial load
duke
parents:
diff changeset
32
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 2426
diff changeset
33 public class Klass extends Metadata implements ClassConstants {
0
a61af66fc99e Initial load
duke
parents:
diff changeset
34 static {
a61af66fc99e Initial load
duke
parents:
diff changeset
35 VM.registerVMInitializedObserver(new Observer() {
a61af66fc99e Initial load
duke
parents:
diff changeset
36 public void update(Observable o, Object data) {
a61af66fc99e Initial load
duke
parents:
diff changeset
37 initialize(VM.getVM().getTypeDataBase());
a61af66fc99e Initial load
duke
parents:
diff changeset
38 }
a61af66fc99e Initial load
duke
parents:
diff changeset
39 });
a61af66fc99e Initial load
duke
parents:
diff changeset
40 }
a61af66fc99e Initial load
duke
parents:
diff changeset
41
a61af66fc99e Initial load
duke
parents:
diff changeset
42 // anon-enum constants for _layout_helper.
a61af66fc99e Initial load
duke
parents:
diff changeset
43 public static int LH_INSTANCE_SLOW_PATH_BIT;
a61af66fc99e Initial load
duke
parents:
diff changeset
44 public static int LH_LOG2_ELEMENT_SIZE_SHIFT;
a61af66fc99e Initial load
duke
parents:
diff changeset
45 public static int LH_ELEMENT_TYPE_SHIFT;
a61af66fc99e Initial load
duke
parents:
diff changeset
46 public static int LH_HEADER_SIZE_SHIFT;
a61af66fc99e Initial load
duke
parents:
diff changeset
47 public static int LH_ARRAY_TAG_SHIFT;
a61af66fc99e Initial load
duke
parents:
diff changeset
48 public static int LH_ARRAY_TAG_TYPE_VALUE;
a61af66fc99e Initial load
duke
parents:
diff changeset
49 public static int LH_ARRAY_TAG_OBJ_VALUE;
a61af66fc99e Initial load
duke
parents:
diff changeset
50
a61af66fc99e Initial load
duke
parents:
diff changeset
51 private static synchronized void initialize(TypeDataBase db) throws WrongTypeException {
a61af66fc99e Initial load
duke
parents:
diff changeset
52 Type type = db.lookupType("Klass");
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 2426
diff changeset
53 javaMirror = new OopField(type.getOopField("_java_mirror"), 0);
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 2426
diff changeset
54 superField = new MetadataField(type.getAddressField("_super"), 0);
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 2426
diff changeset
55 layoutHelper = new IntField(type.getJIntField("_layout_helper"), 0);
2177
3582bf76420e 6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents: 1552
diff changeset
56 name = type.getAddressField("_name");
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 2426
diff changeset
57 accessFlags = new CIntField(type.getCIntegerField("_access_flags"), 0);
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 2426
diff changeset
58 subklass = new MetadataField(type.getAddressField("_subklass"), 0);
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 2426
diff changeset
59 nextSibling = new MetadataField(type.getAddressField("_next_sibling"), 0);
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 2426
diff changeset
60 allocCount = new CIntField(type.getCIntegerField("_alloc_count"), 0);
0
a61af66fc99e Initial load
duke
parents:
diff changeset
61
a61af66fc99e Initial load
duke
parents:
diff changeset
62 LH_INSTANCE_SLOW_PATH_BIT = db.lookupIntConstant("Klass::_lh_instance_slow_path_bit").intValue();
a61af66fc99e Initial load
duke
parents:
diff changeset
63 LH_LOG2_ELEMENT_SIZE_SHIFT = db.lookupIntConstant("Klass::_lh_log2_element_size_shift").intValue();
a61af66fc99e Initial load
duke
parents:
diff changeset
64 LH_ELEMENT_TYPE_SHIFT = db.lookupIntConstant("Klass::_lh_element_type_shift").intValue();
a61af66fc99e Initial load
duke
parents:
diff changeset
65 LH_HEADER_SIZE_SHIFT = db.lookupIntConstant("Klass::_lh_header_size_shift").intValue();
a61af66fc99e Initial load
duke
parents:
diff changeset
66 LH_ARRAY_TAG_SHIFT = db.lookupIntConstant("Klass::_lh_array_tag_shift").intValue();
a61af66fc99e Initial load
duke
parents:
diff changeset
67 LH_ARRAY_TAG_TYPE_VALUE = db.lookupIntConstant("Klass::_lh_array_tag_type_value").intValue();
a61af66fc99e Initial load
duke
parents:
diff changeset
68 LH_ARRAY_TAG_OBJ_VALUE = db.lookupIntConstant("Klass::_lh_array_tag_obj_value").intValue();
a61af66fc99e Initial load
duke
parents:
diff changeset
69 }
a61af66fc99e Initial load
duke
parents:
diff changeset
70
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 2426
diff changeset
71 public Klass(Address addr) {
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 2426
diff changeset
72 super(addr);
0
a61af66fc99e Initial load
duke
parents:
diff changeset
73 }
a61af66fc99e Initial load
duke
parents:
diff changeset
74
a61af66fc99e Initial load
duke
parents:
diff changeset
75 // jvmdi support - see also class_status in VM code
a61af66fc99e Initial load
duke
parents:
diff changeset
76 public int getClassStatus() {
a61af66fc99e Initial load
duke
parents:
diff changeset
77 return 0; // overridden in derived classes
a61af66fc99e Initial load
duke
parents:
diff changeset
78 }
a61af66fc99e Initial load
duke
parents:
diff changeset
79
a61af66fc99e Initial load
duke
parents:
diff changeset
80 public boolean isKlass() { return true; }
a61af66fc99e Initial load
duke
parents:
diff changeset
81
a61af66fc99e Initial load
duke
parents:
diff changeset
82 // Fields
a61af66fc99e Initial load
duke
parents:
diff changeset
83 private static OopField javaMirror;
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 2426
diff changeset
84 private static MetadataField superField;
0
a61af66fc99e Initial load
duke
parents:
diff changeset
85 private static IntField layoutHelper;
2177
3582bf76420e 6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents: 1552
diff changeset
86 private static AddressField name;
0
a61af66fc99e Initial load
duke
parents:
diff changeset
87 private static CIntField accessFlags;
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 2426
diff changeset
88 private static MetadataField subklass;
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 2426
diff changeset
89 private static MetadataField nextSibling;
0
a61af66fc99e Initial load
duke
parents:
diff changeset
90 private static CIntField allocCount;
a61af66fc99e Initial load
duke
parents:
diff changeset
91
2177
3582bf76420e 6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents: 1552
diff changeset
92 private Address getValue(AddressField field) {
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 2426
diff changeset
93 return addr.getAddressAt(field.getOffset());
2177
3582bf76420e 6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents: 1552
diff changeset
94 }
3582bf76420e 6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents: 1552
diff changeset
95
3582bf76420e 6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents: 1552
diff changeset
96 protected Symbol getSymbol(AddressField field) {
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 2426
diff changeset
97 return Symbol.create(addr.getAddressAt(field.getOffset()));
2177
3582bf76420e 6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents: 1552
diff changeset
98 }
3582bf76420e 6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents: 1552
diff changeset
99
0
a61af66fc99e Initial load
duke
parents:
diff changeset
100 // Accessors for declared fields
a61af66fc99e Initial load
duke
parents:
diff changeset
101 public Instance getJavaMirror() { return (Instance) javaMirror.getValue(this); }
a61af66fc99e Initial load
duke
parents:
diff changeset
102 public Klass getSuper() { return (Klass) superField.getValue(this); }
a61af66fc99e Initial load
duke
parents:
diff changeset
103 public Klass getJavaSuper() { return null; }
a61af66fc99e Initial load
duke
parents:
diff changeset
104 public int getLayoutHelper() { return (int) layoutHelper.getValue(this); }
2177
3582bf76420e 6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents: 1552
diff changeset
105 public Symbol getName() { return getSymbol(name); }
0
a61af66fc99e Initial load
duke
parents:
diff changeset
106 public long getAccessFlags() { return accessFlags.getValue(this); }
a61af66fc99e Initial load
duke
parents:
diff changeset
107 // Convenience routine
a61af66fc99e Initial load
duke
parents:
diff changeset
108 public AccessFlags getAccessFlagsObj(){ return new AccessFlags(getAccessFlags()); }
a61af66fc99e Initial load
duke
parents:
diff changeset
109 public Klass getSubklassKlass() { return (Klass) subklass.getValue(this); }
a61af66fc99e Initial load
duke
parents:
diff changeset
110 public Klass getNextSiblingKlass() { return (Klass) nextSibling.getValue(this); }
a61af66fc99e Initial load
duke
parents:
diff changeset
111 public long getAllocCount() { return allocCount.getValue(this); }
a61af66fc99e Initial load
duke
parents:
diff changeset
112
a61af66fc99e Initial load
duke
parents:
diff changeset
113 // computed access flags - takes care of inner classes etc.
a61af66fc99e Initial load
duke
parents:
diff changeset
114 // This is closer to actual source level than getAccessFlags() etc.
a61af66fc99e Initial load
duke
parents:
diff changeset
115 public long computeModifierFlags() {
a61af66fc99e Initial load
duke
parents:
diff changeset
116 return 0L; // Unless overridden, modifier_flags is 0.
a61af66fc99e Initial load
duke
parents:
diff changeset
117 }
a61af66fc99e Initial load
duke
parents:
diff changeset
118
a61af66fc99e Initial load
duke
parents:
diff changeset
119 // same as JVM_GetClassModifiers
a61af66fc99e Initial load
duke
parents:
diff changeset
120 public final long getClassModifiers() {
a61af66fc99e Initial load
duke
parents:
diff changeset
121 // unlike the VM counterpart we never have to deal with primitive type,
a61af66fc99e Initial load
duke
parents:
diff changeset
122 // because we operator on Klass and not an instance of java.lang.Class.
a61af66fc99e Initial load
duke
parents:
diff changeset
123 long flags = computeModifierFlags();
a61af66fc99e Initial load
duke
parents:
diff changeset
124 if (isSuper()) {
a61af66fc99e Initial load
duke
parents:
diff changeset
125 flags |= JVM_ACC_SUPER;
a61af66fc99e Initial load
duke
parents:
diff changeset
126 }
a61af66fc99e Initial load
duke
parents:
diff changeset
127 return flags;
a61af66fc99e Initial load
duke
parents:
diff changeset
128 }
a61af66fc99e Initial load
duke
parents:
diff changeset
129
a61af66fc99e Initial load
duke
parents:
diff changeset
130 // subclass check
a61af66fc99e Initial load
duke
parents:
diff changeset
131 public boolean isSubclassOf(Klass k) {
a61af66fc99e Initial load
duke
parents:
diff changeset
132 if (k != null) {
a61af66fc99e Initial load
duke
parents:
diff changeset
133 Klass t = this;
a61af66fc99e Initial load
duke
parents:
diff changeset
134 // Run up the super chain and check
a61af66fc99e Initial load
duke
parents:
diff changeset
135 while (t != null) {
a61af66fc99e Initial load
duke
parents:
diff changeset
136 if (t.equals(k)) return true;
a61af66fc99e Initial load
duke
parents:
diff changeset
137 t = t.getSuper();
a61af66fc99e Initial load
duke
parents:
diff changeset
138 }
a61af66fc99e Initial load
duke
parents:
diff changeset
139 }
a61af66fc99e Initial load
duke
parents:
diff changeset
140 return false;
a61af66fc99e Initial load
duke
parents:
diff changeset
141 }
a61af66fc99e Initial load
duke
parents:
diff changeset
142
a61af66fc99e Initial load
duke
parents:
diff changeset
143 // subtype check
a61af66fc99e Initial load
duke
parents:
diff changeset
144 public boolean isSubtypeOf(Klass k) {
a61af66fc99e Initial load
duke
parents:
diff changeset
145 return computeSubtypeOf(k);
a61af66fc99e Initial load
duke
parents:
diff changeset
146 }
a61af66fc99e Initial load
duke
parents:
diff changeset
147
a61af66fc99e Initial load
duke
parents:
diff changeset
148 boolean computeSubtypeOf(Klass k) {
a61af66fc99e Initial load
duke
parents:
diff changeset
149 return isSubclassOf(k);
a61af66fc99e Initial load
duke
parents:
diff changeset
150 }
a61af66fc99e Initial load
duke
parents:
diff changeset
151
a61af66fc99e Initial load
duke
parents:
diff changeset
152 // Find LCA (Least Common Ancester) in class heirarchy
a61af66fc99e Initial load
duke
parents:
diff changeset
153 public Klass lca( Klass k2 ) {
a61af66fc99e Initial load
duke
parents:
diff changeset
154 Klass k1 = this;
a61af66fc99e Initial load
duke
parents:
diff changeset
155 while ( true ) {
a61af66fc99e Initial load
duke
parents:
diff changeset
156 if ( k1.isSubtypeOf(k2) ) return k2;
a61af66fc99e Initial load
duke
parents:
diff changeset
157 if ( k2.isSubtypeOf(k1) ) return k1;
a61af66fc99e Initial load
duke
parents:
diff changeset
158 k1 = k1.getSuper();
a61af66fc99e Initial load
duke
parents:
diff changeset
159 k2 = k2.getSuper();
a61af66fc99e Initial load
duke
parents:
diff changeset
160 }
a61af66fc99e Initial load
duke
parents:
diff changeset
161 }
a61af66fc99e Initial load
duke
parents:
diff changeset
162
a61af66fc99e Initial load
duke
parents:
diff changeset
163 public void printValueOn(PrintStream tty) {
a61af66fc99e Initial load
duke
parents:
diff changeset
164 tty.print("Klass");
a61af66fc99e Initial load
duke
parents:
diff changeset
165 }
a61af66fc99e Initial load
duke
parents:
diff changeset
166
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 2426
diff changeset
167 public void iterateFields(MetadataVisitor visitor) {
0
a61af66fc99e Initial load
duke
parents:
diff changeset
168 visitor.doOop(javaMirror, true);
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 2426
diff changeset
169 visitor.doMetadata(superField, true);
0
a61af66fc99e Initial load
duke
parents:
diff changeset
170 visitor.doInt(layoutHelper, true);
2177
3582bf76420e 6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents: 1552
diff changeset
171 // visitor.doOop(name, true);
0
a61af66fc99e Initial load
duke
parents:
diff changeset
172 visitor.doCInt(accessFlags, true);
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 2426
diff changeset
173 visitor.doMetadata(subklass, true);
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 2426
diff changeset
174 visitor.doMetadata(nextSibling, true);
0
a61af66fc99e Initial load
duke
parents:
diff changeset
175 visitor.doCInt(allocCount, true);
a61af66fc99e Initial load
duke
parents:
diff changeset
176 }
a61af66fc99e Initial load
duke
parents:
diff changeset
177
a61af66fc99e Initial load
duke
parents:
diff changeset
178 public long getObjectSize() {
113
ba764ed4b6f2 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 0
diff changeset
179 throw new RuntimeException("should not reach here");
0
a61af66fc99e Initial load
duke
parents:
diff changeset
180 }
a61af66fc99e Initial load
duke
parents:
diff changeset
181
a61af66fc99e Initial load
duke
parents:
diff changeset
182 /** Array class with specific rank */
a61af66fc99e Initial load
duke
parents:
diff changeset
183 public Klass arrayKlass(int rank) { return arrayKlassImpl(false, rank); }
a61af66fc99e Initial load
duke
parents:
diff changeset
184 /** Array class with this klass as element type */
a61af66fc99e Initial load
duke
parents:
diff changeset
185 public Klass arrayKlass() { return arrayKlassImpl(false); }
a61af66fc99e Initial load
duke
parents:
diff changeset
186 /** These will return null instead of allocating on the heap */
a61af66fc99e Initial load
duke
parents:
diff changeset
187 public Klass arrayKlassOrNull(int rank) { return arrayKlassImpl(true, rank); }
a61af66fc99e Initial load
duke
parents:
diff changeset
188 public Klass arrayKlassOrNull() { return arrayKlassImpl(true); }
a61af66fc99e Initial load
duke
parents:
diff changeset
189
a61af66fc99e Initial load
duke
parents:
diff changeset
190 public Klass arrayKlassImpl(boolean orNull, int rank) {
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 2426
diff changeset
191 throw new RuntimeException("array_klass should be dispatched to InstanceKlass, objArrayKlass or typeArrayKlass");
0
a61af66fc99e Initial load
duke
parents:
diff changeset
192 }
a61af66fc99e Initial load
duke
parents:
diff changeset
193
a61af66fc99e Initial load
duke
parents:
diff changeset
194 public Klass arrayKlassImpl(boolean orNull) {
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 2426
diff changeset
195 throw new RuntimeException("array_klass should be dispatched to InstanceKlass, objArrayKlass or typeArrayKlass");
0
a61af66fc99e Initial load
duke
parents:
diff changeset
196 }
a61af66fc99e Initial load
duke
parents:
diff changeset
197
a61af66fc99e Initial load
duke
parents:
diff changeset
198 // This returns the name in the form java/lang/String which isn't really a signature
a61af66fc99e Initial load
duke
parents:
diff changeset
199 // The subclasses override this to produce the correct form, eg
a61af66fc99e Initial load
duke
parents:
diff changeset
200 // Ljava/lang/String; For ArrayKlasses getName itself is the signature.
a61af66fc99e Initial load
duke
parents:
diff changeset
201 public String signature() { return getName().asString(); }
a61af66fc99e Initial load
duke
parents:
diff changeset
202
a61af66fc99e Initial load
duke
parents:
diff changeset
203 // Convenience routines
a61af66fc99e Initial load
duke
parents:
diff changeset
204 public boolean isPublic() { return getAccessFlagsObj().isPublic(); }
a61af66fc99e Initial load
duke
parents:
diff changeset
205 public boolean isFinal() { return getAccessFlagsObj().isFinal(); }
a61af66fc99e Initial load
duke
parents:
diff changeset
206 public boolean isInterface() { return getAccessFlagsObj().isInterface(); }
a61af66fc99e Initial load
duke
parents:
diff changeset
207 public boolean isAbstract() { return getAccessFlagsObj().isAbstract(); }
a61af66fc99e Initial load
duke
parents:
diff changeset
208 public boolean isSuper() { return getAccessFlagsObj().isSuper(); }
a61af66fc99e Initial load
duke
parents:
diff changeset
209 public boolean isSynthetic() { return getAccessFlagsObj().isSynthetic(); }
a61af66fc99e Initial load
duke
parents:
diff changeset
210 public boolean hasFinalizer() { return getAccessFlagsObj().hasFinalizer(); }
a61af66fc99e Initial load
duke
parents:
diff changeset
211 public boolean isCloneable() { return getAccessFlagsObj().isCloneable(); }
a61af66fc99e Initial load
duke
parents:
diff changeset
212 public boolean hasVanillaConstructor() { return getAccessFlagsObj().hasVanillaConstructor(); }
a61af66fc99e Initial load
duke
parents:
diff changeset
213 public boolean hasMirandaMethods () { return getAccessFlagsObj().hasMirandaMethods(); }
a61af66fc99e Initial load
duke
parents:
diff changeset
214 }