-
Notifications
You must be signed in to change notification settings - Fork 51
/
ExecutableType.java
48 lines (43 loc) · 1.23 KB
/
ExecutableType.java
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package javax.validation;
/**
* Defines the types of executables targeted by an operation.
*
* @author Emmanuel Bernard <emmanuel@hibernate.org>
* @since 1.1
*/
public enum ExecutableType {
/**
* None of the executables.
* Note that this option is equivalent to an empty list of executable types
* and is present to improve readability. If {@code NONE} and other types of executables
* are present in a list, {@code NONE} is ignored.
*/
NONE,
/**
* All constructors
*/
CONSTRUCTORS,
/**
* All methods except the ones following the getter pattern. A getter according ot the
* JavaBeans specification is a method whose:
* <ul>
* <li>name starts with get, has a return type but no parameter</li>
* <li>name starts with is, has a return type and is returning {@code Boolean}.</li>
* </ul>
*/
NON_GETTER_METHODS,
/**
/**
* All methods following the getter pattern. A getter according ot the
* JavaBeans specification is a method whose:
* <ul>
* <li>name starts with get, has a return type but no parameter</li>
* <li>name starts with is, has a return type and is returning {@code Boolean}.</li>
* </ul>
*/
GETTER_METHODS,
/**
* All executables (constructors and methods).
*/
ALL
}