public class Main extends Object implements ProblemSeverities, SuffixConstants
| Modifier and Type | Class and Description |
|---|---|
static class |
Main.Logger |
static class |
Main.ResourceBundleFactory
Resource bundle factory to share bundles for the same locale
|
Abort, AbortCompilation, AbortCompilationUnit, AbortMethod, AbortType, Error, Fatal, Ignore, InternalError, Optional, SecondaryError, WarningEXTENSION_class, EXTENSION_CLASS, EXTENSION_java, EXTENSION_JAVA, SUFFIX_class, SUFFIX_CLASS, SUFFIX_java, SUFFIX_JAVA, SUFFIX_STRING_class, SUFFIX_STRING_CLASS, SUFFIX_STRING_java, SUFFIX_STRING_JAVA| Constructor and Description |
|---|
Main(PrintWriter outWriter,
PrintWriter errWriter,
boolean systemExitWhenFinished)
Deprecated.
- use
Main(PrintWriter, PrintWriter, boolean, Map, CompilationProgress) instead
e.g. Main(outWriter, errWriter, systemExitWhenFinished, null, null) |
Main(PrintWriter outWriter,
PrintWriter errWriter,
boolean systemExitWhenFinished,
Map customDefaultOptions)
Deprecated.
- use
Main(PrintWriter, PrintWriter, boolean, Map, CompilationProgress) instead
e.g. Main(outWriter, errWriter, systemExitWhenFinished, customDefaultOptions, null) |
Main(PrintWriter outWriter,
PrintWriter errWriter,
boolean systemExitWhenFinished,
Map customDefaultOptions,
CompilationProgress compilationProgress) |
| Modifier and Type | Method and Description |
|---|---|
void |
addExtraProblems(CategorizedProblem problem) |
protected void |
addNewEntry(ArrayList paths,
String currentClasspathName,
ArrayList currentRuleSpecs,
String customEncoding,
String destPath,
boolean isSourceOnly,
boolean rejectDestinationPathOnJars) |
String |
bind(String id) |
String |
bind(String id,
String binding) |
String |
bind(String id,
String[] arguments) |
String |
bind(String id,
String binding1,
String binding2) |
static boolean |
compile(String commandLine)
Deprecated.
- use
BatchCompiler.compile(String, PrintWriter, PrintWriter, CompilationProgress) instead
e.g. BatchCompiler.compile(commandLine, new PrintWriter(System.out), new PrintWriter(System.err), null); |
boolean |
compile(String[] argv) |
static boolean |
compile(String[] commandLineArguments,
PrintWriter outWriter,
PrintWriter errWriter,
CompilationProgress progress) |
static boolean |
compile(String commandLine,
PrintWriter outWriter,
PrintWriter errWriter)
Deprecated.
- use
BatchCompiler.compile(String, PrintWriter, PrintWriter, CompilationProgress) instead
e.g. BatchCompiler.compile(commandLine, outWriter, errWriter, null); |
void |
configure(String[] argv) |
protected void |
disableAll(int severity) |
protected void |
enableAll(int severity) |
String |
extractDestinationPathFromSourceFile(CompilationResult result) |
ICompilerRequestor |
getBatchRequestor() |
CompilationUnit[] |
getCompilationUnits() |
IErrorHandlingPolicy |
getHandlingPolicy() |
File |
getJavaHome() |
static File[][] |
getLibrariesFiles(File[] files) |
FileSystem |
getLibraryAccess() |
IProblemFactory |
getProblemFactory() |
protected ArrayList |
handleBootclasspath(ArrayList bootclasspaths,
String customEncoding) |
protected ArrayList |
handleClasspath(ArrayList classpaths,
String customEncoding) |
protected ArrayList |
handleEndorseddirs(ArrayList endorsedDirClasspaths) |
protected void |
handleErrorToken(String token,
boolean isEnabling) |
protected ArrayList |
handleExtdirs(ArrayList extdirsClasspaths) |
protected void |
handleWarningToken(String token,
boolean isEnabling) |
protected void |
initialize(PrintWriter outWriter,
PrintWriter errWriter,
boolean systemExit)
Deprecated.
- use
initialize(PrintWriter, PrintWriter, boolean, Map, CompilationProgress) instead
e.g. initialize(outWriter, errWriter, systemExit, null, null) |
protected void |
initialize(PrintWriter outWriter,
PrintWriter errWriter,
boolean systemExit,
Map customDefaultOptions)
Deprecated.
- use
initialize(PrintWriter, PrintWriter, boolean, Map, CompilationProgress) instead
e.g. initialize(outWriter, errWriter, systemExit, customDefaultOptions, null) |
protected void |
initialize(PrintWriter outWriter,
PrintWriter errWriter,
boolean systemExit,
Map customDefaultOptions,
CompilationProgress compilationProgress) |
protected void |
initializeAnnotationProcessorManager() |
protected void |
loggingExtraProblems() |
static void |
main(String[] argv) |
void |
outputClassFiles(CompilationResult unitResult) |
void |
performCompilation() |
void |
printUsage() |
void |
processPathEntries(int defaultSize,
ArrayList paths,
String currentPath,
String customEncoding,
boolean isSourceOnly,
boolean rejectDestinationPathOnJars) |
void |
relocalize()
Creates a NLS catalog for the given locale.
|
void |
setDestinationPath(String dest) |
void |
setLocale(Locale locale) |
protected void |
setPaths(ArrayList bootclasspaths,
String sourcepathClasspathArg,
ArrayList sourcepathClasspaths,
ArrayList classpaths,
ArrayList extdirsClasspaths,
ArrayList endorsedDirClasspaths,
String customEncoding) |
static String[] |
tokenize(String commandLine) |
protected void |
validateOptions(boolean didSpecifyCompliance) |
public Compiler batchCompiler
public ResourceBundle bundle
protected FileSystem.Classpath[] checkedClasspaths
public Locale compilerLocale
public CompilerOptions compilerOptions
public CompilationProgress progress
public String destinationPath
public String[] destinationPaths
public String[] encodings
public int exportedClassFilesCounter
public String[] filenames
public String[] classNames
public int globalErrorsCount
public int globalProblemsCount
public int globalTasksCount
public int globalWarningsCount
public long lineCount0
public String log
public Main.Logger logger
public int maxProblems
public Map options
public char[][] ignoreOptionalProblemsFromFolders
protected PrintWriter out
public boolean proceed
public boolean proceedOnError
public boolean produceRefInfo
public int currentRepetition
public int maxRepetition
public boolean showProgress
public long startTime
public ArrayList pendingErrors
public boolean systemExitWhenFinished
public static final int TIMING_DISABLED
public static final int TIMING_ENABLED
public static final int TIMING_DETAILED
public int timing
public CompilerStats[] compilerStats
public boolean verbose
protected ArrayList extraProblems
public static final String bundleName
public static final int DEFAULT_SIZE_CLASSPATH
public static final String NONE
public Main(PrintWriter outWriter, PrintWriter errWriter, boolean systemExitWhenFinished)
Main(PrintWriter, PrintWriter, boolean, Map, CompilationProgress) instead
e.g. Main(outWriter, errWriter, systemExitWhenFinished, null, null)public Main(PrintWriter outWriter, PrintWriter errWriter, boolean systemExitWhenFinished, Map customDefaultOptions)
Main(PrintWriter, PrintWriter, boolean, Map, CompilationProgress) instead
e.g. Main(outWriter, errWriter, systemExitWhenFinished, customDefaultOptions, null)public Main(PrintWriter outWriter, PrintWriter errWriter, boolean systemExitWhenFinished, Map customDefaultOptions, CompilationProgress compilationProgress)
public static boolean compile(String commandLine)
BatchCompiler.compile(String, PrintWriter, PrintWriter, CompilationProgress) instead
e.g. BatchCompiler.compile(commandLine, new PrintWriter(System.out), new PrintWriter(System.err), null);public static boolean compile(String commandLine, PrintWriter outWriter, PrintWriter errWriter)
BatchCompiler.compile(String, PrintWriter, PrintWriter, CompilationProgress) instead
e.g. BatchCompiler.compile(commandLine, outWriter, errWriter, null);public static boolean compile(String[] commandLineArguments, PrintWriter outWriter, PrintWriter errWriter, CompilationProgress progress)
public static void main(String[] argv)
public void addExtraProblems(CategorizedProblem problem)
protected void addNewEntry(ArrayList paths, String currentClasspathName, ArrayList currentRuleSpecs, String customEncoding, String destPath, boolean isSourceOnly, boolean rejectDestinationPathOnJars)
public boolean compile(String[] argv)
public void configure(String[] argv)
protected void enableAll(int severity)
protected void disableAll(int severity)
public String extractDestinationPathFromSourceFile(CompilationResult result)
public ICompilerRequestor getBatchRequestor()
public CompilationUnit[] getCompilationUnits()
public IErrorHandlingPolicy getHandlingPolicy()
public File getJavaHome()
public FileSystem getLibraryAccess()
public IProblemFactory getProblemFactory()
protected ArrayList handleBootclasspath(ArrayList bootclasspaths, String customEncoding)
protected void handleWarningToken(String token, boolean isEnabling)
protected void handleErrorToken(String token, boolean isEnabling)
protected void initialize(PrintWriter outWriter, PrintWriter errWriter, boolean systemExit)
initialize(PrintWriter, PrintWriter, boolean, Map, CompilationProgress) instead
e.g. initialize(outWriter, errWriter, systemExit, null, null)protected void initialize(PrintWriter outWriter, PrintWriter errWriter, boolean systemExit, Map customDefaultOptions)
initialize(PrintWriter, PrintWriter, boolean, Map, CompilationProgress) instead
e.g. initialize(outWriter, errWriter, systemExit, customDefaultOptions, null)protected void initialize(PrintWriter outWriter, PrintWriter errWriter, boolean systemExit, Map customDefaultOptions, CompilationProgress compilationProgress)
protected void initializeAnnotationProcessorManager()
public void outputClassFiles(CompilationResult unitResult)
public void performCompilation()
protected void loggingExtraProblems()
public void printUsage()
public void processPathEntries(int defaultSize,
ArrayList paths,
String currentPath,
String customEncoding,
boolean isSourceOnly,
boolean rejectDestinationPathOnJars)
public void relocalize()
public void setDestinationPath(String dest)
public void setLocale(Locale locale)
protected void setPaths(ArrayList bootclasspaths, String sourcepathClasspathArg, ArrayList sourcepathClasspaths, ArrayList classpaths, ArrayList extdirsClasspaths, ArrayList endorsedDirClasspaths, String customEncoding)
protected void validateOptions(boolean didSpecifyCompliance)
Copyright © 2015. All rights reserved.