public static class Main.Logger
extends java.lang.Object
| Constructor and Description |
|---|
Logger(Main main,
java.io.PrintWriter out,
java.io.PrintWriter err) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
buildFileName(java.lang.String outputPath,
java.lang.String relativeFileName) |
void |
close() |
void |
compiling() |
void |
endLoggingSource() |
void |
endLoggingSources() |
void |
endLoggingTasks() |
void |
flush() |
void |
logAverage() |
void |
logClassFile(boolean generatePackagesStructure,
java.lang.String outputPath,
java.lang.String relativeFileName) |
void |
logClasspath(FileSystem.Classpath[] classpaths) |
void |
logCommandLineArguments(java.lang.String[] commandLineArguments) |
void |
logException(java.lang.Exception e) |
void |
loggingExtraProblems(Main currentMain) |
void |
logIncorrectVMVersionForAnnotationProcessing() |
void |
logNoClassFileCreated(java.lang.String outputDir,
java.lang.String relativeFileName,
java.io.IOException e) |
void |
logNumberOfClassFilesGenerated(int exportedClassFilesCounter) |
void |
logOptions(java.util.Map<java.lang.String,java.lang.String> options) |
void |
logPendingError(java.lang.String error) |
int |
logProblems(CategorizedProblem[] problems,
char[] unitSource,
Main currentMain) |
void |
logProblemsSummary(int globalProblemsCount,
int globalErrorsCount,
int globalWarningsCount,
int globalTasksCount) |
void |
logProgress() |
void |
logRepetition(int i,
int repetitions) |
void |
logTiming(CompilerStats compilerStats) |
void |
logUnavaibleAPT(java.lang.String className) |
void |
logUsage(java.lang.String usage)
Print the usage of the compiler
|
void |
logVersion(boolean printToOut)
Print the version of the compiler in the log and/or the out field
|
void |
logWarning(java.lang.String message) |
void |
logWrongJDK()
Print the usage of wrong JDK
|
void |
printNewLine() |
void |
printStats() |
void |
setEmacs() |
void |
setLog(java.lang.String logFileName) |
void |
startLoggingSource(CompilationResult compilationResult) |
void |
startLoggingSources() |
void |
startLoggingTasks(int tasks) |
public static final int EMACS
public static final int XML
public Logger(Main main, java.io.PrintWriter out, java.io.PrintWriter err)
public java.lang.String buildFileName(java.lang.String outputPath,
java.lang.String relativeFileName)
public void close()
public void compiling()
public void endLoggingSource()
public void endLoggingSources()
public void endLoggingTasks()
public void flush()
public void logAverage()
public void logClassFile(boolean generatePackagesStructure,
java.lang.String outputPath,
java.lang.String relativeFileName)
public void logClasspath(FileSystem.Classpath[] classpaths)
public void logCommandLineArguments(java.lang.String[] commandLineArguments)
public void logException(java.lang.Exception e)
e - the given exception to logpublic void loggingExtraProblems(Main currentMain)
public void logUnavaibleAPT(java.lang.String className)
public void logIncorrectVMVersionForAnnotationProcessing()
public void logNoClassFileCreated(java.lang.String outputDir,
java.lang.String relativeFileName,
java.io.IOException e)
public void logNumberOfClassFilesGenerated(int exportedClassFilesCounter)
exportedClassFilesCounter - public void logOptions(java.util.Map<java.lang.String,java.lang.String> options)
options - the given compiler optionspublic void logPendingError(java.lang.String error)
error - the given errorpublic void logWarning(java.lang.String message)
message - the given messagepublic int logProblems(CategorizedProblem[] problems, char[] unitSource, Main currentMain)
public void logProblemsSummary(int globalProblemsCount,
int globalErrorsCount,
int globalWarningsCount,
int globalTasksCount)
globalProblemsCount - globalErrorsCount - globalWarningsCount - public void logProgress()
public void logRepetition(int i,
int repetitions)
i - the current repetition numberrepetitions - the given number of repetitionspublic void logTiming(CompilerStats compilerStats)
compilerStats - public void logUsage(java.lang.String usage)
usage - public void logVersion(boolean printToOut)
public void logWrongJDK()
public void printNewLine()
public void printStats()
public void setEmacs()
public void setLog(java.lang.String logFileName)
public void startLoggingSource(CompilationResult compilationResult)
public void startLoggingSources()
public void startLoggingTasks(int tasks)