List of usage examples for org.eclipse.jdt.internal.core BinaryType getJavadocRange
ISourceRange getJavadocRange() throws JavaModelException;
From source file:hydrograph.ui.expression.editor.datastructure.ClassDetails.java
License:Apache License
private String getJavaDoc(IClassFile classFile) throws JavaModelException { BinaryType binaryType = (BinaryType) classFile.getType(); if (binaryType.getSource() != null && binaryType.getJavadocRange() != null) { String javaDoc = Constants.EMPTY_STRING; javaDoc = StringUtils.substring(binaryType.getSource().toString(), 0, binaryType.getJavadocRange().getLength()); javaDoc = StringUtils.replaceEachRepeatedly(javaDoc, new String[] { "/*", "*/", "*" }, new String[] { Constants.EMPTY_STRING, Constants.EMPTY_STRING, Constants.EMPTY_STRING }); }//from w w w .j a va 2 s . co m return javaDoc; }