org.eclipse.jdt.internal.compiler.batch
Class Main.Logger
java.lang.Object
org.eclipse.jdt.internal.compiler.batch.Main.Logger
- Enclosing class:
- Main
public static class Main.Logger
- extends java.lang.Object
Field Summary |
static int |
EMACS
|
static int |
XML
|
Constructor Summary |
Main.Logger(Main main,
java.io.PrintWriter out,
java.io.PrintWriter err)
|
Method Summary |
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 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 |
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 |
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)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EMACS
public static final int EMACS
- See Also:
- Constant Field Values
XML
public static final int XML
- See Also:
- Constant Field Values
Main.Logger
public Main.Logger(Main main,
java.io.PrintWriter out,
java.io.PrintWriter err)
buildFileName
public java.lang.String buildFileName(java.lang.String outputPath,
java.lang.String relativeFileName)
close
public void close()
compiling
public void compiling()
endLoggingSource
public void endLoggingSource()
endLoggingSources
public void endLoggingSources()
endLoggingTasks
public void endLoggingTasks()
flush
public void flush()
logAverage
public void logAverage()
logClassFile
public void logClassFile(boolean generatePackagesStructure,
java.lang.String outputPath,
java.lang.String relativeFileName)
logClasspath
public void logClasspath(FileSystem.Classpath[] classpaths)
logCommandLineArguments
public void logCommandLineArguments(java.lang.String[] commandLineArguments)
logException
public void logException(java.lang.Exception e)
- Parameters:
e
- the given exception to log
loggingExtraProblems
public void loggingExtraProblems(Main currentMain)
logIncorrectVMVersionForAnnotationProcessing
public void logIncorrectVMVersionForAnnotationProcessing()
logNoClassFileCreated
public void logNoClassFileCreated(java.lang.String outputDir,
java.lang.String relativeFileName,
java.io.IOException e)
logNumberOfClassFilesGenerated
public void logNumberOfClassFilesGenerated(int exportedClassFilesCounter)
- Parameters:
exportedClassFilesCounter
-
logOptions
public void logOptions(java.util.Map options)
- Parameters:
options
- the given compiler options
logPendingError
public void logPendingError(java.lang.String error)
- Parameters:
error
- the given error
logProblems
public int logProblems(CategorizedProblem[] problems,
char[] unitSource,
Main currentMain)
logProblemsSummary
public void logProblemsSummary(int globalProblemsCount,
int globalErrorsCount,
int globalWarningsCount,
int globalTasksCount)
- Parameters:
globalProblemsCount
- globalErrorsCount
- globalWarningsCount
-
logProgress
public void logProgress()
logRepetition
public void logRepetition(int i,
int repetitions)
- Parameters:
i
- the current repetition numberrepetitions
- the given number of repetitions
logTiming
public void logTiming(CompilerStats compilerStats)
- Parameters:
compilerStats
-
logUsage
public void logUsage(java.lang.String usage)
- Print the usage of the compiler
- Parameters:
usage
-
logVersion
public void logVersion(boolean printToOut)
- Print the version of the compiler in the log and/or the out field
logWrongJDK
public void logWrongJDK()
- Print the usage of wrong JDK
printNewLine
public void printNewLine()
printStats
public void printStats()
setEmacs
public void setEmacs()
setLog
public void setLog(java.lang.String logFileName)
throws InvalidInputException
- Throws:
InvalidInputException
startLoggingSource
public void startLoggingSource(CompilationResult compilationResult)
startLoggingSources
public void startLoggingSources()
startLoggingTasks
public void startLoggingTasks(int tasks)