Package adams.core.annotation
Class MixedCopyrightProcessor
- java.lang.Object
-
- javax.annotation.processing.AbstractProcessor
-
- adams.core.annotation.AbstractCopyrightProcessor<MixedCopyright>
-
- adams.core.annotation.MixedCopyrightProcessor
-
- All Implemented Interfaces:
Processor
@SupportedOptions({"module","output","printheader"}) public class MixedCopyrightProcessor extends AbstractCopyrightProcessor<MixedCopyright>
A processor that lists all classes/methods with mixed copyright.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
MixedCopyright
-
-
Field Summary
-
Fields inherited from class adams.core.annotation.AbstractCopyrightProcessor
m_IsFirst
-
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv
-
-
Constructor Summary
Constructors Constructor Description MixedCopyrightProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Class
getAnnotationClass()
Returns the annotation class to process.protected String
getDataRow(MixedCopyright copyright, String module, String cls, String method)
Returns a data row for a specific annotation.protected String
getHeaderRow()
Returns the header row for the tab-separated output file.protected String
getOutputFile(String prefix)
Returns the output file to write the information to.-
Methods inherited from class adams.core.annotation.AbstractCopyrightProcessor
getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, process
-
Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, init, isInitialized
-
-
-
-
Method Detail
-
getAnnotationClass
protected Class getAnnotationClass()
Returns the annotation class to process.- Specified by:
getAnnotationClass
in classAbstractCopyrightProcessor<MixedCopyright>
- Returns:
- the class
-
getOutputFile
protected String getOutputFile(String prefix)
Returns the output file to write the information to.- Specified by:
getOutputFile
in classAbstractCopyrightProcessor<MixedCopyright>
- Parameters:
prefix
- the path/filename prefix- Returns:
- the full path/filename
-
getHeaderRow
protected String getHeaderRow()
Returns the header row for the tab-separated output file.- Specified by:
getHeaderRow
in classAbstractCopyrightProcessor<MixedCopyright>
- Returns:
- the header row
-
getDataRow
protected String getDataRow(MixedCopyright copyright, String module, String cls, String method)
Returns a data row for a specific annotation.- Specified by:
getDataRow
in classAbstractCopyrightProcessor<MixedCopyright>
- Parameters:
copyright
- the copyright annotation to usemodule
- the module to usecls
- the class the annotation is located inmethod
- the method the annotation is located in, empty string if not applicable
-
-