langtools/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/util/MethodTypes.java
author prr
Thu, 11 Aug 2016 10:38:13 -0700
changeset 40489 4572e3dce7ba
parent 35426 374342e56a56
child 42831 feff6f296019
permissions -rw-r--r--
Merge
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
 */
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    33
public enum MethodTypes {
30528
dadaac1f5cc2 8065077: MethodTypes are not localized
bpatel
parents: 25874
diff changeset
    34
    ALL(0xffff, "doclet.All_Methods", "t0", true),
dadaac1f5cc2 8065077: MethodTypes are not localized
bpatel
parents: 25874
diff changeset
    35
    STATIC(0x1, "doclet.Static_Methods", "t1", false),
dadaac1f5cc2 8065077: MethodTypes are not localized
bpatel
parents: 25874
diff changeset
    36
    INSTANCE(0x2, "doclet.Instance_Methods", "t2", false),
dadaac1f5cc2 8065077: MethodTypes are not localized
bpatel
parents: 25874
diff changeset
    37
    ABSTRACT(0x4, "doclet.Abstract_Methods", "t3", false),
dadaac1f5cc2 8065077: MethodTypes are not localized
bpatel
parents: 25874
diff changeset
    38
    CONCRETE(0x8, "doclet.Concrete_Methods", "t4", false),
dadaac1f5cc2 8065077: MethodTypes are not localized
bpatel
parents: 25874
diff changeset
    39
    DEFAULT(0x10, "doclet.Default_Methods", "t5", false),
dadaac1f5cc2 8065077: MethodTypes are not localized
bpatel
parents: 25874
diff changeset
    40
    DEPRECATED(0x20, "doclet.Deprecated_Methods", "t6", false);
14549
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    41
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    42
    private final int value;
30528
dadaac1f5cc2 8065077: MethodTypes are not localized
bpatel
parents: 25874
diff changeset
    43
    private final String resourceKey;
14549
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    44
    private final String tabId;
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    45
    private final boolean isDefaultTab;
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    46
30528
dadaac1f5cc2 8065077: MethodTypes are not localized
bpatel
parents: 25874
diff changeset
    47
    MethodTypes(int v, String k, String id, boolean dt) {
14549
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    48
        this.value = v;
30528
dadaac1f5cc2 8065077: MethodTypes are not localized
bpatel
parents: 25874
diff changeset
    49
        this.resourceKey = k;
14549
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    50
        this.tabId = id;
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    51
        this.isDefaultTab = dt;
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    52
    }
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    53
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    54
    public int value() {
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    55
        return value;
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    56
    }
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    57
30528
dadaac1f5cc2 8065077: MethodTypes are not localized
bpatel
parents: 25874
diff changeset
    58
    public String resourceKey() {
dadaac1f5cc2 8065077: MethodTypes are not localized
bpatel
parents: 25874
diff changeset
    59
        return resourceKey;
14549
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    60
    }
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    61
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    62
    public String tabId() {
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    63
        return tabId;
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    64
    }
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    65
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    66
    public boolean isDefaultTab() {
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    67
        return isDefaultTab;
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    68
    }
0599d73bf1da 8002304: Group methods by types in methods summary section
bpatel
parents:
diff changeset
    69
}