getTypeParameter

@Nullable
open fun getTypeParameter(recordDeclaration: RecordDeclaration, name: String): @Nullable ParameterizedType

Return

ParameterizedType if there is a parameterized type defined in the recordDeclaration with matching name, null instead

Parameters

recordDeclaration

that is instantiated by a template containing parameterizedtypes

name

of the ParameterizedType we want to get


@Nullable
open fun getTypeParameter(templateDeclaration: TemplateDeclaration, name: String): @Nullable ParameterizedType

Searches templateToTypeParameters for ParameterizedTypes that were defined in a template matching the provided name

Return

Parameters

templateDeclaration

that includes the ParameterizedType we are looking for

name

name of the ParameterizedType we are looking for