klum-dsl / klum-ast

Turn your models into super models
https://github.com/klum-dsl/klum-ast/wiki
MIT License
3 stars 0 forks source link

Handle non generic subclasses of collections / Maps #182

Open pauxus opened 5 years ago

pauxus commented 5 years ago

for example:

class TypeMap extends HashMap<String, MyType>...

@DSL
class User {
    TypeMap types // keytype String, elementTypeMyType
}

or even:

class SpecialTypeMap<T> extends HashMap<String, T>...

@DSL
class User {
   SpecialTypeMap<MyType> types // keytype String, elementTypeMyType
}

This should be implementable by improving getKeyType and getElementType methods

Might be somewhat related to #180