bpatel@1417: /* bpatel@1417: * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. bpatel@1417: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. bpatel@1417: * bpatel@1417: * This code is free software; you can redistribute it and/or modify it bpatel@1417: * under the terms of the GNU General Public License version 2 only, as bpatel@1417: * published by the Free Software Foundation. Oracle designates this bpatel@1417: * particular file as subject to the "Classpath" exception as provided bpatel@1417: * by Oracle in the LICENSE file that accompanied this code. bpatel@1417: * bpatel@1417: * This code is distributed in the hope that it will be useful, but WITHOUT bpatel@1417: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or bpatel@1417: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License bpatel@1417: * version 2 for more details (a copy is included in the LICENSE file that bpatel@1417: * accompanied this code). bpatel@1417: * bpatel@1417: * You should have received a copy of the GNU General Public License version bpatel@1417: * 2 along with this work; if not, write to the Free Software Foundation, bpatel@1417: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. bpatel@1417: * bpatel@1417: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA bpatel@1417: * or visit www.oracle.com if you need additional information or have any bpatel@1417: * questions. bpatel@1417: */ bpatel@1417: bpatel@1417: package com.sun.tools.doclets.internal.toolkit.util; bpatel@1417: bpatel@1417: /** bpatel@1417: * Enum representing method types. bpatel@1417: * bpatel@1417: * @author Bhavesh Patel bpatel@1417: */ bpatel@1417: public enum MethodTypes { bpatel@1417: ALL(0xffff, "All Methods", "t0", true), bpatel@1417: STATIC(0x1, "Static Methods", "t1", false), bpatel@1417: INSTANCE(0x2, "Instance Methods", "t2", false), bpatel@1417: ABSTRACT(0x4, "Abstract Methods", "t3", false), bpatel@1417: CONCRETE(0x8, "Concrete Methods", "t4", false), bpatel@1468: DEFAULT(0x10, "Default Methods", "t5", false), bpatel@1468: DEPRECATED(0x20, "Deprecated Methods", "t6", false); bpatel@1417: bpatel@1417: private final int value; bpatel@1417: private final String text; bpatel@1417: private final String tabId; bpatel@1417: private final boolean isDefaultTab; bpatel@1417: bpatel@1417: MethodTypes(int v, String t, String id, boolean dt) { bpatel@1417: this.value = v; bpatel@1417: this.text = t; bpatel@1417: this.tabId = id; bpatel@1417: this.isDefaultTab = dt; bpatel@1417: } bpatel@1417: bpatel@1417: public int value() { bpatel@1417: return value; bpatel@1417: } bpatel@1417: bpatel@1417: public String text() { bpatel@1417: return text; bpatel@1417: } bpatel@1417: bpatel@1417: public String tabId() { bpatel@1417: return tabId; bpatel@1417: } bpatel@1417: bpatel@1417: public boolean isDefaultTab() { bpatel@1417: return isDefaultTab; bpatel@1417: } bpatel@1417: }