|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=RUNTIME) @Target(value=PARAMETER) public @interface As
Use this tag when you want an argument to be interpreted as an instance of the given class, rather than according to its true runtime class.
You cannot use this tag with a raw
argument.
Required Element Summary | |
---|---|
java.lang.Class |
value
This class will be the one used to select the best method, rather than the real class of the argument. |
Element Detail |
---|
public abstract java.lang.Class value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |