MCPcopy Create free account
hub / github.com/FabricMC/Matcher / getAccess

Method getAccess

src/main/java/matcher/type/FieldInstance.java:89–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

87 }
88
89 @Override
90 public int getAccess() {
91 if (asmNode == null) {
92 int ret = Opcodes.ACC_PUBLIC;
93 if (isStatic) ret |= Opcodes.ACC_STATIC;
94 if (isStatic && type == cls && cls.isEnum()) ret |= Opcodes.ACC_ENUM;
95 if (isStatic && cls.isInterface()) ret |= Opcodes.ACC_FINAL;
96
97 return ret;
98 } else {
99 return asmNode.access;
100 }
101 }
102
103 public FieldSignature getSignature() {
104 return signature;

Callers

nothing calls this directly

Calls 2

isEnumMethod · 0.80
isInterfaceMethod · 0.80

Tested by

no test coverage detected