edu.stanford.nlp.util
Class MetaClass.ClassFactory<Type>
java.lang.Object
edu.stanford.nlp.util.MetaClass.ClassFactory<Type>
- Enclosing class:
- MetaClass
public static final class MetaClass.ClassFactory<Type>
- extends Object
createInstance
public Type createInstance(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 String getName()
- Returns the full class name for the objects being produced
- Returns:
- The class name for the objects produced
toString
public String toString()
- Overrides:
toString
in class Object
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
Stanford NLP Group