@Override ASTNode clone0(AST target) { BlockComment result = new BlockComment(target); result.setSourceRange(getStartPosition(), getLength()); return result; }
@Override int treeSize() { return memSize(); } }
@Override final List internalStructuralPropertiesForType(int apiLevel) { return propertyDescriptors(apiLevel); }
/** * Creates and returns a new block comment placeholder node. * <p> * Note that this node type is used to recording the source * range where a comment was found in the source string. * These comment nodes are normally found (only) in * {@linkplain CompilationUnit#getCommentList() * the comment table} for parsed compilation units. * </p> * * @return a new unparented block comment node * @since 3.0 */ public BlockComment newBlockComment() { BlockComment result = new BlockComment(this); return result; }
private boolean shouldWrap(final BlockComment comment) { int _startPosition = comment.getStartPosition(); int _length = comment.getLength(); final int index = (_startPosition + _length); int _length_1 = this.javaSources.length(); boolean _lessThan = (index < _length_1); if (_lessThan) { final char charAfterComment = this.javaSources.charAt(index); if (((charAfterComment == (Character.valueOf('\n')).charValue()) || (charAfterComment == (Character.valueOf('\r')).charValue()))) { return true; } } return false; }
private void addBlockCommentToJavadocEdits(List<TextEdit> commentEdits) { for (BlockComment blockComment : this.blockCommentToJavadoc) { final int offset = blockComment.getStartPosition() + "/*".length(); commentEdits.add(new InsertEdit(offset, "*")); } }
public boolean visit(BlockComment node) { if (node.subtreeMatch(fMatcher, fNodeToMatch)) return matches(node); return super.visit(node); }
/** * Creates and returns a new block comment placeholder node. * <p> * Note that this node type is used to recording the source * range where a comment was found in the source string. * These comment nodes are normally found (only) in * {@linkplain CompilationUnit#getCommentList() * the comment table} for parsed compilation units. * </p> * * @return a new unparented block comment node * @since 3.0 */ public BlockComment newBlockComment() { BlockComment result = new BlockComment(this); return result; }
@Override public boolean visit(BlockComment node) { _compilationUnit.addComment(new CSBlockComment(node.getStartPosition(), getText(node.getStartPosition(), node .getLength()))); return false; };
@Override public boolean visit(BlockComment node) { if (node.subtreeMatch(fMatcher, fNodeToMatch)) return matches(node); return super.visit(node); }
ASTNode clone0(AST target) { BlockComment result = new BlockComment(target); result.setSourceRange(getStartPosition(), getLength()); return result; }
/** * Creates and returns a new block comment placeholder node. * <p> * Note that this node type is used to recording the source * range where a comment was found in the source string. * These comment nodes are normally found (only) in * {@linkplain CompilationUnit#getCommentList() * the comment table} for parsed compilation units. * </p> * * @return a new unparented block comment node * @since 3.0 */ public BlockComment newBlockComment() { BlockComment result = new BlockComment(this); return result; }
int treeSize() { return memSize(); } }
final List internalStructuralPropertiesForType(int apiLevel) { return propertyDescriptors(apiLevel); }
@Override public boolean visit(BlockComment node) { if (node.subtreeMatch(fMatcher, fNodeToMatch)) return matches(node); return super.visit(node); }
ASTNode clone0(AST target) { BlockComment result = new BlockComment(target); result.setSourceRange(getStartPosition(), getLength()); return result; }
/** * Creates and returns a new block comment placeholder node. * <p> * Note that this node type is used to recording the source * range where a comment was found in the source string. * These comment nodes are normally found (only) in * {@linkplain CompilationUnit#getCommentList() * the comment table} for parsed compilation units. * </p> * * @return a new unparented block comment node * @since 3.0 */ public BlockComment newBlockComment() { BlockComment result = new BlockComment(this); return result; }
int treeSize() { return memSize(); } }
final List internalStructuralPropertiesForType(int apiLevel) { return propertyDescriptors(apiLevel); }
ASTNode clone0(AST target) { BlockComment result = new BlockComment(target); result.setSourceRange(getStartPosition(), getLength()); return result; }