edu.stanford.nlp.util
Class MetaClass.ClassFactory<T>
java.lang.Object
edu.stanford.nlp.util.MetaClass.ClassFactory<T>
- Enclosing class:
- MetaClass
public static final class MetaClass.ClassFactory<T>
- extends java.lang.Object
Method Summary |
T |
createInstance(java.lang.Object... params)
Creates an instance of the class produced in this factory |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getName()
Returns the full class name for the objects being produced |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
createInstance
public T createInstance(java.lang.Object... params)
- Creates an instance of the class produced in this factory
- Parameters:
params
- The arguments to the constructor of the class NOTE: the
resulting instance will [unlike java] invoke the most
narrow constructor rather than the one which matches the
signature passed to this function
- Returns:
- An instance of the class
getName
public java.lang.String getName()
- Returns the full class name for the objects being produced
- Returns:
- The class name for the objects produced
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
Stanford NLP Group