MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / compress

Method compress

src/main/java/fieldbox/boxes/Box.java:97–116  ·  view source on GitHub ↗
(String signature)

Source from the content-addressed store, hash-verified

95 .replace("-", "_");
96 }
97
98
99 @HiddenInAutocomplete
100 static public String compress(String signature) {
101 signature = " " + signature;
102
103 Pattern p = Pattern.compile("([A-Za-z]*?)[\\.\\$]([A-Za-z]*?)");
104 Matcher m = p.matcher(signature);
105
106 while (m.find()) {
107 signature = m.replaceAll("$2");
108 m = p.matcher(signature);
109 }
110
111 signature = signature.replace(" public ", " ");
112 signature = signature.replace(" final ", " ");
113 signature = signature.replace(" void ", " ");
114 signature = signature.replace(" ", " ");
115 signature = signature.replace(" ", " ");
116
117 return signature.trim();
118 }
119

Callers 3

assembleCompletionsMethod · 0.95
buildImageMethod · 0.45
buildVideoSequenceMethod · 0.45

Calls 3

compileMethod · 0.80
replaceMethod · 0.80
findMethod · 0.45

Tested by

no test coverage detected