org.aspectj.org.eclipse.jdt.internal.compiler.batch
Class Main.Logger
java.lang.Object
org.aspectj.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(long[] times,
long lineCount)
|
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 |
logIncorrectClasspath(java.lang.String wrongClasspath)
|
void |
logIncorrectEndorsedDirsEntry(java.lang.String wrongPath)
|
void |
logIncorrectExtDirsEntry(java.lang.String wrongPath)
|
void |
logIncorrectVMVersionForAnnotationProcessing()
|
void |
logNoClassFileCreated(java.lang.String outputDir,
java.lang.String relativeFileName,
java.io.IOException e)
|
void |
logNoClasspath()
|
void |
logNumberOfClassFilesGenerated(int exportedClassFilesCounter)
|
void |
logOptions(java.util.Map options)
|
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(long time,
long lineCount)
|
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 |
clone, equals, finalize, 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(long[] times,
long lineCount)
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
logIncorrectClasspath
public void logIncorrectClasspath(java.lang.String wrongClasspath)
- Parameters:
wrongClasspath - the given wrong classpath entry
logIncorrectEndorsedDirsEntry
public void logIncorrectEndorsedDirsEntry(java.lang.String wrongPath)
- Parameters:
wrongPath - the given wrong path entry
logIncorrectExtDirsEntry
public void logIncorrectExtDirsEntry(java.lang.String wrongPath)
- Parameters:
wrongPath - the given wrong path entry
logIncorrectVMVersionForAnnotationProcessing
public void logIncorrectVMVersionForAnnotationProcessing()
logNoClassFileCreated
public void logNoClassFileCreated(java.lang.String outputDir,
java.lang.String relativeFileName,
java.io.IOException e)
logNoClasspath
public void logNoClasspath()
logNumberOfClassFilesGenerated
public void logNumberOfClassFilesGenerated(int exportedClassFilesCounter)
- Parameters:
exportedClassFilesCounter -
logOptions
public void logOptions(java.util.Map options)
- Parameters:
options - the given compiler options
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(long time,
long lineCount)
- Parameters:
time - lineCount -
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)
loggingExtraProblems
public void loggingExtraProblems(Main currentMain)