|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectLBJ2.util.ClassUtils
public class ClassUtils
Utility methods for retrieving various classes that are part of the LBJ class hierarchy by name.
| Constructor Summary | |
|---|---|
ClassUtils()
|
|
| Method Summary | |
|---|---|
static java.lang.Class |
getClass(java.lang.String name)
Retrieves the Class object with the given name. |
static java.lang.Class |
getClass(java.lang.String name,
boolean exit)
Retrieves the Class object with the given name. |
static Classifier |
getClassifier(java.lang.String name)
Retrieve a Classifier by name using the no-argument
constructor. |
static Classifier |
getClassifier(java.lang.String name,
boolean exit)
Retrieve a Classifier by name using the no-argument
constructor. |
static Classifier |
getClassifier(java.lang.String name,
java.lang.Class[] paramTypes,
java.lang.Object[] arguments)
Retrieve a Classifier by name using a constructor with
arguments. |
static Classifier |
getClassifier(java.lang.String name,
java.lang.Class[] paramTypes,
java.lang.Object[] arguments,
boolean exit)
Retrieve a Classifier by name using a constructor with
arguments. |
static java.lang.reflect.Constructor |
getConstructor(java.lang.String name,
java.lang.Class[] paramTypes)
Retrieve the constructor of the given class with the given parameter types. |
static java.lang.reflect.Constructor |
getConstructor(java.lang.String name,
java.lang.Class[] paramTypes,
boolean exit)
Retrieve the constructor of the given class with the given parameter types. |
static Learner |
getLearner(java.lang.String name)
Retrieve a Learner by name using the no-argument
constructor. |
static Learner |
getLearner(java.lang.String name,
boolean exit)
Retrieve a Learner by name using the no-argument
constructor. |
static Learner |
getLearner(java.lang.String name,
java.lang.Class[] paramTypes,
java.lang.Object[] arguments)
Retrieve a Learner by name using a constructor with
arguments. |
static Learner |
getLearner(java.lang.String name,
java.lang.Class[] paramTypes,
java.lang.Object[] arguments,
boolean exit)
Retrieve a Learner by name using a constructor with
arguments. |
static Parser |
getParser(java.lang.String name)
Retrieve a Parser by name using the no-argument
constructor. |
static Parser |
getParser(java.lang.String name,
boolean exit)
Retrieve a Parser by name using the no-argument
constructor. |
static Parser |
getParser(java.lang.String name,
java.lang.Class[] paramTypes,
java.lang.Object[] arguments)
Retrieve a Parser by name using a constructor with
arguments. |
static Parser |
getParser(java.lang.String name,
java.lang.Class[] paramTypes,
java.lang.Object[] arguments,
boolean exit)
Retrieve a Parser by name using a constructor with
arguments. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClassUtils()
| Method Detail |
|---|
public static java.lang.Class getClass(java.lang.String name)
Class object with the given name. If there
is any exception thrown during retrieval, the program will print an
error message to STDERR and terminate via
System.exit(1).
name - The fully qualified name of the class.
public static java.lang.Class getClass(java.lang.String name,
boolean exit)
Class object with the given name.
name - The fully qualified name of the class.exit - Whether or not to System.exit(1) on an
exception.
null if an
exception was caught.
public static java.lang.reflect.Constructor getConstructor(java.lang.String name,
java.lang.Class[] paramTypes)
STDERR and terminate via
System.exit(1).
name - The fully qualified name of the class.paramTypes - The Classes representing the types of the
constructor's parameters.
public static java.lang.reflect.Constructor getConstructor(java.lang.String name,
java.lang.Class[] paramTypes,
boolean exit)
name - The fully qualified name of the class.paramTypes - The Classes representing the types of the
constructor's parameters.exit - Whether or not to System.exit(1) on an
exception.
null if an exception
was caught.public static Classifier getClassifier(java.lang.String name)
Classifier by name using the no-argument
constructor. If there is any exception thrown during retrieval, the
program will print an error message to STDERR and terminate
via System.exit(1).
name - The fully qualified name of the class.
public static Classifier getClassifier(java.lang.String name,
boolean exit)
Classifier by name using the no-argument
constructor.
name - The fully qualified name of the class.exit - Whether or not to System.exit(1) on an
exception.
null if an
exception was caught.
public static Classifier getClassifier(java.lang.String name,
java.lang.Class[] paramTypes,
java.lang.Object[] arguments)
Classifier by name using a constructor with
arguments. If there is any exception thrown during retrieval, the
program will print an error message to STDERR and terminate
via System.exit(1).
name - The fully qualified name of the class.paramTypes - The Classes representing the types of the
constructor's parameters.arguments - The arguments to send to the constructor.
public static Classifier getClassifier(java.lang.String name,
java.lang.Class[] paramTypes,
java.lang.Object[] arguments,
boolean exit)
Classifier by name using a constructor with
arguments.
name - The fully qualified name of the class.paramTypes - The Classes representing the types of the
constructor's parameters.arguments - The arguments to send to the constructor.exit - Whether or not to System.exit(1) on an
exception.
null if an
exception was caught.public static Learner getLearner(java.lang.String name)
Learner by name using the no-argument
constructor. If there is any exception thrown during retrieval, the
program will print an error message to STDERR and terminate
via System.exit(1).
name - The fully qualified name of the class.
public static Learner getLearner(java.lang.String name,
boolean exit)
Learner by name using the no-argument
constructor.
name - The fully qualified name of the class.exit - Whether or not to System.exit(1) on an
exception.
null if an exception
was caught.
public static Learner getLearner(java.lang.String name,
java.lang.Class[] paramTypes,
java.lang.Object[] arguments)
Learner by name using a constructor with
arguments. If there is any exception thrown during retrieval, the
program will print an error message to STDERR and terminate
via System.exit(1).
name - The fully qualified name of the class.paramTypes - The Classes representing the types of the
constructor's parameters.arguments - The arguments to send to the constructor.
public static Learner getLearner(java.lang.String name,
java.lang.Class[] paramTypes,
java.lang.Object[] arguments,
boolean exit)
Learner by name using a constructor with
arguments.
name - The fully qualified name of the class.paramTypes - The Classes representing the types of the
constructor's parameters.arguments - The arguments to send to the constructor.exit - Whether or not to System.exit(1) on an
exception.
null if an exception
was caught.public static Parser getParser(java.lang.String name)
Parser by name using the no-argument
constructor. If there is any exception thrown during retrieval, the
program will print an error message to STDERR and terminate
via System.exit(1).
name - The fully qualified name of the class.
public static Parser getParser(java.lang.String name,
boolean exit)
Parser by name using the no-argument
constructor.
name - The fully qualified name of the class.exit - Whether or not to System.exit(1) on an
exception.
null if an exception
was caught.
public static Parser getParser(java.lang.String name,
java.lang.Class[] paramTypes,
java.lang.Object[] arguments)
Parser by name using a constructor with
arguments. If there is any exception thrown during retrieval, the
program will print an error message to STDERR and terminate
via System.exit(1).
name - The fully qualified name of the class.paramTypes - The Classes representing the types of the
constructor's parameters.arguments - The arguments to send to the constructor.
public static Parser getParser(java.lang.String name,
java.lang.Class[] paramTypes,
java.lang.Object[] arguments,
boolean exit)
Parser by name using a constructor with
arguments.
name - The fully qualified name of the class.paramTypes - The Classes representing the types of the
constructor's parameters.arguments - The arguments to send to the constructor.exit - Whether or not to System.exit(1) on an
exception.
null if an exception
was caught.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||