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

Method parse

src/main/java/matcher/type/Signature.java:692–703  ·  view source on GitHub ↗
(String sig, ClassEnv env)

Source from the content-addressed store, hash-verified

690
691 public static final class FieldSignature implements PotentialComparable<FieldSignature> {
692 public static FieldSignature parse(String sig, ClassEnv env) {
693 // ReferenceTypeSignature
694 FieldSignature ret = new FieldSignature();
695 MutableInt pos = new MutableInt();
696
697 ret.cls = ReferenceTypeSignature.parse(sig, pos, env);
698 assert pos.val == sig.length();
699
700 assert ret.toString().equals(sig);
701
702 return ret;
703 }
704
705 public ReferenceTypeSignature getCls() {
706 return cls;

Callers 1

FieldInstanceMethod · 0.95

Calls 3

parseMethod · 0.95
toStringMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected