MCPcopy Create free account
hub / github.com/java-native-access/jna / getFieldOrder

Method getFieldOrder

src/com/sun/jna/Union.java:67–75  ·  view source on GitHub ↗

Unions do not need a field order, so automatically provide a value to satisfy checking in the Structure superclass.

()

Source from the content-addressed store, hash-verified

65 * satisfy checking in the Structure superclass.
66 */
67 @Override
68 protected List<String> getFieldOrder() {
69 List<Field> flist = getFieldList();
70 List<String> list = new ArrayList<>(flist.size());
71 for (Field f : flist) {
72 list.add(f.getName());
73 }
74 return list;
75 }
76
77 /** Indicates by type which field will be used to write to native memory.
78 * If there are multiple fields of the same type, use {@link

Callers

nothing calls this directly

Calls 4

getNameMethod · 0.65
getFieldListMethod · 0.45
sizeMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected