Javadoc parse(String rawInput, int from, int to) { char[] rawContent; rawContent = new char[to + GENERIC_JAVA_CLASS_SUFFIX.length]; Arrays.fill(rawContent, 0, from, ' '); System.arraycopy(rawInput.substring(from, to).toCharArray(), 0, rawContent, from, to - from); // Eclipse crashes if there's no character following the javadoc. System.arraycopy(GENERIC_JAVA_CLASS_SUFFIX, 0, rawContent, to, GENERIC_JAVA_CLASS_SUFFIX.length); this.sourceLevel = ClassFileConstants.JDK1_6; this.scanner.setSource(rawContent); this.source = rawContent; this.javadocStart = from; this.javadocEnd = to; this.reportProblems = true; this.docComment = new Javadoc(this.javadocStart, this.javadocEnd); commentParse(); this.docComment.valuePositions = -1; this.docComment.sourceEnd--; return docComment; } }
Javadoc parse(String rawInput, int from, int to) { char[] rawContent; rawContent = new char[to + GENERIC_JAVA_CLASS_SUFFIX.length]; Arrays.fill(rawContent, 0, from, ' '); System.arraycopy(rawInput.substring(from, to).toCharArray(), 0, rawContent, from, to - from); // Eclipse crashes if there's no character following the javadoc. System.arraycopy(GENERIC_JAVA_CLASS_SUFFIX, 0, rawContent, to, GENERIC_JAVA_CLASS_SUFFIX.length); this.sourceLevel = ClassFileConstants.JDK1_6; this.scanner.setSource(rawContent); this.source = rawContent; this.javadocStart = from; this.javadocEnd = to; this.reportProblems = true; this.docComment = new Javadoc(this.javadocStart, this.javadocEnd); commentParse(); this.docComment.valuePositions = -1; this.docComment.sourceEnd--; return docComment; } }
Javadoc parse(String rawInput, int from, int to) { char[] rawContent; rawContent = new char[to + GENERIC_JAVA_CLASS_SUFFIX.length]; Arrays.fill(rawContent, 0, from, ' '); System.arraycopy(rawInput.substring(from, to).toCharArray(), 0, rawContent, from, to - from); // Eclipse crashes if there's no character following the javadoc. System.arraycopy(GENERIC_JAVA_CLASS_SUFFIX, 0, rawContent, to, GENERIC_JAVA_CLASS_SUFFIX.length); this.sourceLevel = ClassFileConstants.JDK1_6; this.scanner.setSource(rawContent); this.source = rawContent; this.javadocStart = from; this.javadocEnd = to; this.reportProblems = true; this.docComment = new Javadoc(this.javadocStart, this.javadocEnd); commentParse(); this.docComment.valuePositions = -1; this.docComment.sourceEnd--; return docComment; } }
this.docComment = new Javadoc(this.javadocStart, this.javadocEnd); } else { this.docComment = null;
syntheticTypeDeclaration.javadoc = new Javadoc(syntheticTypeDeclaration.declarationSourceStart, syntheticTypeDeclaration.declarationSourceStart);
syntheticTypeDeclaration.javadoc = new Javadoc(syntheticTypeDeclaration.declarationSourceStart, syntheticTypeDeclaration.declarationSourceStart);
syntheticTypeDeclaration.javadoc = new Javadoc(syntheticTypeDeclaration.declarationSourceStart, syntheticTypeDeclaration.declarationSourceStart);
syntheticTypeDeclaration.javadoc = new Javadoc(syntheticTypeDeclaration.declarationSourceStart, syntheticTypeDeclaration.declarationSourceStart);
syntheticTypeDeclaration.javadoc = new Javadoc(syntheticTypeDeclaration.declarationSourceStart, syntheticTypeDeclaration.declarationSourceStart);
syntheticTypeDeclaration.javadoc = new Javadoc(syntheticTypeDeclaration.declarationSourceStart, syntheticTypeDeclaration.declarationSourceStart);
syntheticTypeDeclaration.javadoc = new Javadoc(syntheticTypeDeclaration.declarationSourceStart, syntheticTypeDeclaration.declarationSourceStart);
syntheticTypeDeclaration.javadoc = new Javadoc(syntheticTypeDeclaration.declarationSourceStart, syntheticTypeDeclaration.declarationSourceStart);
syntheticTypeDeclaration.javadoc = new Javadoc(syntheticTypeDeclaration.declarationSourceStart, syntheticTypeDeclaration.declarationSourceStart);
syntheticTypeDeclaration.javadoc = new Javadoc(syntheticTypeDeclaration.declarationSourceStart, syntheticTypeDeclaration.declarationSourceStart);
syntheticTypeDeclaration.javadoc = new Javadoc(syntheticTypeDeclaration.declarationSourceStart, syntheticTypeDeclaration.declarationSourceStart);