forked from kohsuke/com4j
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDefaultValue.java
More file actions
31 lines (29 loc) · 867 Bytes
/
Copy pathDefaultValue.java
File metadata and controls
31 lines (29 loc) · 867 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package com4j;
import java.lang.annotation.Documented;
import static java.lang.annotation.ElementType.PARAMETER;
import java.lang.annotation.Retention;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Target;
/**
* The default value of this parameter as noted in COM type library.
*
* <p>
* Java doesn't support parameter default values, so this value is strictly
* for documentation purpose, so that you as a programmer knows what value
* to pass in when you'd like to omit the parameter.
*
* <p>
* This parameter is not used by the com4j runtime.
*
* @author Kohsuke Kawaguchi
*/
@Retention(RUNTIME)
@Target(PARAMETER)
@Documented
public @interface DefaultValue {
/**
* Returns the default value of the annotated argument
* @return the default value of the annotated argument
*/
String value();
}