MCPcopy Index your code
hub / github.com/aws/jsii / toSingleJavaType

Method toSingleJavaType

packages/jsii-pacmak/lib/targets/java.ts:3026–3031  ·  view source on GitHub ↗

* Convert a jsii type to a single Java type, collapsing to object if necessary

(
    typeref: spec.TypeReference,
    { typeSymGen = undefined as SymGen | undefined } = {},
  )

Source from the content-addressed store, hash-verified

3024 * Convert a jsii type to a single Java type, collapsing to object if necessary
3025 */
3026 private toSingleJavaType(
3027 typeref: spec.TypeReference,
3028 { typeSymGen = undefined as SymGen | undefined } = {},
3029 ) {
3030 return forceSingleType(this.toJavaTypes(typeref, { typeSymGen }));
3031 }
3032
3033 /**
3034 * Convert a jsii type to a union of Java types

Callers 8

validateArrayMethod · 0.95
validateMapMethod · 0.95
validateTypeUnionMethod · 0.95
emitClassBuilderMethod · 0.95
toJavaCollectionMethod · 0.95
renderMethodCallMethod · 0.95
wrapCollectionMethod · 0.95

Calls 2

toJavaTypesMethod · 0.95
forceSingleTypeFunction · 0.85

Tested by

no test coverage detected