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

Method getField

src/main/java/matcher/srcprocess/TypeResolver.java:129–137  ·  view source on GitHub ↗
(VariableDeclarator var)

Source from the content-addressed store, hash-verified

127 }
128
129 public FieldInstance getField(VariableDeclarator var) {
130 ClassInstance cls = getCls(var);
131 if (cls == null) return null;
132
133 String name = var.getName().getIdentifier();
134 String desc = toDesc(var.getType(), rootCls);
135
136 return cls.getField(name, desc, nameType);
137 }
138
139 public FieldInstance getField(EnumConstantDeclaration var) {
140 ClassInstance cls = getCls(var);

Callers 4

fieldStartMethod · 0.45
visitMethod · 0.45
visitMethod · 0.45
readMethod · 0.45

Calls 9

getClsMethod · 0.95
toDescMethod · 0.95
getFieldMethod · 0.95
isPrimitiveMethod · 0.95
getNameMethod · 0.95
getIdMethod · 0.95
getNameMethod · 0.65
getIdentifierMethod · 0.45
getTypeMethod · 0.45

Tested by

no test coverage detected