|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.objectweb.jorm.comp.cmdline.lib.CommandLineParser
The CommandLineParser object parses the command line of the compiler to build a compilation context object. This object will be used to parse xml files, to generate java source files and to compile java files into class files.
| Constructor Summary | |
CommandLineParser()
default constructor |
|
CommandLineParser(BasicClassLoader cl,
CompilerParameter cp)
Builds a new CommandLineParser object. |
|
| Method Summary | |
CompilerParameter |
getCompilerParameter()
Returns the current compilation context object. |
org.objectweb.util.monolog.api.Logger |
getLogger()
Returns a logger to an component that wants to log things. |
org.objectweb.util.monolog.api.LoggerFactory |
getLoggerFactory()
Returns a logger factory that allows the creation of new loggers. |
void |
parse(java.lang.String[] args,
java.util.Hashtable exts)
Parses all the arguments of the command line. |
static void |
printVersion()
Prints the version number of the compiler. |
void |
setLogger(org.objectweb.util.monolog.api.Logger logger)
Defines a logger object. |
void |
setLoggerFactory(org.objectweb.util.monolog.api.LoggerFactory loggerFactory)
Defines the logger factory to obtain new logger. |
static void |
usage()
Prints to the console the usage (how to use and options) of the compiler. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CommandLineParser(BasicClassLoader cl,
CompilerParameter cp)
cl - the classloader to use to load classespublic CommandLineParser()
| Method Detail |
public static void printVersion()
public static void usage()
public CompilerParameter getCompilerParameter()
public void parse(java.lang.String[] args,
java.util.Hashtable exts)
args - the arguments of the command linepublic void setLogger(org.objectweb.util.monolog.api.Logger logger)
setLogger in interface Loggablelogger - the logger objectpublic void setLoggerFactory(org.objectweb.util.monolog.api.LoggerFactory loggerFactory)
setLoggerFactory in interface LoggableloggerFactory - the LoggerFactory object to obtain a logger objectpublic org.objectweb.util.monolog.api.Logger getLogger()
LoggablegetLogger in interface Loggableorg.objectweb.jorm.util.api.Loggablelogger - the logger objectpublic org.objectweb.util.monolog.api.LoggerFactory getLoggerFactory()
LoggablegetLoggerFactory in interface Loggableorg.objectweb.jorm.util.api.Loggableloggerfactory - the LoggerFactory object to obtain new loggers
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||