langtools/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/util/MethodTypes.java
author bpatel
Fri, 16 Dec 2016 09:07:57 -0800
changeset 42831 feff6f296019
parent 35426 374342e56a56
permissions -rw-r--r--
8160196: Module summary page should display information based on "api" or "detail" mode. Reviewed-by: jjg, ksrini
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
14549
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
     1
/*
30528
dadaac1f5cc2 8065077: MethodTypes are not localized
bpatel
parents: 25874
diff changeset
     2
 * Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
14549
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
     4
 *
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    10
 *
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    15
 * accompanied this code).
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    16
 *
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    20
 *
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    23
 * questions.
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    24
 */
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    25
35426
374342e56a56 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 30528
diff changeset
    26
package jdk.javadoc.internal.doclets.toolkit.util;
14549
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    27
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    28
/**
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    29
 * Enum representing method types.
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    30
 *
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    31
 * @author Bhavesh Patel
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    32
 */
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 35426
diff changeset
    33
public enum MethodTypes implements TableTabTypes {
14549
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    34
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 35426
diff changeset
    35
    ALL(TableTabs.tab(0xffff, "doclet.All_Methods", "t0", true)),
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 35426
diff changeset
    36
    STATIC(TableTabs.tab(0x1, "doclet.Static_Methods", "t1", false)),
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 35426
diff changeset
    37
    INSTANCE(TableTabs.tab(0x2, "doclet.Instance_Methods", "t2", false)),
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 35426
diff changeset
    38
    ABSTRACT(TableTabs.tab(0x4, "doclet.Abstract_Methods", "t3", false)),
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 35426
diff changeset
    39
    CONCRETE(TableTabs.tab(0x8, "doclet.Concrete_Methods", "t4", false)),
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 35426
diff changeset
    40
    DEFAULT(TableTabs.tab(0x10, "doclet.Default_Methods", "t5", false)),
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 35426
diff changeset
    41
    DEPRECATED(TableTabs.tab(0x20, "doclet.Deprecated_Methods", "t6", false));
14549
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    42
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 35426
diff changeset
    43
    private final TableTabs tabs;
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 35426
diff changeset
    44
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 35426
diff changeset
    45
    private MethodTypes(TableTabs t) {
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 35426
diff changeset
    46
        this.tabs = t;
14549
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    47
    }
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    48
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 35426
diff changeset
    49
    public TableTabs tableTabs() {
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 35426
diff changeset
    50
        return this.tabs;
14549
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    51
    }
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    52
    }