src/share/classes/com/sun/tools/doclets/internal/toolkit/util/MethodTypes.java

changeset 2800
f6923d26b0fb
parent 1468
690c41cdab55
child 2893
ca5783d9a597
equal deleted inserted replaced
2797:ecb7e46b820f 2800:f6923d26b0fb
1 /* 1 /*
2 * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this 7 * published by the Free Software Foundation. Oracle designates this
29 * Enum representing method types. 29 * Enum representing method types.
30 * 30 *
31 * @author Bhavesh Patel 31 * @author Bhavesh Patel
32 */ 32 */
33 public enum MethodTypes { 33 public enum MethodTypes {
34 ALL(0xffff, "All Methods", "t0", true), 34 ALL(0xffff, "doclet.All_Methods", "t0", true),
35 STATIC(0x1, "Static Methods", "t1", false), 35 STATIC(0x1, "doclet.Static_Methods", "t1", false),
36 INSTANCE(0x2, "Instance Methods", "t2", false), 36 INSTANCE(0x2, "doclet.Instance_Methods", "t2", false),
37 ABSTRACT(0x4, "Abstract Methods", "t3", false), 37 ABSTRACT(0x4, "doclet.Abstract_Methods", "t3", false),
38 CONCRETE(0x8, "Concrete Methods", "t4", false), 38 CONCRETE(0x8, "doclet.Concrete_Methods", "t4", false),
39 DEFAULT(0x10, "Default Methods", "t5", false), 39 DEFAULT(0x10, "doclet.Default_Methods", "t5", false),
40 DEPRECATED(0x20, "Deprecated Methods", "t6", false); 40 DEPRECATED(0x20, "doclet.Deprecated_Methods", "t6", false);
41 41
42 private final int value; 42 private final int value;
43 private final String text; 43 private final String resourceKey;
44 private final String tabId; 44 private final String tabId;
45 private final boolean isDefaultTab; 45 private final boolean isDefaultTab;
46 46
47 MethodTypes(int v, String t, String id, boolean dt) { 47 MethodTypes(int v, String k, String id, boolean dt) {
48 this.value = v; 48 this.value = v;
49 this.text = t; 49 this.resourceKey = k;
50 this.tabId = id; 50 this.tabId = id;
51 this.isDefaultTab = dt; 51 this.isDefaultTab = dt;
52 } 52 }
53 53
54 public int value() { 54 public int value() {
55 return value; 55 return value;
56 } 56 }
57 57
58 public String text() { 58 public String resourceKey() {
59 return text; 59 return resourceKey;
60 } 60 }
61 61
62 public String tabId() { 62 public String tabId() {
63 return tabId; 63 return tabId;
64 } 64 }

mercurial