@Override protected String doConversion(Object obj) { try { return ((TemplateObject) obj).getCanonicalForm(); } catch (Exception e) { return "{Error getting canonical form}"; } }
@Override public String toString() { String s; try { s = getSource(); } catch (Exception e) { // REVISIT: A bit of a hack? (JR) s = null; } return s != null ? s : getCanonicalForm(); }
public final String getSource() { String s; if (template != null) { s = template.getSource(beginColumn, beginLine, endColumn, endLine); } else { s = null; } // Can't just return null for backward-compatibility... return s != null ? s : getCanonicalForm(); }
@Override protected String doConversion(Object obj) { try { return ((TemplateObject) obj).getCanonicalForm(); } catch (Exception e) { return "{Error getting canonical form}"; } }
@Override protected String doConversion(Object obj) { try { return ((TemplateObject) obj).getCanonicalForm(); } catch (Exception e) { return "{Error getting canonical form}"; } }
@Override public String toString() { String s; try { s = getSource(); } catch (Exception e) { // REVISIT: A bit of a hack? (JR) s = null; } return s != null ? s : getCanonicalForm(); }
public final String getSource() { String s; if (template != null) { s = template.getSource(beginColumn, beginLine, endColumn, endLine); } else { s = null; } // Can't just return null for backward-compatibility... return s != null ? s : getCanonicalForm(); }
@Override public String toString() { String s; try { s = getSource(); } catch (Exception e) { // REVISIT: A bit of a hack? (JR) s = null; } return s != null ? s : getCanonicalForm(); }
public final String getSource() { if (template != null) { return template.getSource(beginColumn, beginLine, endColumn, endLine); } else { return getCanonicalForm(); } }
public String toString() { try { return getSource(); } catch (Exception e) { // REVISIT: A bit of a hack? (JR) return getCanonicalForm(); } }
public final String getSource() { String s; if (template != null) { s = template.getSource(beginColumn, beginLine, endColumn, endLine); } else { s = null; } // Can't just return null for backward-compatibility... return s != null ? s : getCanonicalForm(); }