Resolved declared fields of a TypeReference

28 views
Skip to first unread message

Norbert Sándor

unread,
Oct 30, 2015, 6:02:21 AM10/30/15
to Xtend Programming Language
Hello,

Maybe I misunderstand the AST model but why there is no TypeReference.getDeclaredResolvedFields() method?

When a field has a generic type it would be useful to "put it into the context of a specific declaring reference".
Eg.

class SomeClass<T> {
    List<T> field;
}

class Subclass extends SomeClass<Integer> {}

When I enumerate the fields of

(Subclass.findTypeGlobally as ClassDeclaration).extendedClass

it would be very useful to query the resolved type of field, ie. List<Integer> (instead of List<T> that can be queried by ClassDeclaration.getDeclaredFields()).

Thanks.
Norbi
Reply all
Reply to author
Forward
0 new messages