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

Tue, 14 May 2013 10:14:55 -0700

author
jjg
date
Tue, 14 May 2013 10:14:55 -0700
changeset 1746
bd51ca92c013
parent 1468
690c41cdab55
child 2525
2eb010b6cb22
child 2800
f6923d26b0fb
permissions
-rw-r--r--

8012178: Cleanup use of Util.escapeHtmlChars
Reviewed-by: darcy

bpatel@1417 1 /*
bpatel@1417 2 * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
bpatel@1417 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
bpatel@1417 4 *
bpatel@1417 5 * This code is free software; you can redistribute it and/or modify it
bpatel@1417 6 * under the terms of the GNU General Public License version 2 only, as
bpatel@1417 7 * published by the Free Software Foundation. Oracle designates this
bpatel@1417 8 * particular file as subject to the "Classpath" exception as provided
bpatel@1417 9 * by Oracle in the LICENSE file that accompanied this code.
bpatel@1417 10 *
bpatel@1417 11 * This code is distributed in the hope that it will be useful, but WITHOUT
bpatel@1417 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
bpatel@1417 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
bpatel@1417 14 * version 2 for more details (a copy is included in the LICENSE file that
bpatel@1417 15 * accompanied this code).
bpatel@1417 16 *
bpatel@1417 17 * You should have received a copy of the GNU General Public License version
bpatel@1417 18 * 2 along with this work; if not, write to the Free Software Foundation,
bpatel@1417 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
bpatel@1417 20 *
bpatel@1417 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
bpatel@1417 22 * or visit www.oracle.com if you need additional information or have any
bpatel@1417 23 * questions.
bpatel@1417 24 */
bpatel@1417 25
bpatel@1417 26 package com.sun.tools.doclets.internal.toolkit.util;
bpatel@1417 27
bpatel@1417 28 /**
bpatel@1417 29 * Enum representing method types.
bpatel@1417 30 *
bpatel@1417 31 * @author Bhavesh Patel
bpatel@1417 32 */
bpatel@1417 33 public enum MethodTypes {
bpatel@1417 34 ALL(0xffff, "All Methods", "t0", true),
bpatel@1417 35 STATIC(0x1, "Static Methods", "t1", false),
bpatel@1417 36 INSTANCE(0x2, "Instance Methods", "t2", false),
bpatel@1417 37 ABSTRACT(0x4, "Abstract Methods", "t3", false),
bpatel@1417 38 CONCRETE(0x8, "Concrete Methods", "t4", false),
bpatel@1468 39 DEFAULT(0x10, "Default Methods", "t5", false),
bpatel@1468 40 DEPRECATED(0x20, "Deprecated Methods", "t6", false);
bpatel@1417 41
bpatel@1417 42 private final int value;
bpatel@1417 43 private final String text;
bpatel@1417 44 private final String tabId;
bpatel@1417 45 private final boolean isDefaultTab;
bpatel@1417 46
bpatel@1417 47 MethodTypes(int v, String t, String id, boolean dt) {
bpatel@1417 48 this.value = v;
bpatel@1417 49 this.text = t;
bpatel@1417 50 this.tabId = id;
bpatel@1417 51 this.isDefaultTab = dt;
bpatel@1417 52 }
bpatel@1417 53
bpatel@1417 54 public int value() {
bpatel@1417 55 return value;
bpatel@1417 56 }
bpatel@1417 57
bpatel@1417 58 public String text() {
bpatel@1417 59 return text;
bpatel@1417 60 }
bpatel@1417 61
bpatel@1417 62 public String tabId() {
bpatel@1417 63 return tabId;
bpatel@1417 64 }
bpatel@1417 65
bpatel@1417 66 public boolean isDefaultTab() {
bpatel@1417 67 return isDefaultTab;
bpatel@1417 68 }
bpatel@1417 69 }

mercurial