⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fieldormethoddefinition.java

📁 Checkstyle 可寻找:·不能使用的或者多余的输入 ·空格更好的地方不使用跳格符
💻 JAVA
字号:
//Tested with BCEL-5.1
//http://jakarta.apache.org/builds/jakarta-bcel/release/v5.1/

package com.puppycrawl.tools.checkstyle.bcel.classfile;

import org.apache.bcel.classfile.FieldOrMethod;

/**
 * Contains the definition of a Field or a Method.
 * @author Rick Giles
 */
public class FieldOrMethodDefinition
{
    /** the Field or Method */
    private FieldOrMethod mFieldOrMethod;

    /**
     * Constructs a <code>FieldOrMethodDefinition</code> for a Field
     * or a Method.
     * @param aFieldOrMethod the Field or Method
     */
    protected FieldOrMethodDefinition(FieldOrMethod aFieldOrMethod)
    {
        mFieldOrMethod = aFieldOrMethod;
    }

    /**
     * Returns the FieldOrMethod.
     * @return the FieldOrMethod.
     */
    protected FieldOrMethod getFieldOrMethod()
    {
        return mFieldOrMethod;
    }

    /**
     * Returns the name of the Field or Method.
     * @return the name of the Field or Method.
     */
    public String getName()
    {
        return mFieldOrMethod.getName();
    }

    /** @see java.lang.Object#toString() */
    public String toString()
    {
        return mFieldOrMethod.toString();
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -