/** Get the value of the @modifies{this} annotation stored in the doc info. */ public boolean modifiesThis() { return (this.getModifies().contains("this")); }
/** * Get the value of the @modifies{this} annotation stored in the * doc info. */ private boolean hasSideEffectsThisAnnotation(JSDocInfo docInfo) { Preconditions.checkNotNull(docInfo); return (docInfo.getModifies().contains("this")); }
/** @return Whether the @modifies annotation includes "arguments" or any named parameters. */ public boolean hasSideEffectsArgumentsAnnotation() { Set<String> modifies = this.getModifies(); // TODO(johnlenz): if we start tracking parameters individually // this should simply be a check for "arguments". return (modifies.size() > 1 || (modifies.size() == 1 && !modifies.contains("this"))); } }
/** * @return Whether the @modifies annotation includes "arguments" * or any named parameters. */ private boolean hasSideEffectsArgumentsAnnotation(JSDocInfo docInfo) { Preconditions.checkNotNull(docInfo); Set<String> modifies = docInfo.getModifies(); // TODO(johnlenz): if we start tracking parameters individually // this should simply be a check for "arguments". return (modifies.size() > 1 || (modifies.size() == 1 && !modifies.contains("this"))); } }
&& Objects.equals(jsDoc1.getLicense(), jsDoc2.getLicense()) && Objects.equals(jsDoc1.getMeaning(), jsDoc2.getMeaning()) && Objects.equals(jsDoc1.getModifies(), jsDoc2.getModifies()) && Objects.equals(jsDoc1.getOriginalCommentString(), jsDoc2.getOriginalCommentString()) && (jsDoc1.getPropertyBitField() == jsDoc2.getPropertyBitField())
&& Objects.equals(jsDoc1.getLicense(), jsDoc2.getLicense()) && Objects.equals(jsDoc1.getMeaning(), jsDoc2.getMeaning()) && Objects.equals(jsDoc1.getModifies(), jsDoc2.getModifies()) && Objects.equals(jsDoc1.getOriginalCommentString(), jsDoc2.getOriginalCommentString()) && Objects.equals(jsDoc1.getPropertyBitField(), jsDoc2.getPropertyBitField())