parameters.put("start", Integer.toString(s.sourceStart())); //$NON-NLS-1$
parameters.put("end", Integer.toString(s.sourceEnd())); //$NON-NLS-1$
// Print modifiers:
if (s instanceof Declaration) {
Declaration declaration = (Declaration) s;
StringBuilder buf = new StringBuilder();
if (declaration.isAbstract()) {
buf.append(",abstract"); //$NON-NLS-1$
}
if (declaration.isFinal()) {
buf.append(",final"); //$NON-NLS-1$
}
if (declaration.isPrivate()) {
buf.append(",private"); //$NON-NLS-1$
}
if (declaration.isProtected()) {
buf.append(",protected"); //$NON-NLS-1$
}
if (declaration.isPublic()) {
buf.append(",public"); //$NON-NLS-1$
}
if (declaration.isStatic()) {
buf.append(",static"); //$NON-NLS-1$
}
String modifiers = buf.toString();
parameters
.put("modifiers", //$NON-NLS-1$