public class TsonComments extends Object implements Comparable<TsonComments>
| Modifier and Type | Field and Description |
|---|---|
static TsonComments |
BLANK |
| Constructor and Description |
|---|
TsonComments() |
TsonComments(TsonComment[] leadingComments,
TsonComment[] trailingComments) |
| Modifier and Type | Method and Description |
|---|---|
TsonComments |
addLeading(TsonComment... other) |
TsonComments |
addLeading(TsonComment other) |
TsonComments |
addTrailing(TsonComment... other) |
TsonComments |
addTrailing(TsonComment other) |
int |
compareTo(TsonComments o) |
TsonComments |
concat(TsonComments other) |
static TsonComments |
concat(TsonComments a,
TsonComments b) |
boolean |
equals(Object o) |
TsonComment[] |
getComments() |
int |
hashCode() |
boolean |
isEmpty() |
TsonComment[] |
leadingComments() |
static TsonComments |
ofMultiLine(String a) |
static TsonComments |
ofSingleLine(String a) |
TsonComment[] |
trailingComments() |
public static final TsonComments BLANK
public TsonComments()
public TsonComments(TsonComment[] leadingComments, TsonComment[] trailingComments)
public static TsonComments concat(TsonComments a, TsonComments b)
public static TsonComments ofMultiLine(String a)
public static TsonComments ofSingleLine(String a)
public TsonComments concat(TsonComments other)
public TsonComments addLeading(TsonComment... other)
public TsonComments addTrailing(TsonComment... other)
public TsonComments addLeading(TsonComment other)
public TsonComments addTrailing(TsonComment other)
public TsonComment[] getComments()
public TsonComment[] trailingComments()
public TsonComment[] leadingComments()
public boolean isEmpty()
public int compareTo(TsonComments o)
compareTo in interface Comparable<TsonComments>Copyright © 2025 vpc open source initiative. All rights reserved.