![]() |
The quickest way to understand how Java code is structured |
Use the DeclaredBy tag to specify that a Java element be declared within the scope of a Java type which confirms to a given type selector.
| Attribute | Description | Required |
|---|---|---|
| typeSelector | the name of the type selector to which the declarer of this element must conform for this element to be included | Yes |
| forwardedSwitches | the comma separated names of the switches which the parent requires to be passed to the type selector | No |
| anded | give up assessing the Java element against sibling criteria if this one fails | No |
<FieldSelector name="valueField">
<DeclaredBy typeSelector="valueObjects"/>
</FieldSelector>
Declares a field selector which accepts all fields declared in a type accepted by the type selector named valueObjects.
<FieldSelector name="fieldDeclaredIn" requiredSwitches="declarerName">
<DeclaredBy typeSelector="typesNamed" forwardedSwitches="declarerName"/>
</FieldSelector>
Declares a field selector which accepts all fields declared in a type accepted by the type selector named valueObjects.