diff options
Diffstat (limited to 'tests/org.eclipse.wst.jsdt.core.tests.model/workspace/JavaSearch15/src/e1/Team.js')
-rw-r--r-- | tests/org.eclipse.wst.jsdt.core.tests.model/workspace/JavaSearch15/src/e1/Team.js | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/org.eclipse.wst.jsdt.core.tests.model/workspace/JavaSearch15/src/e1/Team.js b/tests/org.eclipse.wst.jsdt.core.tests.model/workspace/JavaSearch15/src/e1/Team.js new file mode 100644 index 0000000..984c55f --- /dev/null +++ b/tests/org.eclipse.wst.jsdt.core.tests.model/workspace/JavaSearch15/src/e1/Team.js @@ -0,0 +1,29 @@ +// packages e? stand for search enumeration tests
+package e1;
+public enum Team {
+ PHILIPPE(37) {
+ public boolean isManager() {
+ return true;
+ }
+ },
+ DAVID(27),
+ JEROME(33),
+ OLIVIER(35),
+ KENT(40),
+ FREDERIC;
+
+ public enum Role { MANAGER, DEVELOPPER }
+
+ int age;
+ Role role;
+
+ Team() {}
+ Team(int age) {
+ this.age = age;
+ }
+ public int age() { return this.age; }
+ public boolean isManager() { return false; }
+ void setRole(boolean mgr) {
+ this.role = mgr ? Role.MANAGER : Role.DEVELOPPER;
+ }
+}
|