@Beta public final class Types extends Object
Modifier and Type | Field and Description |
---|---|
static ConcreteType |
BOOLEAN |
static ConcreteType |
BYTE_ARRAY |
static ConcreteType |
CHAR_ARRAY |
static ConcreteType |
CLASS |
static ConcreteType |
DOCUMENT |
static ConcreteType |
STRING |
static ConcreteType |
VOID |
Modifier and Type | Method and Description |
---|---|
static ParameterizedType |
augmentableTypeFor(Type valueType)
Creates instance of
ParameterizedType where raw type is
Augmentable and actual
parameter is valueType . |
static ParameterizedType |
augmentationTypeFor(Type valueType)
Creates instance of
ParameterizedType where raw type is
Augmentation and actual
parameter is valueType . |
static <T extends Number & Comparable<T>> |
getDefaultRestrictions(T min,
T max) |
static String |
getOuterClassName(Type valueType) |
static String |
getOuterClassPackageName(Type valueType) |
static ParameterizedType |
listTypeFor(Type valueType)
Returns an instance of
ParameterizedType describing the typed
List <V> with concrete type of value. |
static ParameterizedType |
mapTypeFor(Type keyType,
Type valueType)
Returns an instance of
ParameterizedType describing the typed. |
static ParameterizedType |
parameterizedTypeFor(Type type,
Type... parameters)
Creates instance of type
ParameterizedType . |
static ConcreteType |
primitiveType(String primitiveType,
Restrictions restrictions)
Creates the instance of type
ConcreteType which represents primitive JAVA type for which package
doesn't exist. |
static ParameterizedType |
setTypeFor(Type valueType)
Returns an instance of
ParameterizedType describing the typed
Set <V> with concrete type of value. |
static ConcreteType |
typeForClass(Class<?> cls)
Returns an instance of
ConcreteType describing the class. |
static ConcreteType |
typeForClass(Class<?> cls,
Restrictions restrictions) |
static ConcreteType |
typeForClass(Class<?> cls,
Restrictions restrictions,
ModuleContext moduleContext) |
static ConcreteType |
voidType()
Creates the instance of type
ConcreteType which represents JAVA void type. |
static WildcardType |
wildcardTypeFor(String packageName,
String typeName)
Creates instance of type
WildcardType . |
static WildcardType |
wildcardTypeFor(String packageName,
String typeName,
boolean isPkNameNormalized,
boolean isTypeNormalized,
ModuleContext context)
Creates instance of type
WildcardType . |
public static final ConcreteType BOOLEAN
public static final ConcreteType CLASS
public static final ConcreteType STRING
public static final ConcreteType VOID
public static final ConcreteType DOCUMENT
public static final ConcreteType BYTE_ARRAY
public static final ConcreteType CHAR_ARRAY
public static ConcreteType voidType()
ConcreteType
which represents JAVA void
type.ConcreteType
instance which represents JAVA
void
public static ConcreteType primitiveType(String primitiveType, Restrictions restrictions)
ConcreteType
which represents primitive JAVA type for which package
doesn't exist.primitiveType
- string containing programmatic construction based on
primitive type (e.g byte[])ConcreteType
instance which represents programmatic
construction with primitive JAVA typepublic static ConcreteType typeForClass(Class<?> cls)
ConcreteType
describing the class.cls
- Class to describepublic static ConcreteType typeForClass(Class<?> cls, Restrictions restrictions)
public static ConcreteType typeForClass(Class<?> cls, Restrictions restrictions, ModuleContext moduleContext)
public static ParameterizedType mapTypeFor(Type keyType, Type valueType)
ParameterizedType
describing the typed.
Map
<K,V>keyType
- Key TypevalueType
- Value Typepublic static ParameterizedType setTypeFor(Type valueType)
ParameterizedType
describing the typed
Set
<V> with concrete type of value.valueType
- Value Typepublic static ParameterizedType listTypeFor(Type valueType)
ParameterizedType
describing the typed
List
<V> with concrete type of value.valueType
- Value Typepublic static ParameterizedType parameterizedTypeFor(Type type, Type... parameters)
ParameterizedType
.type
- JAVA Type
for raw typeparameters
- JAVA Type
s for actual parameter typesParametrizedType
reprezentation of type
and its parameters parameters
public static WildcardType wildcardTypeFor(String packageName, String typeName)
WildcardType
.packageName
- string with the package nametypeName
- string with the type nameWildcardType
representation of
packageName
and typeName
public static WildcardType wildcardTypeFor(String packageName, String typeName, boolean isPkNameNormalized, boolean isTypeNormalized, ModuleContext context)
WildcardType
.packageName
- string with the package nametypeName
- string with the type nameisPkNameNormalized
- if the package name has been normalizedisTypeNormalized
- if the type name has been normalizedWildcardType
representation of
packageName
and typeName
public static ParameterizedType augmentableTypeFor(Type valueType)
ParameterizedType
where raw type is
Augmentable
and actual
parameter is valueType
.valueType
- JAVA Type
with actual parameterParametrizedType
representation of raw type
Augmentable
with actual parameter
valueType
public static ParameterizedType augmentationTypeFor(Type valueType)
ParameterizedType
where raw type is
Augmentation
and actual
parameter is valueType
.valueType
- JAVA Type
with actual parameterParametrizedType
reprezentation of raw type
Augmentation
with actual parameter
valueType
public static <T extends Number & Comparable<T>> org.opendaylight.mdsal.binding.javav2.generator.util.Types.DefaultRestrictions<T> getDefaultRestrictions(T min, T max)
Copyright © 2019 OpenDaylight. All rights reserved.