Package org.eclipse.m2m.atl.emftvm.util
Class NativeTypes
java.lang.Object
org.eclipse.m2m.atl.emftvm.util.NativeTypes
Contains a registry of native type names and their Java class implementations,
and provides methods to instantiate native types.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Enumeration of registered native types. -
Method Summary
-
Method Details
-
findType
Finds theClass
fortypeName
.- Parameters:
typeName
- the native type name- Returns:
- the
Class
fortypeName
- Throws:
ClassNotFoundException
- if theClass
could not be found
-
newInstance
public static Object newInstance(Class<?> type) throws InstantiationException, IllegalAccessException Creates a new instance oftype
.- Parameters:
type
- the type to instantiate- Returns:
- a new instance of
type
- Throws:
InstantiationException
- if the type cannot be instantiatedIllegalAccessException
- if the type cannot be accessed
-
typeName
Returns the name oftype
.- Parameters:
type
- the type- Returns:
- the name of
type
-
boxedType
Returns the boxed EMFTVM type for the given type.- Parameters:
type
- the Java type for which to return the boxed type- Returns:
- the boxed EMFTVM type for the given type
-