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