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

Method strings

output/java/1.4.13/BytecodeDisassembler.java:135–152  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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