public class NElementCommentImpl extends Object implements NElementComment
| Constructor and Description |
|---|
NElementCommentImpl(NAffixType type,
String raw,
String content,
NElementLine... texts) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isBlank() |
List<NElementLine> |
lines() |
NNewLineMode |
newlineSuffix() |
static NElementComment |
of(NAffixType type,
String text) |
static NElementComment |
of(String text) |
static NElementCommentImpl |
ofBloc(NElementLine... lines) |
static NElementCommentImpl |
ofBloc(String text) |
static NElementCommentImpl |
ofLine(NElementLine... lines) |
static NElementCommentImpl |
ofLine(String text) |
String |
raw() |
String |
text() |
String |
toString()
this is a comment
|
NAffixType |
type() |
NElementComment |
withNewlineSuffix(NNewLineMode nNewLineMode) |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitofBlocComment, ofBlocComment, ofLineComment, ofLineCommentofAnnotation, ofAnnotation, ofNewline, ofNewline, ofSeparator, ofSeparator, ofSeparator, ofSpace, ofSpace, ofSpacefirstNonBlank, firstNonBlank, firstNonBlank, firstNonBlankLazy, firstNonBlankLazy, isBlank, isBlank, isBlank, isBlank, isBlank, isNonBlankpublic NElementCommentImpl(NAffixType type, String raw, String content, NElementLine... texts)
public static NElementComment of(String text)
of in interface NElementCommentpublic static NElementCommentImpl ofBloc(String text)
public static NElementCommentImpl ofLine(String text)
public static NElementCommentImpl ofBloc(NElementLine... lines)
public static NElementCommentImpl ofLine(NElementLine... lines)
public static NElementComment of(NAffixType type, String text)
public List<NElementLine> lines()
lines in interface NElementCommentpublic NNewLineMode newlineSuffix()
newlineSuffix in interface NElementCommentpublic String raw()
raw in interface NElementCommentpublic NElementComment withNewlineSuffix(NNewLineMode nNewLineMode)
withNewlineSuffix in interface NElementCommentpublic boolean isBlank()
isBlank in interface NBlankablepublic NAffixType type()
public String text()
text in interface NElementCommentCopyright © 2026 vpc open source initiative. All rights reserved.