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