Class Main
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.batch.Main
- All Implemented Interfaces:
ProblemSeverities, SuffixConstants
- Direct Known Subclasses:
BuildArgParser, EclipseCompilerImpl
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classResource bundle factory to share bundles for the same locale -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanstatic final Localestatic final Stringprotected FileSystem.Classpath[]String[]protected longintstatic final intString[]protected booleanString[]intprotected ArrayList<CategorizedProblem> booleanString[]intintintintintchar[][]longintintString[]protected IModulestatic final Stringprotected PrintWriterbooleanbooleanbooleanprotected Stringbooleanlongbooleanintstatic final intstatic final intstatic final intbooleanFields inherited from interface ProblemSeverities
Abort, AbortCompilation, AbortCompilationUnit, AbortMethod, AbortType, CoreSeverityMASK, Error, Fatal, Ignore, Info, InternalError, Optional, SecondaryError, WarningFields inherited from interface SuffixConstants
EXTENSION_aj, EXTENSION_AJ, EXTENSION_class, EXTENSION_CLASS, EXTENSION_java, EXTENSION_JAVA, EXTENSION_jmod, EXTENSION_JMOD, SUFFIX_aj, SUFFIX_AJ, SUFFIX_class, SUFFIX_CLASS, SUFFIX_java, SUFFIX_JAVA, SUFFIX_STRING_aj, SUFFIX_STRING_AJ, SUFFIX_STRING_class, SUFFIX_STRING_CLASS, SUFFIX_STRING_java, SUFFIX_STRING_JAVA -
Constructor Summary
ConstructorsConstructorDescriptionMain(PrintWriter outWriter, PrintWriter errWriter, boolean systemExitWhenFinished) Deprecated.Main(PrintWriter outWriter, PrintWriter errWriter, boolean systemExitWhenFinished, Map<String, String> customDefaultOptions) Deprecated.- useMain(PrintWriter, PrintWriter, boolean, Map, CompilationProgress)instead e.g.Main(PrintWriter outWriter, PrintWriter errWriter, boolean systemExitWhenFinished, Map<String, String> customDefaultOptions, CompilationProgress compilationProgress) -
Method Summary
Modifier and TypeMethodDescriptionstatic StringvoidaddExtraProblems(CategorizedProblem problem) protected voidaddNewEntry(ArrayList<FileSystem.Classpath> paths, String currentClasspathName, ArrayList<String> currentRuleSpecs, String customEncoding, String destPath, boolean isSourceOnly, boolean rejectDestinationPathOnJars) static booleanDeprecated.- useBatchCompiler.compile(String, PrintWriter, PrintWriter, CompilationProgress)instead e.g.booleanstatic booleancompile(String[] commandLineArguments, PrintWriter outWriter, PrintWriter errWriter, CompilationProgress progress) static booleancompile(String commandLine, PrintWriter outWriter, PrintWriter errWriter) Deprecated.- useBatchCompiler.compile(String, PrintWriter, PrintWriter, CompilationProgress)instead e.g.voidprotected CompilationUnitcreateCompilationUnit(int idx, String filename) protected voiddisableAll(int severity) protected voidenableAll(int severity) static File[][]getLibrariesFiles(File[] files) getModuleDesc(String moduleArgument, Supplier<CompilationUnit> cuSupplier) protected ArrayList<FileSystem.Classpath> handleBootclasspath(ArrayList<String> bootclasspaths, String customEncoding) protected ArrayList<FileSystem.Classpath> handleClasspath(ArrayList<String> classpaths, String customEncoding) protected ArrayList<FileSystem.Classpath> handleEndorseddirs(ArrayList<String> endorsedDirClasspaths) protected voidhandleErrorToken(String token, boolean isEnabling) protected ArrayList<FileSystem.Classpath> handleExtdirs(ArrayList<String> extdirsClasspaths) protected voidhandleInfoToken(String token, boolean isEnabling) protected ArrayList<FileSystem.Classpath> handleModulepath(String arg) protected ArrayList<FileSystem.Classpath> protected voidAssociate patching source files to their modules.protected voidhandleWarningToken(String token, boolean isEnabling) protected voidinitialize(PrintWriter outWriter, PrintWriter errWriter, boolean systemExit) Deprecated.- useinitialize(PrintWriter, PrintWriter, boolean, Map, CompilationProgress)instead e.g.protected voidinitialize(PrintWriter outWriter, PrintWriter errWriter, boolean systemExit, Map<String, String> customDefaultOptions) Deprecated.- useinitialize(PrintWriter, PrintWriter, boolean, Map, CompilationProgress)instead e.g.protected voidinitialize(PrintWriter outWriter, PrintWriter errWriter, boolean systemExit, Map<String, String> customDefaultOptions, CompilationProgress compilationProgress) protected voidprotected voidinitRootModules(LookupEnvironment environment, FileSystem fileSystem) protected booleanprotected voidstatic voidvoidoutputClassFiles(CompilationResult unitResult) voidvoidvoidvoidprocessPathEntries(int defaultSize, ArrayList<FileSystem.Classpath> paths, String currentPath, String customEncoding, boolean isSourceOnly, boolean rejectDestinationPathOnJars) voidCreates a NLS catalog for the given locale.voidsetDestinationPath(String dest) voidprotected voidsetPaths(ArrayList<String> bootclasspaths, String sourcepathClasspathArg, ArrayList<String> sourcepathClasspaths, ArrayList<String> classpaths, String modulePath, String moduleSourcepath, ArrayList<String> extdirsClasspaths, ArrayList<String> endorsedDirClasspaths, String customEncoding) protected voidsetSeverity(String compilerOptions, int severity, boolean isEnabling) static final booleanshouldIgnoreOptionalProblems(char[][] folderNames, char[] fileName) static String[]protected longvalidateClasspathOptions(ArrayList<String> bootclasspaths, ArrayList<String> endorsedDirClasspaths, ArrayList<String> extdirsClasspaths) protected voidvalidateOptions(boolean didSpecifyCompliance)
-
Field Details
-
batchCompiler
-
bundle
-
checkedClasspaths
-
module
-
annotationPaths
-
annotationsFromClasspath
protected boolean annotationsFromClasspath -
rootModules
-
limitedModules
-
compilerLocale
-
compilerOptions
-
progress
-
destinationPath
-
destinationPaths
-
enablePreview
protected boolean enablePreview -
releaseVersion
-
encodings
-
exportedClassFilesCounter
public int exportedClassFilesCounter -
filenames
-
modNames
-
classNames
-
globalErrorsCount
public int globalErrorsCount -
globalProblemsCount
public int globalProblemsCount -
globalTasksCount
public int globalTasksCount -
globalWarningsCount
public int globalWarningsCount -
globalInfoCount
public int globalInfoCount -
lineCount0
public long lineCount0 -
log
-
logger
-
maxProblems
public int maxProblems -
options
-
complianceLevel
protected long complianceLevel -
ignoreOptionalProblemsFromFolders
public char[][] ignoreOptionalProblemsFromFolders -
out
-
proceed
public boolean proceed -
proceedOnError
public boolean proceedOnError -
failOnWarning
public boolean failOnWarning -
produceRefInfo
public boolean produceRefInfo -
currentRepetition
public int currentRepetition -
maxRepetition
public int maxRepetition -
showProgress
public boolean showProgress -
startTime
public long startTime -
pendingErrors
-
systemExitWhenFinished
public boolean systemExitWhenFinished -
TIMING_DISABLED
public static final int TIMING_DISABLED- See Also:
-
TIMING_ENABLED
public static final int TIMING_ENABLED- See Also:
-
TIMING_DETAILED
public static final int TIMING_DETAILED- See Also:
-
timing
public int timing -
compilerStats
-
verbose
public boolean verbose -
extraProblems
-
bundleName
- See Also:
-
aspectjLocale
-
DEFAULT_SIZE_CLASSPATH
public static final int DEFAULT_SIZE_CLASSPATH- See Also:
-
NONE
- See Also:
-
-
Constructor Details
-
Main
Deprecated.- useMain(PrintWriter, PrintWriter, boolean, Map, CompilationProgress)instead e.g. Main(outWriter, errWriter, systemExitWhenFinished, null, null) -
Main
public Main(PrintWriter outWriter, PrintWriter errWriter, boolean systemExitWhenFinished, Map<String, String> customDefaultOptions) Deprecated.- useMain(PrintWriter, PrintWriter, boolean, Map, CompilationProgress)instead e.g. Main(outWriter, errWriter, systemExitWhenFinished, customDefaultOptions, null) -
Main
public Main(PrintWriter outWriter, PrintWriter errWriter, boolean systemExitWhenFinished, Map<String, String> customDefaultOptions, CompilationProgress compilationProgress)
-
-
Method Details
-
compile
Deprecated.- useBatchCompiler.compile(String, PrintWriter, PrintWriter, CompilationProgress)instead e.g. BatchCompiler.compile(commandLine, new PrintWriter(System.out), new PrintWriter(System.err), null); -
compile
Deprecated.- useBatchCompiler.compile(String, PrintWriter, PrintWriter, CompilationProgress)instead e.g. BatchCompiler.compile(commandLine, outWriter, errWriter, null); -
compile
public static boolean compile(String[] commandLineArguments, PrintWriter outWriter, PrintWriter errWriter, CompilationProgress progress) -
getLibrariesFiles
-
main
-
tokenize
-
printVersion
public void printVersion() -
addExtraProblems
-
addNewEntry
-
bind
-
bind
-
_bind
-
bind
-
bind
-
compile
-
configure
-
getModuleDesc
-
getNewParser
-
enableAll
protected void enableAll(int severity) -
disableAll
protected void disableAll(int severity) -
extractDestinationPathFromSourceFile
-
getBatchRequestor
-
getCompilationUnits
-
getHandlingPolicy
-
getJavaHome
-
getLibraryAccess
-
getProblemFactory
-
handleBootclasspath
protected ArrayList<FileSystem.Classpath> handleBootclasspath(ArrayList<String> bootclasspaths, String customEncoding) -
handlePatchModule
protected void handlePatchModule()Associate patching source files to their modules. -
handleModulepath
-
handleModuleSourcepath
-
createCompilationUnit
-
getDefaultEncoding
-
handleClasspath
protected ArrayList<FileSystem.Classpath> handleClasspath(ArrayList<String> classpaths, String customEncoding) -
handleEndorseddirs
protected ArrayList<FileSystem.Classpath> handleEndorseddirs(ArrayList<String> endorsedDirClasspaths) -
handleExtdirs
-
isIgnored
-
handleInfoToken
-
handleWarningToken
-
handleErrorToken
-
setSeverity
-
initialize
Deprecated.- useinitialize(PrintWriter, PrintWriter, boolean, Map, CompilationProgress)instead e.g. initialize(outWriter, errWriter, systemExit, null, null) -
initialize
protected void initialize(PrintWriter outWriter, PrintWriter errWriter, boolean systemExit, Map<String, String> customDefaultOptions) Deprecated.- useinitialize(PrintWriter, PrintWriter, boolean, Map, CompilationProgress)instead e.g. initialize(outWriter, errWriter, systemExit, customDefaultOptions, null) -
initialize
protected void initialize(PrintWriter outWriter, PrintWriter errWriter, boolean systemExit, Map<String, String> customDefaultOptions, CompilationProgress compilationProgress) -
initializeAnnotationProcessorManager
protected void initializeAnnotationProcessorManager() -
outputClassFiles
-
performCompilation
public void performCompilation() -
loggingExtraProblems
protected void loggingExtraProblems() -
printUsage
public void printUsage() -
initRootModules
-
processPathEntries
public void processPathEntries(int defaultSize, ArrayList<FileSystem.Classpath> paths, String currentPath, String customEncoding, boolean isSourceOnly, boolean rejectDestinationPathOnJars) -
relocalize
public void relocalize()Creates a NLS catalog for the given locale. -
setDestinationPath
-
setLocale
-
setPaths
protected void setPaths(ArrayList<String> bootclasspaths, String sourcepathClasspathArg, ArrayList<String> sourcepathClasspaths, ArrayList<String> classpaths, String modulePath, String moduleSourcepath, ArrayList<String> extdirsClasspaths, ArrayList<String> endorsedDirClasspaths, String customEncoding) -
shouldIgnoreOptionalProblems
public static final boolean shouldIgnoreOptionalProblems(char[][] folderNames, char[] fileName) -
validateClasspathOptions
-
validateOptions
protected void validateOptions(boolean didSpecifyCompliance)
-
Main(PrintWriter, PrintWriter, boolean, Map, CompilationProgress)instead e.g.