Hi,
my situation is the following. In Xtend I have one file with:
@ParentClass
class Parent{
@Child
Child1 child1
@Child
Child2 child2
@Connection(
source = 'child1.out',
)
Object con
}
@ChildClass
class Child1{
@Out
Object out
}
@ChildClass
class Child2{
@In
Object in
}
Now in the processor of @ParentClass I try to find the fields in/out in Child1/Child2.
Therefore, on the FieldDeclaration for child1 I call:
val child1 = field.type.type as ClassDeclaration
which returns a MutableTypeDeclaration.
Now I tried to find the corresponding field through:
child1.findDeclaredField('out')
which returns null.
I checked all the 'declaredXXX' methods and all of them returned empty Lists.
Is this an intended behavior? Do I have to retrieve the ClassDeclaration on another way?
Kind regards,
Thomas