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

Method toJavaTypeNoGenerics

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

* Renders a type without generic arguments * * Necessary because of type erasure; the compiler * will not let you check `foo instanceof Map `, * and you must instead check `foo instanceof Map`.

(type: spec.TypeReference)

Source from the content-addressed store, hash-verified

3001 * and you must instead check `foo instanceof Map`.
3002 */
3003 private toJavaTypeNoGenerics(type: spec.TypeReference): string {
3004 return forceSingleType(this.toJavaTypes(type)).typeSymbol;
3005 }
3006
3007 /**
3008 * Return the jsii object that represents this native type

Callers 1

validateTypeUnionMethod · 0.95

Calls 2

toJavaTypesMethod · 0.95
forceSingleTypeFunction · 0.85

Tested by

no test coverage detected