We shall shortly sketch how XRayInterface binds the interface to the underlying object:
- Methods annotated with
@SetProperty(XXX)are bound- to a newly synthesized setter of a field with name
XXX
- to a newly synthesized setter of a field with name
- Methods annotated with
@GetProperty(XXX)are bound- to a newly synthesized getter of a field with name
XXX
- to a newly synthesized getter of a field with name
- Methods annotated with
@Constructare bound- to a constructor of same signature
- Methods annotated with
@Delegate(XXX)are bound- to a method of same signature with name
XXX
- to a method of same signature with name
- Methods of the pattern
void setXXX(Type val);are bound- to the method of same signature, if existing
- to a newly synthesized setter of a field with name
XXXof typeType
- Methods of the pattern
Type getXXX();are bound- to the method of same signature, if existing
- to a newly synthesized getter of a field with name
XXXof typeType
- Methods of the pattern
Type newType(...)are bound- to the static method with name newType of same signature, if existing
- to a constructor of
Typewith matching signature
- all other methods are bound to
- to the method of same signature, if existing