/** * Whether the {@link JSDocInfo} being built will have its * {@link JSDocInfo#isInterface()} flag set to {@code true}. */ public boolean isInterfaceRecorded() { return currentInfo.isInterface(); }
/** * Whether the {@link JSDocInfo} being built will have its * {@link JSDocInfo#isInterface()} flag set to {@code true}. */ public boolean isInterfaceRecorded() { return currentInfo.isInterface(); }
private boolean isInterface(Node classNode) { JSDocInfo classJsDocInfo = NodeUtil.getBestJSDocInfo(classNode); return classJsDocInfo != null && classJsDocInfo.isInterface(); }
public final boolean isInterface() { return getComment().isInterface(); }
public final boolean isInterface() { return getComment().isInterface(); }
public final boolean isInterface() { return getComment().isInterface(); }
public boolean isConstructorOrInterface() { return isConstructor() || isInterface(); }
public boolean isConstructorOrInterface() { return isConstructor() || isInterface(); }
/** Whether a function is an interface constructor, or a method on an interface. */ private boolean isInterface(Node n) { if (!n.isFunction()) { return false; } JSDocInfo jsDoc = NodeUtil.getBestJSDocInfo(n); return jsDoc != null && jsDoc.isInterface(); }
/** Whether a function is an interface constructor, or a method on an interface. */ private boolean isInterface(Node n) { if (!n.isFunction()) { return false; } JSDocInfo jsDoc = NodeUtil.getBestJSDocInfo(n); return jsDoc != null && jsDoc.isInterface(); }
private boolean isCheckablePrivatePropDecl(Node n) { // TODO(tbreisacher): Look for uses of the typedef/interface in type expressions; warn if there // are no uses. JSDocInfo info = NodeUtil.getBestJSDocInfo(n); return isPrivatePropDecl(n) && !info.hasTypedefType() && !info.isInterface(); }
private boolean isCheckablePrivatePropDecl(Node n) { // TODO(tbreisacher): Look for uses of the typedef/interface in type expressions; warn if there // are no uses. JSDocInfo info = NodeUtil.getBestJSDocInfo(n); return isPrivatePropDecl(n) && !info.hasTypedefType() && !info.isInterface(); }
public boolean containsTypeDefinition() { return isConstructor() || isInterface() || hasEnumParameterType() || hasTypedefType(); }
public boolean containsTypeDefinition() { return isConstructor() || isInterface() || hasEnumParameterType() || hasTypedefType(); }
/** * Determines whether the given JsDoc info declares a function type. */ static boolean isFunctionTypeDeclaration(JSDocInfo info) { return info.getParameterCount() > 0 || info.hasReturnType() || info.hasThisType() || info.isConstructor() || info.isInterface(); }
/** * Determines whether the given JsDoc info declares a function type. */ static boolean isFunctionTypeDeclaration(JSDocInfo info) { return info.getParameterCount() > 0 || info.hasReturnType() || info.hasThisType() || info.isConstructor() || info.isInterface() || info.isAbstract(); }
/** * Whether the current doc info has other type tags, like * {@code @param} or {@code @return} or {@code @type} or etc. */ private boolean hasAnyTypeRelatedTags() { return currentInfo.isConstructor() || currentInfo.isInterface() || currentInfo.getParameterCount() > 0 || currentInfo.hasReturnType() || currentInfo.hasBaseType() || currentInfo.getExtendedInterfacesCount() > 0 || currentInfo.getLendsName() != null || currentInfo.hasThisType() || hasAnySingletonTypeTags(); }
private void visitFunction(Node child) { JSDocInfo comment = child.getJSDocInfo(); boolean isConstructor = comment != null && (comment.isConstructor() || comment.isInterface()); if (isConstructor) { // function Goo () {}; model.addClass(child, child.getFirstChild().getString()); } else { model.addFunction(child, child.getFirstChild().getString()); } }
private void visitFunction(Node child) { JSDocInfo comment = child.getJSDocInfo(); boolean isConstructor = comment != null && (comment.isConstructor() || comment.isInterface()); if (isConstructor) { // function Goo () {}; model.addClass(child, child.getFirstChild().getString()); } else { model.addFunction(child, child.getFirstChild().getString()); } }
private void visitFunction(Node child) { JSDocInfo comment = child.getJSDocInfo(); boolean isConstructor = comment != null && (comment.isConstructor() || comment.isInterface()); if (isConstructor) { // function Goo () {}; model.addClass(child, child.getFirstChild().getString()); } else { model.addFunction(child, child.getFirstChild().getString()); } }