|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exolab.javasource.LineFormatter
Formats a given String for use within a Java comment
| Field Summary | |
|---|---|
(package private) java.lang.String |
comment
|
(package private) int |
length
|
(package private) int |
maxLength
|
(package private) int |
offset
|
(package private) java.lang.String |
prefix
|
| Constructor Summary | |
|---|---|
(package private) |
LineFormatter(java.lang.String comment)
Creates a LineFormatter for the given comment |
(package private) |
LineFormatter(java.lang.String comment,
int maxLength)
Creates a new LineFormatter for the given comment |
(package private) |
LineFormatter(java.lang.String comment,
int maxLength,
java.lang.String prefix)
Creates a new LineFormatter for the given comment |
| Method Summary | |
|---|---|
(package private) boolean |
hasMoreLines()
|
(package private) java.lang.String |
nextLine()
|
(package private) void |
setPrefix(java.lang.String prefix)
Sets the prefix that should be appended to the beginning of each line |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
java.lang.String comment
int maxLength
int offset
int length
java.lang.String prefix
| Constructor Detail |
LineFormatter(java.lang.String comment)
comment - the String to format
LineFormatter(java.lang.String comment,
int maxLength)
comment - the String to formatmaxLength - the maximum number of characters per line
LineFormatter(java.lang.String comment,
int maxLength,
java.lang.String prefix)
comment - the String to formatmaxLength - the maximum number of characters per lineprefix - a prefix to append to the beginning of each line| Method Detail |
boolean hasMoreLines()
java.lang.String nextLine()
void setPrefix(java.lang.String prefix)
prefix - the prefix for this LineFormatter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||