private String showConstPoolOperand(int poolIndex) { StringBuilder buf = new StringBuilder(); buf.append("#"); buf.append(poolIndex); String s = "<bad string index>"; if ( poolIndex<code.strings.length ) { if ( code.strings[poolIndex]==null ) s = "null"; else { s = code.strings[poolIndex]; if (code.strings[poolIndex] != null) { s = Misc.replaceEscapes(s); s='"'+s+'"'; } } } buf.append(":"); buf.append(s); return buf.toString(); }
public String strings() { StringBuilder buf = new StringBuilder(); int addr = 0; if ( code.strings!=null ) { for (Object o : code.strings) { if ( o instanceof String ) { String s = (String)o; s = Misc.replaceEscapes(s); buf.append( String.format("%04d: \"%s\"\n", addr, s) ); } else { buf.append( String.format("%04d: %s\n", addr, o) ); } addr++; } } return buf.toString(); }
public String strings() { StringBuilder buf = new StringBuilder(); int addr = 0; if ( code.strings!=null ) { for (Object o : code.strings) { if ( o instanceof String ) { String s = (String)o; s = Misc.replaceEscapes(s); buf.append( String.format("%04d: \"%s\"\n", addr, s) ); } else { buf.append( String.format("%04d: %s\n", addr, o) ); } addr++; } } return buf.toString(); }
public String strings() { StringBuilder buf = new StringBuilder(); int addr = 0; if ( code.strings!=null ) { for (Object o : code.strings) { if ( o instanceof String ) { String s = (String)o; s = Misc.replaceEscapes(s); buf.append( String.format("%04d: \"%s\"\n", addr, s) ); } else { buf.append( String.format("%04d: %s\n", addr, o) ); } addr++; } } return buf.toString(); }
public String strings() { StringBuilder buf = new StringBuilder(); int addr = 0; if ( code.strings!=null ) { for (Object o : code.strings) { if ( o instanceof String ) { String s = (String)o; s = Misc.replaceEscapes(s); buf.append( String.format("%04d: \"%s\"\n", addr, s) ); } else { buf.append( String.format("%04d: %s\n", addr, o) ); } addr++; } } return buf.toString(); }
public String strings() { StringBuilder buf = new StringBuilder(); int addr = 0; if ( code.strings!=null ) { for (Object o : code.strings) { if ( o instanceof String ) { String s = (String)o; s = Misc.replaceEscapes(s); buf.append( String.format("%04d: \"%s\"\n", addr, s) ); } else { buf.append( String.format("%04d: %s\n", addr, o) ); } addr++; } } return buf.toString(); }
private String showConstPoolOperand(int poolIndex) { StringBuffer buf = new StringBuffer(); buf.append("#"); buf.append(poolIndex); String s = "<bad string index>"; if ( poolIndex<code.strings.length ) { if ( code.strings[poolIndex]==null ) s = "null"; else { s = code.strings[poolIndex].toString(); if ( code.strings[poolIndex] instanceof String ) { s = Misc.replaceEscapes(s); s='"'+s+'"'; } } } buf.append(":"); buf.append(s); return buf.toString(); }
private String showConstPoolOperand(int poolIndex) { StringBuilder buf = new StringBuilder(); buf.append("#"); buf.append(poolIndex); String s = "<bad string index>"; if ( poolIndex<code.strings.length ) { if ( code.strings[poolIndex]==null ) s = "null"; else { s = code.strings[poolIndex]; if (code.strings[poolIndex] != null) { s = Misc.replaceEscapes(s); s='"'+s+'"'; } } } buf.append(":"); buf.append(s); return buf.toString(); }
public String strings() { StringBuffer buf = new StringBuffer(); int addr = 0; if ( code.strings!=null ) { for (Object o : code.strings) { if ( o instanceof String ) { String s = (String)o; s = Misc.replaceEscapes(s); buf.append( String.format("%04d: \"%s\"\n", addr, s) ); } else { buf.append( String.format("%04d: %s\n", addr, o) ); } addr++; } } return buf.toString(); }
public String strings() { StringBuilder buf = new StringBuilder(); int addr = 0; if ( code.strings!=null ) { for (Object o : code.strings) { if ( o instanceof String ) { String s = (String)o; s = Misc.replaceEscapes(s); buf.append( String.format("%04d: \"%s\"\n", addr, s) ); } else { buf.append( String.format("%04d: %s\n", addr, o) ); } addr++; } } return buf.toString(); }
private String showConstPoolOperand(int poolIndex) { StringBuilder buf = new StringBuilder(); buf.append("#"); buf.append(poolIndex); String s = "<bad string index>"; if ( poolIndex<code.strings.length ) { if ( code.strings[poolIndex]==null ) s = "null"; else { s = code.strings[poolIndex].toString(); if ( code.strings[poolIndex] instanceof String ) { s = Misc.replaceEscapes(s); s='"'+s+'"'; } } } buf.append(":"); buf.append(s); return buf.toString(); }
private String showConstPoolOperand(int poolIndex) { StringBuilder buf = new StringBuilder(); buf.append("#"); buf.append(poolIndex); String s = "<bad string index>"; if ( poolIndex<code.strings.length ) { if ( code.strings[poolIndex]==null ) s = "null"; else { s = code.strings[poolIndex].toString(); if ( code.strings[poolIndex] instanceof String ) { s = Misc.replaceEscapes(s); s='"'+s+'"'; } } } buf.append(":"); buf.append(s); return buf.toString(); }
@Override public String toString() { String channelStr = ""; if ( channel>0 ) { channelStr=",channel="+channel; } String txt = getText(); if ( txt!=null ) txt = Misc.replaceEscapes(txt); else txt = "<no text>"; String tokenName; if ( type==EOF_TYPE ) tokenName = "EOF"; else tokenName = STParser.tokenNames[type]; return "[@"+getTokenIndex()+","+start+":"+stop+"='"+txt+"',<"+ tokenName +">"+channelStr+","+line+":"+getCharPositionInLine()+"]"; } }
public String toString() { String channelStr = ""; if ( channel>0 ) { channelStr=",channel="+channel; } String txt = getText(); if ( txt!=null ) txt = Misc.replaceEscapes(txt); else txt = "<no text>"; String tokenName = null; if ( type==EOF_TYPE ) tokenName = "EOF"; else tokenName = STParser.tokenNames[type]; return "[@"+getTokenIndex()+","+start+":"+stop+"='"+txt+"',<"+ tokenName +">"+channelStr+","+line+":"+getCharPositionInLine()+"]"; } }
@Override public String toString() { String channelStr = ""; if ( channel>0 ) { channelStr=",channel="+channel; } String txt = getText(); if ( txt!=null ) txt = Misc.replaceEscapes(txt); else txt = "<no text>"; String tokenName = null; if ( type==EOF_TYPE ) tokenName = "EOF"; else tokenName = STParser.tokenNames[type]; return "[@"+getTokenIndex()+","+start+":"+stop+"='"+txt+"',<"+ tokenName +">"+channelStr+","+line+":"+getCharPositionInLine()+"]"; } }
@Override public String toString() { String channelStr = ""; if ( channel>0 ) { channelStr=",channel="+channel; } String txt = getText(); if ( txt!=null ) txt = Misc.replaceEscapes(txt); else txt = "<no text>"; String tokenName = null; if ( type==EOF_TYPE ) tokenName = "EOF"; else tokenName = STParser.tokenNames[type]; return "[@"+getTokenIndex()+","+start+":"+stop+"='"+txt+"',<"+ tokenName +">"+channelStr+","+line+":"+getCharPositionInLine()+"]"; } }
@Override public String toString() { String channelStr = ""; if ( channel>0 ) { channelStr=",channel="+channel; } String txt = getText(); if ( txt!=null ) txt = Misc.replaceEscapes(txt); else txt = "<no text>"; String tokenName = null; if ( type==EOF_TYPE ) tokenName = "EOF"; else tokenName = STParser.tokenNames[type]; return "[@"+getTokenIndex()+","+start+":"+stop+"='"+txt+"',<"+ tokenName +">"+channelStr+","+line+":"+getCharPositionInLine()+"]"; } }
@Override public String toString() { String channelStr = ""; if ( channel>0 ) { channelStr=",channel="+channel; } String txt = getText(); if ( txt!=null ) txt = Misc.replaceEscapes(txt); else txt = "<no text>"; String tokenName; if ( type==EOF_TYPE ) tokenName = "EOF"; else tokenName = STParser.tokenNames[type]; return "[@"+getTokenIndex()+","+start+":"+stop+"='"+txt+"',<"+ tokenName +">"+channelStr+","+line+":"+getCharPositionInLine()+"]"; } }
@Override public String toString() { String channelStr = ""; if ( channel>0 ) { channelStr=",channel="+channel; } String txt = getText(); if ( txt!=null ) txt = Misc.replaceEscapes(txt); else txt = "<no text>"; String tokenName; if ( type==EOF_TYPE ) tokenName = "EOF"; else tokenName = STParser.tokenNames[type]; return "[@"+getTokenIndex()+","+start+":"+stop+"='"+txt+"',<"+ tokenName +">"+channelStr+","+line+":"+getCharPositionInLine()+"]"; } }
@Override public String toString() { String channelStr = ""; if ( channel>0 ) { channelStr=",channel="+channel; } String txt = getText(); if ( txt!=null ) txt = Misc.replaceEscapes(txt); else txt = "<no text>"; String tokenName = null; if ( type==EOF_TYPE ) tokenName = "EOF"; else tokenName = STParser.tokenNames[type]; return "[@"+getTokenIndex()+","+start+":"+stop+"='"+txt+"',<"+ tokenName +">"+channelStr+","+line+":"+getCharPositionInLine()+"]"; } }