Klasse CommentWrapExecutor
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.formatter.TokenTraverser
org.aspectj.org.eclipse.jdt.internal.formatter.linewrap.CommentWrapExecutor
-
Feldübersicht
Von Klasse geerbte Felder org.aspectj.org.eclipse.jdt.internal.formatter.TokenTraverser
counter, value
-
Konstruktorübersicht
KonstruktorBeschreibungCommentWrapExecutor
(TokenManager tokenManager, DefaultCodeFormatterOptions options) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungint
protected boolean
void
wrapLineComment
(Token commentToken, int startPosition) int
wrapMultiLineComment
(Token commentToken, int startPosition, boolean simulate, boolean noWrap) Von Klasse geerbte Methoden org.aspectj.org.eclipse.jdt.internal.formatter.TokenTraverser
getCurrent, getLineBreaksAfter, getLineBreaksBefore, getNext, getPrevious, isSpaceAfter, isSpaceBefore, structureChanged, traverse
-
Konstruktordetails
-
CommentWrapExecutor
-
-
Methodendetails
-
wrapMultiLineComment
public int wrapMultiLineComment(Token commentToken, int startPosition, boolean simulate, boolean noWrap) - Parameter:
commentToken
- token to wrapstartPosition
- position in line of the beginning of the commentsimulate
- iftrue
, the properties of internal tokens will not really change. This mode is useful for checking how much space the comment takes.noWrap
- iftrue
, it means that wrapping is disabled for this comment (for example because there's a NON-NLS tag after it). This method is still useful for checking comment length in that case.- Gibt zurück:
- position in line at the end of comment
-
getLinesCount
public int getLinesCount() -
token
- Angegeben von:
token
in KlasseTokenTraverser
-
wrapLineComment
-