public class Excerpts
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static Excerpt |
add(java.lang.String fmt,
java.lang.Object... args) |
static Excerpt |
empty() |
static java.lang.Object |
equals(java.lang.Object a,
java.lang.Object b)
Returns an excerpt equivalent to Java 7's
Object.equals(a, b). |
static Excerpt |
forEach(javax.lang.model.type.TypeMirror elementType,
java.lang.String iterable,
java.lang.String method)
Returns an excerpt calling
method with each elementType element of
iterable. |
static Excerpt |
generated(java.lang.Class<?> generator)
Returns an excerpt of the
Generated annotation, if available,
with value set to the full name of the generator class as recommended. |
static java.lang.Object |
join(java.lang.String separator,
java.lang.Iterable<?> excerpts) |
public static Excerpt add(java.lang.String fmt, java.lang.Object... args)
public static Excerpt empty()
public static Excerpt forEach(javax.lang.model.type.TypeMirror elementType, java.lang.String iterable, java.lang.String method)
method with each elementType element of
iterable.
Will be iterable.forEach(this::method); on Java 8+.
public static Excerpt generated(java.lang.Class<?> generator)
Generated annotation, if available,
with value set to the full name of the generator class as recommended.public static java.lang.Object join(java.lang.String separator,
java.lang.Iterable<?> excerpts)
public static java.lang.Object equals(java.lang.Object a,
java.lang.Object b)
Object.equals(a, b).