@Override public String toString() { StringBuilder buf = new StringBuilder(); if (!name.isUniversal()) { buf.append("name=\""); buf.append(name.getSpec()); buf.append("\""); } if (signature != null) { if (buf.length() > 0) { buf.append(" "); } buf.append("signature=\""); buf.append(signature); buf.append("\""); } return buf.toString(); }
@Override public void writeXML(XMLOutput xmlOutput, boolean disabled) throws IOException { XMLAttributeList attributes = new XMLAttributeList().addAttribute("name", name.getSpec()); if (signature != null) { attributes.addOptionalAttribute("signature", signature.getSpec()); } attributes.addOptionalAttribute("role", role); if (disabled) { attributes.addAttribute("disabled", "true"); } xmlOutput.openCloseTag("Field", attributes); } }
@Override public void writeXML(XMLOutput xmlOutput, boolean disabled) throws IOException { XMLAttributeList attributes = new XMLAttributeList().addAttribute("name", fileName.getSpec()); if (disabled) { attributes.addAttribute("disabled", "true"); } xmlOutput.openCloseTag("Source", attributes); } }
@Override public void writeXML(XMLOutput xmlOutput, boolean disabled) throws IOException { XMLAttributeList attributes = new XMLAttributeList().addAttribute("name", name.getSpec()); if (disabled) { attributes.addAttribute("disabled", "true"); } xmlOutput.openCloseTag("Local", attributes); } }
@Override public void writeXML(XMLOutput xmlOutput, boolean disabled) throws IOException { XMLAttributeList attributes = new XMLAttributeList().addAttribute("name", name.getSpec()); if (signature != null && signature.getSpec() != null) { StringBuilder paramsBuilder = new StringBuilder(); SignatureConverter converter = new SignatureConverter(signature.getSpec()); converter.skip(); while (converter.getFirst() != ')') { if (paramsBuilder.length() > 1) { paramsBuilder.append(", "); } paramsBuilder.append(converter.parseNext()); } converter.skip(); String params = paramsBuilder.toString(); String returns = converter.parseNext(); attributes.addAttribute("params", params); attributes.addAttribute("returns", returns); } attributes.addOptionalAttribute("role", role); if (disabled) { attributes.addAttribute("disabled", "true"); } xmlOutput.openCloseTag("Method", attributes); } }
@Override public void writeXML(XMLOutput xmlOutput, boolean disabled) throws IOException { XMLAttributeList attributes = new XMLAttributeList().addAttribute("name", className.getSpec()); if (disabled) { attributes.addAttribute("disabled", "true"); } attributes.addOptionalAttribute("role", role); xmlOutput.openCloseTag("Class", attributes); } }
@Override public void writeXML(XMLOutput xmlOutput, boolean disabled) throws IOException { XMLAttributeList attributes = new XMLAttributeList().addAttribute("descriptor", descriptor.getSpec()); if (disabled) { attributes.addAttribute("disabled", "true"); } attributes.addOptionalAttribute("typeParameters", typeParameters); attributes.addOptionalAttribute("role", role); xmlOutput.openCloseTag("Type", attributes); } }
@Override public String toString() { StringBuilder buf = new StringBuilder(); if (!name.isUniversal()) { buf.append("name=\""); buf.append(name.getSpec()); buf.append("\""); } if (signature != null) { if (buf.length() > 0) { buf.append(" "); } buf.append("signature=\""); buf.append(signature); buf.append("\""); } return buf.toString(); }
@Override public void writeXML(XMLOutput xmlOutput, boolean disabled) throws IOException { XMLAttributeList attributes = new XMLAttributeList().addAttribute("name", name.getSpec()); if (signature != null) { attributes.addOptionalAttribute("signature", signature.getSpec()); } attributes.addOptionalAttribute("role", role); if (disabled) { attributes.addAttribute("disabled", "true"); } xmlOutput.openCloseTag("Field", attributes); } }
@Override public void writeXML(XMLOutput xmlOutput, boolean disabled) throws IOException { XMLAttributeList attributes = new XMLAttributeList().addAttribute("name", fileName.getSpec()); if (disabled) { attributes.addAttribute("disabled", "true"); } xmlOutput.openCloseTag("Source", attributes); } }
@Override public void writeXML(XMLOutput xmlOutput, boolean disabled) throws IOException { XMLAttributeList attributes = new XMLAttributeList().addAttribute("name", name.getSpec()); if (disabled) { attributes.addAttribute("disabled", "true"); } xmlOutput.openCloseTag("Local", attributes); } }
@Override public void writeXML(XMLOutput xmlOutput, boolean disabled) throws IOException { XMLAttributeList attributes = new XMLAttributeList().addAttribute("name", name.getSpec()); if (signature != null && signature.getSpec() != null) { StringBuilder paramsBuilder = new StringBuilder(); SignatureConverter converter = new SignatureConverter(signature.getSpec()); converter.skip(); while (converter.getFirst() != ')') { if (paramsBuilder.length() > 1) { paramsBuilder.append(", "); } paramsBuilder.append(converter.parseNext()); } converter.skip(); String params = paramsBuilder.toString(); String returns = converter.parseNext(); attributes.addAttribute("params", params); attributes.addAttribute("returns", returns); } attributes.addOptionalAttribute("role", role); if (disabled) { attributes.addAttribute("disabled", "true"); } xmlOutput.openCloseTag("Method", attributes); } }
@Override public void writeXML(XMLOutput xmlOutput, boolean disabled) throws IOException { XMLAttributeList attributes = new XMLAttributeList().addAttribute("name", className.getSpec()); if (disabled) { attributes.addAttribute("disabled", "true"); } attributes.addOptionalAttribute("role", role); xmlOutput.openCloseTag("Class", attributes); } }
@Override public void writeXML(XMLOutput xmlOutput, boolean disabled) throws IOException { XMLAttributeList attributes = new XMLAttributeList().addAttribute("descriptor", descriptor.getSpec()); if (disabled) { attributes.addAttribute("disabled", "true"); } attributes.addOptionalAttribute("typeParameters", typeParameters); attributes.addOptionalAttribute("role", role); xmlOutput.openCloseTag("Type", attributes); } }