JType.of constructor
JType.of(
- String className
A class type by name, dotted or slashed. Nested classes keep their $.
JType.of('java.util.List'); // Ljava/util/List;
JType.of('com.example.A$Inner'); // Lcom/example/A$Inner;
Implementation
factory JType.of(String className) {
if (className.isEmpty) throw JniError('empty class name');
return JType._(JniType.objectOf(className));
}