|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jdt.internal.compiler.batch.Main
public class Main
Nested Class Summary | |
---|---|
static class |
Main.Logger
|
static class |
Main.ResourceBundleFactory
Resource bundle factory to share bundles for the same locale |
Field Summary | |
---|---|
Compiler |
batchCompiler
|
ResourceBundle |
bundle
|
static String |
bundleName
|
protected FileSystem.Classpath[] |
checkedClasspaths
|
String[] |
classNames
|
Locale |
compilerLocale
|
CompilerOptions |
compilerOptions
|
CompilerStats[] |
compilerStats
|
int |
currentRepetition
|
static int |
DEFAULT_SIZE_CLASSPATH
|
String |
destinationPath
|
String[] |
destinationPaths
|
String[] |
encodings
|
int |
exportedClassFilesCounter
|
protected ArrayList |
extraProblems
|
String[] |
filenames
|
int |
globalErrorsCount
|
int |
globalProblemsCount
|
int |
globalTasksCount
|
int |
globalWarningsCount
|
long |
lineCount0
|
String |
log
|
Main.Logger |
logger
|
int |
maxProblems
|
int |
maxRepetition
|
static String |
NONE
|
Map |
options
|
protected PrintWriter |
out
|
ArrayList |
pendingErrors
|
boolean |
proceed
|
boolean |
proceedOnError
|
boolean |
produceRefInfo
|
CompilationProgress |
progress
|
boolean |
showProgress
|
long |
startTime
|
boolean |
systemExitWhenFinished
|
int |
timing
|
static int |
TIMING_DETAILED
|
static int |
TIMING_DISABLED
|
static int |
TIMING_ENABLED
|
boolean |
verbose
|
Fields inherited from interface org.eclipse.jdt.internal.compiler.problem.ProblemSeverities |
---|
Abort, AbortCompilation, AbortCompilationUnit, AbortMethod, AbortType, Error, Fatal, Ignore, Optional, SecondaryError, Warning |
Fields inherited from interface org.eclipse.jdt.internal.compiler.util.SuffixConstants |
---|
EXTENSION_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 Summary | |
---|---|
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)
|
Method Summary | |
---|---|
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 |
disableErrors()
|
protected void |
disableWarnings()
|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
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
Constructor Detail |
---|
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)
Method Detail |
---|
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 File[][] getLibrariesFiles(File[] files)
public static void main(String[] argv)
public static String[] tokenize(String commandLine)
public void addExtraProblems(CategorizedProblem problem)
protected void addNewEntry(ArrayList paths, String currentClasspathName, ArrayList currentRuleSpecs, String customEncoding, String destPath, boolean isSourceOnly, boolean rejectDestinationPathOnJars)
public String bind(String id)
public String bind(String id, String binding)
public String bind(String id, String binding1, String binding2)
public String bind(String id, String[] arguments)
public boolean compile(String[] argv)
public void configure(String[] argv)
protected void disableWarnings()
protected void disableErrors()
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 ArrayList handleClasspath(ArrayList classpaths, String customEncoding)
protected ArrayList handleEndorseddirs(ArrayList endorsedDirClasspaths)
protected ArrayList handleExtdirs(ArrayList extdirsClasspaths)
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |