/** * Return whether the deprecated comment strings of the given java doc are equals. * <p> * Note the only purpose of this method is to hide deprecated warnings. * @deprecated mark deprecated to hide deprecated usage */ private boolean compareDeprecatedComment(Javadoc first, Javadoc second) { if (first.getAST().apiLevel == AST.JLS2_INTERNAL) { return safeEquals(first.getComment(), second.getComment()); } else { return true; } }
/** * Return whether the deprecated comment strings of the given java doc are equals. * <p> * Note the only purpose of this method is to hide deprecated warnings. * @deprecated mark deprecated to hide deprecated usage */ private boolean compareDeprecatedComment(Javadoc first, Javadoc second) { if (first.getAST().apiLevel == AST.JLS2_INTERNAL) { return safeEquals(first.getComment(), second.getComment()); } else { return true; } }
/** * Return whether the deprecated comment strings of the given java doc are equals. * <p> * Note the only purpose of this method is to hide deprecated warnings. * @deprecated mark deprecated to hide deprecated usage */ private boolean compareDeprecatedComment(Javadoc first, Javadoc second) { if (first.getAST().apiLevel == AST.JLS2_INTERNAL) { return safeEquals(first.getComment(), second.getComment()); } else { return true; } }
/** * Return whether the deprecated comment strings of the given java doc are equals. * <p> * Note the only purpose of this method is to hide deprecated warnings. * @deprecated mark deprecated to hide deprecated usage */ private boolean compareDeprecatedComment(Javadoc first, Javadoc second) { if (first.getAST().apiLevel == AST.JLS2_INTERNAL) { return safeEquals(first.getComment(), second.getComment()); } else { return true; } }
/** * Return whether the deprecated comment strings of the given java doc are equals. * <p> * Note the only purpose of this method is to hide deprecated warnings. * @deprecated mark deprecated to hide deprecated usage */ private boolean compareDeprecatedComment(Javadoc first, Javadoc second) { if (first.getAST().apiLevel == AST.JLS2_INTERNAL) { return safeEquals(first.getComment(), second.getComment()); } else { return true; } }
/** * Return whether the deprecated comment strings of the given java doc are equals. * <p> * Note the only purpose of this method is to hide deprecated warnings. * @deprecated mark deprecated to hide deprecated usage */ private boolean compareDeprecatedComment(Javadoc first, Javadoc second) { if (first.getAST().apiLevel == AST.JLS2_INTERNAL) { return safeEquals(first.getComment(), second.getComment()); } else { return true; } }
final Object internalGetSetObjectProperty(SimplePropertyDescriptor property, boolean get, Object value) { if (property == COMMENT_PROPERTY) { if (get) { return getComment(); } else { setComment((String) value); return null; } } // allow default implementation to flag the error return super.internalGetSetObjectProperty(property, get, value); }
final Object internalGetSetObjectProperty(SimplePropertyDescriptor property, boolean get, Object value) { if (property == COMMENT_PROPERTY) { if (get) { return getComment(); } else { setComment((String) value); return null; } } // allow default implementation to flag the error return super.internalGetSetObjectProperty(property, get, value); }
final Object internalGetSetObjectProperty(SimplePropertyDescriptor property, boolean get, Object value) { if (property == COMMENT_PROPERTY) { if (get) { return getComment(); } else { setComment((String) value); return null; } } // allow default implementation to flag the error return super.internalGetSetObjectProperty(property, get, value); }
final Object internalGetSetObjectProperty(SimplePropertyDescriptor property, boolean get, Object value) { if (property == COMMENT_PROPERTY) { if (get) { return getComment(); } else { setComment((String) value); return null; } } // allow default implementation to flag the error return super.internalGetSetObjectProperty(property, get, value); }
final Object internalGetSetObjectProperty(SimplePropertyDescriptor property, boolean get, Object value) { if (property == COMMENT_PROPERTY) { if (get) { return getComment(); } else { setComment((String) value); return null; } } // allow default implementation to flag the error return super.internalGetSetObjectProperty(property, get, value); }
@Override final Object internalGetSetObjectProperty(SimplePropertyDescriptor property, boolean get, Object value) { if (property == COMMENT_PROPERTY) { if (get) { return getComment(); } else { setComment((String) value); return null; } } // allow default implementation to flag the error return super.internalGetSetObjectProperty(property, get, value); }
private List<ExtractedDocTest> extractExamples( Collection<String> imports, String pkg, String rootClass, String source, BodyDeclaration node ) { Javadoc javadoc = node.getJavadoc(); if(javadoc == null) { return Collections.emptyList(); } return extractCodeBlocks( source, imports, pkg, rootClass, extractJavadoc( javadoc.getComment() ) ); }
ASTNode clone0(AST target) { Javadoc result = new Javadoc(target); result.setSourceRange(getStartPosition(), getLength()); if (this.ast.apiLevel == AST.JLS2_INTERNAL) { result.setComment(getComment()); } result.tags().addAll(ASTNode.copySubtrees(target, tags())); return result; }
ASTNode clone0(AST target) { Javadoc result = new Javadoc(target); result.setSourceRange(getStartPosition(), getLength()); if (this.ast.apiLevel == AST.JLS2_INTERNAL) { result.setComment(getComment()); } result.tags().addAll(ASTNode.copySubtrees(target, tags())); return result; }
@Override ASTNode clone0(AST target) { Javadoc result = new Javadoc(target); result.setSourceRange(getStartPosition(), getLength()); if (this.ast.apiLevel == AST.JLS2_INTERNAL) { result.setComment(getComment()); } result.tags().addAll(ASTNode.copySubtrees(target, tags())); return result; }
ASTNode clone0(AST target) { Javadoc result = new Javadoc(target); result.setSourceRange(getStartPosition(), getLength()); if (this.ast.apiLevel == AST.JLS2_INTERNAL) { result.setComment(getComment()); } result.tags().addAll(ASTNode.copySubtrees(target, tags())); return result; }
ASTNode clone0(AST target) { Javadoc result = new Javadoc(target); result.setSourceRange(getStartPosition(), getLength()); if (this.ast.apiLevel == AST.JLS2_INTERNAL) { result.setComment(getComment()); } result.tags().addAll(ASTNode.copySubtrees(target, tags())); return result; }
ASTNode clone0(AST target) { Javadoc result = new Javadoc(target); result.setSourceRange(getStartPosition(), getLength()); if (this.ast.apiLevel == AST.JLS2_INTERNAL) { result.setComment(getComment()); } result.tags().addAll(ASTNode.copySubtrees(target, tags())); return result; }