Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-03

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.


Field Summary
 
Fields inherited from interface oracle.javatools.parser.java.v2.model.SourceLexicalElement
EMPTY_ARRAY
 
Fields inherited from interface oracle.javatools.parser.java.v2.model.SourceElement
CHILDREN_ALL, CHILDREN_BLANKLINES, CHILDREN_COMMENTS, CHILDREN_default, CHILDREN_none, CHILDREN_REGULAR, PRINT_ALL, REFORMAT_ALL, REFORMAT_INDENT
 
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.SourceLexicalElement
getText, getTokenValue, setText
 
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
 

Method Detail

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.


Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-03

Copyright © 1997, 2009, Oracle. All rights reserved.