protected JavadocParser createJavadocParser() { return new JavadocParser(this); } protected LocalDeclaration createLocalDeclaration(char[] localDeclarationName, int sourceStart, int sourceEnd) {
public boolean checkDeprecation(int commentPtr) { this.categoriesPtr = -1; boolean result = super.checkDeprecation(commentPtr); if (this.categoriesPtr > -1) { System.arraycopy(this.categories, 0, this.categories = new char[this.categoriesPtr+1][], 0, this.categoriesPtr+1); } else { this.categories = CharOperation.NO_CHAR_CHAR; } return result; }
@Override protected boolean commentParse() { this.docComment = new CompletionJavadoc(this.javadocStart, this.javadocEnd); this.firstTagPosition = 1; // bug 429340: completion parser needs to parse the whole comment return super.commentParse(); }
this.scanner.startPosition = this.index; int currentPosition = this.index; char firstChar = readChar(); switch (firstChar) { case ' ': currentChar = readChar(); switch (currentChar) { case ' ': this.tagValue = TAG_CATEGORY_VALUE; if (!this.inlineTagStarted) { valid = parseIdentifierTag(false); // TODO (frederic) reconsider parameter value when @category will be significant in spec this.tagValue = TAG_EXCEPTION_VALUE; if (!this.inlineTagStarted) { valid = parseThrows(); valid = true; if (this.reportProblems) { recordInheritedPosition((((long) this.tagSourceStart) << 32) + this.tagSourceEnd); parseInheritDocTag(); this.tagValue = TAG_LINK_VALUE; if (this.inlineTagStarted || (this.kind & COMPLETION_PARSER) != 0) { valid= parseReference(); valid = parseReference();
this.scanner.linePtr = this.sourceParser.scanner.linePtr; this.lineEnds = this.scanner.lineEnds; commentParse(); } else { char c = readChar(); // consider unicodes parseSimpleTag(); if (this.tagValue == TAG_DEPRECATED_VALUE) { if (this.abort) break nextCharacter;
protected boolean parseReturn() { if (this.returnStatement == null) { this.returnStatement = createReturnStatement(); return true; } if (this.reportProblems) { this.sourceParser.problemReporter().javadocDuplicatedReturnTag( this.scanner.getCurrentTokenStartPosition(), this.scanner.getCurrentTokenEndPosition()); } return false; }
if (typeRef == null) { char[] name = this.sourceParser.compilationUnit.getMainTypeName(); TypeDeclaration typeDecl = getParsedTypeDeclaration(); if (typeDecl != null) { name = typeDecl.name;
protected boolean parseIdentifierTag(boolean report) { if (super.parseIdentifierTag(report)) { createTag(); this.index = this.tagSourceEnd+1; this.scanner.resetTo(this.index, this.javadocEnd); return true; } this.tagValue = TAG_OTHERS_VALUE; // tag is invalid, do not keep the parsed tag value return false; }
@Override protected boolean parseReference() throws InvalidInputException { boolean completed = this.completionNode != null; boolean valid = super.parseReference(); if (!completed && this.completionNode != null) { this.completionNode.addCompletionFlags(CompletionOnJavadoc.FORMAL_REFERENCE); } return valid; }
long namePosition = (((long)startPosition)<<32) + endPosition; this.identifierPtr = -1; boolean valid = super.parseParam(); if (this.identifierPtr > 2) return valid;
this.scanner.startPosition = this.index; int currentPosition = this.index; char firstChar = readChar(); switch (firstChar) { case ' ': currentChar = readChar(); switch (currentChar) { case ' ': this.tagValue = TAG_CATEGORY_VALUE; if (!this.inlineTagStarted) { valid = parseIdentifierTag(false); // TODO (frederic) reconsider parameter value when @category will be significant in spec this.tagValue = TAG_EXCEPTION_VALUE; if (!this.inlineTagStarted) { valid = parseThrows(); valid = true; if (this.reportProblems) { recordInheritedPosition((((long) this.tagSourceStart) << 32) + this.tagSourceEnd); parseInheritDocTag(); this.tagValue = TAG_LINK_VALUE; if (this.inlineTagStarted || (this.kind & COMPLETION_PARSER) != 0) { valid= parseReference(); valid = parseReference();
this.scanner.linePtr = this.sourceParser.scanner.linePtr; this.lineEnds = this.scanner.lineEnds; commentParse(); } else { char c = readChar(); // consider unicodes parseSimpleTag(); if (this.tagValue == TAG_DEPRECATED_VALUE) { if (this.abort) break nextCharacter;
protected boolean parseReturn() { if (this.returnStatement == null) { this.returnStatement = createReturnStatement(); return true; } if (this.reportProblems) { this.sourceParser.problemReporter().javadocDuplicatedReturnTag( this.scanner.getCurrentTokenStartPosition(), this.scanner.getCurrentTokenEndPosition()); } return false; }
if (typeRef == null) { char[] name = this.sourceParser.compilationUnit.getMainTypeName(); TypeDeclaration typeDecl = getParsedTypeDeclaration(); if (typeDecl != null) { name = typeDecl.name;
protected boolean parseIdentifierTag(boolean report) { if (super.parseIdentifierTag(report)) { createTag(); this.index = this.tagSourceEnd+1; this.scanner.resetTo(this.index, this.javadocEnd); return true; } this.tagValue = TAG_OTHERS_VALUE; // tag is invalid, do not keep the parsed tag value return false; }
protected boolean parseReference() throws InvalidInputException { boolean valid = super.parseReference(); if (!valid) { this.scanner.resetTo(this.tagSourceEnd+1, this.javadocEnd); this.index = this.tagSourceEnd+1; this.tagValue = TAG_OTHERS_VALUE; // tag is invalid, do not keep the parsed tag value } return valid; }
long namePosition = (((long)startPosition)<<32) + endPosition; this.identifierPtr = -1; boolean valid = super.parseParam(); if (this.identifierPtr > 2) return valid;
this.scanner.startPosition = this.index; int currentPosition = this.index; char firstChar = readChar(); switch (firstChar) { case ' ': currentChar = readChar(); switch (currentChar) { case ' ': this.tagValue = TAG_CATEGORY_VALUE; if (!this.inlineTagStarted) { valid = parseIdentifierTag(false); // TODO (frederic) reconsider parameter value when @category will be significant in spec this.tagValue = TAG_EXCEPTION_VALUE; if (!this.inlineTagStarted) { valid = parseThrows(); valid = true; if (this.reportProblems) { recordInheritedPosition((((long) this.tagSourceStart) << 32) + this.tagSourceEnd); parseInheritDocTag(); this.tagValue = TAG_LINK_VALUE; if (this.inlineTagStarted || (this.kind & COMPLETION_PARSER) != 0) { valid= parseReference(); valid = parseReference();
public boolean checkDeprecation(int commentPtr) { this.categoriesPtr = -1; boolean result = super.checkDeprecation(commentPtr); if (this.categoriesPtr > -1) { System.arraycopy(this.categories, 0, this.categories = new char[this.categoriesPtr+1][], 0, this.categoriesPtr+1); } else { this.categories = CharOperation.NO_CHAR_CHAR; } return result; }
protected boolean commentParse() { this.docComment = new CompletionJavadoc(this.javadocStart, this.javadocEnd); this.firstTagPosition = 1; // bug 429340: completion parser needs to parse the whole comment return super.commentParse(); }