MCPcopy Create free account
hub / github.com/antlr/codebuff / strings

Method strings

output/java/1.4.17/BytecodeDisassembler.java:136–153  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

134 }
135
136 public String strings() {
137 StringBuilder buf = new StringBuilder();
138 int addr = 0;
139 if ( code.strings!=null ) {
140 for (Object o : code.strings) {
141 if ( o instanceof String ) {
142 String s = (String)o;
143 s = Misc.replaceEscapes(s);
144 buf.append(String.format("%04d: \"%s\"\n", addr, s));
145 }
146 else {
147 buf.append(String.format("%04d: %s\n", addr, o));
148 }
149 addr++;
150 }
151 }
152 return buf.toString();
153 }
154
155 public String sourceMap() {
156 StringBuilder buf = new StringBuilder();

Callers 2

dumpMethod · 0.95
disasmMethod · 0.95

Calls 4

replaceEscapesMethod · 0.95
toStringMethod · 0.65
appendMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected