com.sun.codemodel.JCommentPart Maven / Gradle / Ivy
/*
* Copyright (c) 1997, 2021 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
package com.sun.codemodel;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
/**
* A part is a part of a javadoc comment, and it is a list of values.
*
*
* A part can contain a free-form text. This text is modeled as a collection of 'values'
* in this class. A value can be a {@link JType} (which will be prinited with a @link tag),
* anything that can be turned into a {@link String} via the {@link Object#toString()} method,
* or a {@link Collection}/array of those objects.
*
*
* Values can be added through the various append methods one by one or in a bulk.
*
* @author Kohsuke Kawaguchi
*/
public class JCommentPart extends ArrayList