edu.bsu.cs.jive.util
Class TypeFactory
java.lang.Object
edu.bsu.cs.jive.util.TypeFactory
public final class TypeFactory
- extends Object
A factory for the Type interface.
- See Also:
Type
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TypeFactory
public TypeFactory()
instance
public static TypeFactory instance()
- Get an instance of the type factory.
- Returns:
- the type factory
getType
public Type getType(String typeName)
- Get a type object for the given text description
- Parameters:
typeName
- (e.g. int, MyClass, java.lang.Object)
- Returns:
- type object wrapper