public abstract class CommonCopyright extends AbstractCopyright
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
blankLines |
protected String |
commentEnd |
protected String |
commentPrefix |
protected String |
commentStart |
protected boolean |
movePreamble |
| Constructor and Description |
|---|
CommonCopyright(Copyright c) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
commentTrailer(String line)
Return text after end of comment.
|
protected boolean |
isCommentEnd(String line)
Is this the end of a comment?
|
protected boolean |
isCommentStart(String line)
Is this the start of a comment?
|
protected boolean |
isPreamble(String line)
Should this line be allowed before the first comment line?
|
protected String |
readComment(BufferedReader r)
Read the first comment block in the file.
|
protected void |
replaceCopyright(BufferedReader in,
BufferedWriter out,
String comment,
String lastChanged)
Skip the first comment block, replacing it with the correct copyright.
|
protected String |
toComment(String comment)
Convert the comment text to the appropriate syntax.
|
protected void |
updateCopyright(BufferedReader in,
BufferedWriter out,
String lastChanged)
Update the existing copyright statement, changing the copyright
year to include lastChanged.
|
addCopyrightDate, checkCopyright, copy, err, findPrefix, fixCopyright, isModified, lastChanged, matches, matches, repair, startsWith, startsWith, strip, supports, warnCopyright, writeCopyrightprotected String commentStart
protected String commentEnd
protected String commentPrefix
protected boolean blankLines
protected boolean movePreamble
public CommonCopyright(Copyright c)
protected String readComment(BufferedReader r) throws IOException
readComment in class AbstractCopyrightIOExceptionprotected boolean isPreamble(String line)
protected boolean isCommentStart(String line)
protected boolean isCommentEnd(String line)
protected void replaceCopyright(BufferedReader in, BufferedWriter out, String comment, String lastChanged) throws IOException
replaceCopyright in class AbstractCopyrightIOExceptionprotected void updateCopyright(BufferedReader in, BufferedWriter out, String lastChanged) throws IOException
updateCopyright in class AbstractCopyrightIOExceptionprotected String toComment(String comment)
toComment in class AbstractCopyrightCopyright © 2017 GlassFish Community. All Rights Reserved.