Skip navigation links
oracle.javatools.parser.java.v2.model
Interface SourceLexicalComment
- All Superinterfaces:
- Element, SourceElement, SourceLexicalElement
-
public interface SourceLexicalComment
- extends SourceLexicalElement
A comment token.
Each comment has its own starts-newline flag. If true, that means that when generating source code, this comment will force a newline if one is not at its insertion point.
Method Summary |
boolean |
getStartsNewline()
Gets the value of the starts-newline flag. |
void |
setStartsNewline(boolean shouldStartNewline)
Sets the value of the starts-newline flag. |
Methods inherited from interface oracle.javatools.parser.java.v2.model.SourceElement |
addSelf, addSelf, addSelfAfter, addSelfBefore, clearBinding, cloneSelf, compile, getBinding, getChildren, getChildren, getCompiledObject, getContainedElements, getEndOffset, getOwningFile, getOwningSourceFile, getParent, getSiblingAfter, getSiblingBefore, getSiblings, getSiblings, getStartOffset, getSymbolKind, print, print, reformatSelf, removeSelf, replaceSelf, resolve, setBinding, setContext, visitSelf |
getStartsNewline
boolean getStartsNewline()
- Gets the value of the starts-newline flag. True if this comment starts on its own line (after indent).
setStartsNewline
void setStartsNewline(boolean shouldStartNewline)
- Sets the value of the starts-newline flag.
Skip navigation links
Copyright © 1997, 2015, Oracle. All rights reserved.