-
Notifications
You must be signed in to change notification settings - Fork 60
Expand file tree
/
Copy pathSubVisible.java
More file actions
46 lines (39 loc) · 1.21 KB
/
Copy pathSubVisible.java
File metadata and controls
46 lines (39 loc) · 1.21 KB
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
package org.python.tests;
public class SubVisible extends Visible implements VisibleOverride {
public static final int sharedNameField = SUBVISIBLE_SHARED_NAME_FIELD;
/**
* Overrides {@link Visible#visibleStatic(int)}
*/
public static int visibleStatic(int input) {
return SUBCLASS_STATIC_OVERRIDE;
}
/**
* Overloads {@link Visible#visibleStatic(int, String)}
*/
public static int visibleStatic(double input, String sinput) {
return SUBCLASS_STATIC_OVERLOAD;
}
/**
* Ensure that overridden methods on subclasses are picked up properly. Overrides
* {@link Visible#visibleInstance(int)}
*/
@Override
public int visibleInstance(int input) {
return SUBCLASS_OVERRIDE;
}
/**
* Ensure that overloading {@link Visible#visibleInstance(int, String)} gets mapped correctly
*/
public int visibleInstance(double input, String sinput) {
return SUBCLASS_OVERLOAD;
}
public int getSharedNameField() {
return sharedNameField * 10;
}
/**
* Increase the visibility of {@link Invisible#packageMethod()}.
*/
public int packageMethod() {
return super.packageMethod();
}
}