Module com.speedment.common.codegen
Class SimpleParameterizedType
- java.lang.Object
-
- com.speedment.common.codegen.constant.SimpleParameterizedType
-
- All Implemented Interfaces:
ParameterizedType,Type
public final class SimpleParameterizedType extends Object implements ParameterizedType
A very simple implementation of the javaParameterizedTypeinterface.- Since:
- 2.4.1
- Author:
- Emil Forslund
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SimpleParameterizedTypecreate(File file, ClassOrInterface<?> clazz, Type... parameters)Creates a newSimpleParameterizedTypereferencing the specified class in the specified file.static SimpleParameterizedTypecreate(Type mainType, Type... parameters)Creates a newSimpleParameterizedTypebased on the class name of the specified class and the specified parameters.static SimpleParameterizedTypecreate(String fullName, Type... parameters)Creates a newSimpleParameterizedTypewith the specified absolute class name.booleanequals(Object obj)Type[]getActualTypeArguments()TypegetOwnerType()TypegetRawType()StringgetTypeName()inthashCode()StringtoString()
-
-
-
Method Detail
-
create
public static SimpleParameterizedType create(Type mainType, Type... parameters)
Creates a newSimpleParameterizedTypebased on the class name of the specified class and the specified parameters.- Parameters:
mainType- the class to get the name fromparameters- list of generic parameters to this type- Returns:
- the created type
-
create
public static SimpleParameterizedType create(String fullName, Type... parameters)
Creates a newSimpleParameterizedTypewith the specified absolute class name.- Parameters:
fullName- the absolute type nameparameters- list of generic parameters to this type- Returns:
- the created simple type
-
create
public static SimpleParameterizedType create(File file, ClassOrInterface<?> clazz, Type... parameters)
Creates a newSimpleParameterizedTypereferencing the specified class in the specified file. These do not have to exist yet.- Parameters:
file- the file to referenceclazz- the class to referenceparameters- list of generic parameters to this type- Returns:
- the new simple type
-
getActualTypeArguments
public Type[] getActualTypeArguments()
- Specified by:
getActualTypeArgumentsin interfaceParameterizedType
-
getRawType
public Type getRawType()
- Specified by:
getRawTypein interfaceParameterizedType
-
getOwnerType
public Type getOwnerType()
- Specified by:
getOwnerTypein interfaceParameterizedType
-
getTypeName
public String getTypeName()
- Specified by:
getTypeNamein interfaceType
-
-