Class TypeVariableInfo
java.lang.Object
online.sharedtype.processor.domain.type.ReferableTypeInfo
online.sharedtype.processor.domain.type.TypeVariableInfo
- All Implemented Interfaces:
Serializable,TypeInfo
Represents a generic type variable.
A type variable refers to a generic type parameter, it has a notation like "T" or bound information like "T extends Number". A type argument is the actual type of the type variable. E.g.
A type variable refers to a generic type parameter, it has a notation like "T" or bound information like "T extends Number". A type argument is the actual type of the type variable. E.g.
"Integer" in "List<Integer>".- Author:
- Cause Chung
- See Also:
-
Field Summary
Fields inherited from interface online.sharedtype.processor.domain.type.TypeInfo
NO_TYPE_INFO -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringconcatQualifiedName(String contextTypeQualifiedName, String name) name()reify(Map<TypeVariableInfo, TypeInfo> mappings) Replace type variables with type arguments.toString()Methods inherited from class online.sharedtype.processor.domain.type.ReferableTypeInfo
addReferencingType, referencingTypes
-
Constructor Details
-
TypeVariableInfo
public TypeVariableInfo()
-
-
Method Details
-
concatQualifiedName
-
contextTypeQualifiedName
-
name
-
qualifiedName
-
reify
Description copied from interface:TypeInfoReplace type variables with type arguments.- Parameters:
mappings- key is a type variable e.g. T value is a type argument, a concrete type e.g. Integer, or a generic type with concrete type parameter, e.g.Tuple<String, String>- Returns:
- a newly created type info if updated.
-
toString
-