MCPcopy Create free account
hub / github.com/ReadyTalk/avian / getAllFields

Method getAllFields

classpath/java/lang/Class.java:362–373  ·  view source on GitHub ↗
(VMClass vmClass, ArrayList<Field> fields)

Source from the content-addressed store, hash-verified

360 }
361
362 private static void getAllFields(VMClass vmClass, ArrayList<Field> fields) {
363 if (vmClass.super_ != null) {
364 getAllFields(vmClass.super_, fields);
365 }
366 if (vmClass.fieldTable != null) {
367 Classes.link(vmClass);
368
369 for (int i = 0; i < vmClass.fieldTable.length; ++i) {
370 fields.add(new Field(vmClass.fieldTable[i]));
371 }
372 }
373 }
374
375 public Field[] getAllFields() {
376 ArrayList<Field> fields = new ArrayList<Field>();

Callers 2

serializeObjectMethod · 0.95
deserializeObjectMethod · 0.80

Calls 4

linkMethod · 0.95
sizeMethod · 0.95
addMethod · 0.65
toArrayMethod · 0.65

Tested by

no test coverage detected