public class TypeDefinition extends Object
| Constructor and Description |
|---|
TypeDefinition(Class<?> base,
List<TypeDefinition> parameters)
Create a type of the given class and generic parameters.
|
TypeDefinition(Class<?> base,
TypeDefinition... parameters)
Create a type of the given class and generic parameters.
|
TypeDefinition(TypeDefinition containerType,
Type type)
Create from the given type which is the type of an attribute or a method, knowing its container type.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static TypeDefinition |
from(Class<?> instanceType,
TypeDefinition definition)
Create a type, with the given definition of a field or method, and knowing the instance type.
|
Class<?> |
getBase() |
List<TypeDefinition> |
getParameters()
Return the generic parameters.
|
static boolean |
getTypeParameters(Type superType,
TypeDefinition finalType,
TypeVariable[] vars,
TypeDefinition[] params)
Fill the generic parameters.
|
int |
hashCode() |
public TypeDefinition(TypeDefinition containerType, Type type)
public TypeDefinition(Class<?> base, TypeDefinition... parameters)
public TypeDefinition(Class<?> base, List<TypeDefinition> parameters)
public static TypeDefinition from(Class<?> instanceType, TypeDefinition definition)
public static boolean getTypeParameters(Type superType, TypeDefinition finalType, TypeVariable[] vars, TypeDefinition[] params)
public Class<?> getBase()
public List<TypeDefinition> getParameters()
Copyright © 2019. All rights reserved.