edu.stanford.nlp.util
Class MetaClass.ClassFactory<Type>

java.lang.Object
  extended by edu.stanford.nlp.util.MetaClass.ClassFactory<Type>
Enclosing class:
MetaClass

public static final class MetaClass.ClassFactory<Type>
extends Object


Method Summary
 Type createInstance(Object... params)
          Creates an instance of the class produced in this factory
 boolean equals(Object o)
           
 String getName()
          Returns the full class name for the objects being produced
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

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