/** * Records that the {@link JSDocInfo} being built should be populated * with a {@code typedef}'d type. */ public boolean recordTypedef(JSTypeExpression type) { if (type != null && !hasAnyTypeRelatedTags() && currentInfo.declareTypedefType(type)) { populated = true; return true; } return false; }
/** * Records that the {@link JSDocInfo} being built should be populated * with a {@code typedef}'d type. */ public boolean recordTypedef(JSTypeExpression type) { if (type != null && !hasAnyTypeRelatedTags() && currentInfo.declareTypedefType(type)) { populated = true; return true; } return false; }
/** Records that we're lending to another name. */ public boolean recordLends(JSTypeExpression name) { if (!hasAnyTypeRelatedTags()) { currentInfo.setLendsName(name); populated = true; return true; } else { return false; } }
/** * Records a type. * * @return {@code true} if the type was recorded and {@code false} if * it is invalid or was already defined */ public boolean recordType(JSTypeExpression type) { if (type != null && !hasAnyTypeRelatedTags()) { currentInfo.setType(type); populated = true; return true; } else { return false; } }
/** * Records that we're lending to another name. */ public boolean recordLends(String name) { if (!hasAnyTypeRelatedTags()) { currentInfo.setLendsName(name); populated = true; return true; } else { return false; } }
/** * Records a parameter type to an enum. * * @return {@code true} if the enum's parameter type was recorded and * {@code false} if it was invalid or already defined */ public boolean recordEnumParameterType(JSTypeExpression type) { if (type != null && !hasAnyTypeRelatedTags()) { currentInfo.setEnumParameterType(type); populated = true; return true; } else { return false; } }
/** * Records a parameter type to an enum. * * @return {@code true} if the enum's parameter type was recorded and * {@code false} if it was invalid or already defined */ public boolean recordEnumParameterType(JSTypeExpression type) { if (type != null && !hasAnyTypeRelatedTags()) { currentInfo.setEnumParameterType(type); populated = true; return true; } else { return false; } }
/** * Records a type. * * @return {@code true} if the type was recorded and {@code false} if * it is invalid or was already defined */ public boolean recordType(JSTypeExpression type) { if (type != null && !hasAnyTypeRelatedTags()) { currentInfo.setType(type); populated = true; return true; } else { return false; } }