亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? methoddefinition.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 java.util.HashSet;
import java.util.Iterator;
import java.util.Set;

import org.apache.bcel.Repository;
import org.apache.bcel.classfile.JavaClass;
import org.apache.bcel.classfile.Method;
import org.apache.bcel.generic.Type;

import com.puppycrawl.tools.checkstyle.bcel.generic.InvokeReference;
import com.puppycrawl.tools.checkstyle.bcel.generic.Utils;

/**
 * Contains the definition of a Method and its references.
 * @author Rick Giles
 */
public class MethodDefinition
    extends FieldOrMethodDefinition
{
    /** the references to the Method */
    private Set mReferences = new HashSet();

    /**
     * Creates a <code>MethodDefinition</code> for a Method.
     * @param aMethod the Method.
     */
    public MethodDefinition(Method aMethod)
    {
        super(aMethod);
    }

    /**
     * Gets the references to the Method.
     * @return the references to the Method.
     */
    public Set getReferences()
    {
        return mReferences;
    }

    /**
     * Determines the number of references to the Method.
     * @return the number of references to the Method.
     */
    public int getReferenceCount()
    {
        return mReferences.size();
    }

    /**
     * Returns the Method for this definition.
     * @return the Method for this definition.
     */
    public Method getMethod()
    {
        return (Method) getFieldOrMethod();
    }

    /**
     * Adds a reference to the Method.
     * @param aRef the reference.
     */

    public void addReference(InvokeReference aRef)
    {
        mReferences.add(aRef);
    }

    /**
     * Gets the Types of the Method's arguments.
     * @return the argument Types.
     */
    public Type[] getArgumentTypes()
    {
        return getMethod().getArgumentTypes();
    }

    /**
     * Determines whether a Method is compatible with the
     * Method of this definition.
     * @param aMethod the Method to check.
     * @return true if aMethod is compatible with the Method
     * of this definition.
     */
    public boolean isCompatible(Method aMethod)
    {
        return isCompatible(aMethod.getName(), aMethod.getArgumentTypes());
    }

    /**
     * Determines whether a MethodDefinition is compatible with the
     * Method of this definition.
     * @param aMethodDef the Method definition to check.
     * @return true if aMethod is compatible with the Method
     * of this definition.
     */
    public boolean isCompatible(MethodDefinition aMethodDef)
    {
        return isCompatible(aMethodDef.getMethod());
    }

    /**
     * Determines whether the Method of a MethodDefinition is as narrow
     * as the method for this definition.
     * Precondition: the method for this has the same name and the same
     * number of arguments as the Method for the given MethodDefinition.
     * @param aMethodDef the MethodDefinition to check.
     * @return true if the Method of aMethodDef is as narrow
     * as the method for this definition.
     */
    public boolean isAsNarrow(MethodDefinition aMethodDef)
    {
        return aMethodDef.isCompatible(this);
//        final Type[] types1 = getArgumentTypes();
//        final Type[] types2 = aMethodDef.getArgumentTypes();
//        for (int i = 0; i < types2.length; i++) {
//            if (!Utils.isCompatible(types1[i], types2[i])) {
//                return false;
//            }
//        }
//        return true;
    }

    /**
     * Determines whether a method is compatible with the Method of
     * this definition.
     * @param aMethodName the name of the method to check.
     * @param aArgTypes the method argument types.
     * @return true if the method is compatible with the Method of
     * this definition.
     */
    public boolean isCompatible(String aMethodName, Type[] aArgTypes)
    {
        // same name?
        if (!getName().equals(aMethodName)) {
            return false;
        }
        // compatible argument types?
        final Type[] methodTypes = getArgumentTypes();
        if (methodTypes.length != aArgTypes.length) {
            return false;
        }
        for (int i = 0; i < aArgTypes.length; i++) {
            if (!Utils.isCompatible(aArgTypes[i], methodTypes[i])) {
                return false;
            }
        }
        return true;
    }

    /**
     * Determine whether this method definition has a reference from a class or
     * a superclass.
     * @param aJavaClass the JavaClass to check against.
     * @return true if there is a reference to this method definition from a
     * aJavaClass or a superclass of aJavaClass.
     */
    public boolean hasReference(JavaClass aJavaClass)
    {
        final Iterator it = getReferences().iterator();
        while (it.hasNext()) {
            final InvokeReference invokeRef = (InvokeReference) it.next();
            final String invokeClassName = invokeRef.getClassName();
            if (Repository.instanceOf(aJavaClass, invokeClassName)) {
                return true;
            }
        }
        return false;
    }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美va日韩va| 成人免费在线观看入口| 国产亚洲婷婷免费| 亚洲精品免费在线观看| 经典三级在线一区| 在线日韩av片| 欧美韩日一区二区三区| 日本在线播放一区二区三区| 成人爱爱电影网址| 26uuu亚洲| 天天综合日日夜夜精品| 91美女片黄在线观看| 久久久欧美精品sm网站| 日韩中文字幕亚洲一区二区va在线 | 国产三区在线成人av| 午夜精品一区二区三区电影天堂| 不卡一区在线观看| 久久亚洲综合av| 日本大胆欧美人术艺术动态| 国产欧美日韩另类视频免费观看| 午夜精品久久久久久不卡8050| 99精品国产热久久91蜜凸| 日本一区二区成人| 国产精品1区2区| 国产亚洲人成网站| 国产一区视频导航| www国产精品av| 国产一区二区导航在线播放| 日韩欧美国产1| 久久99最新地址| 精品国产乱子伦一区| 美女一区二区视频| 欧美成人官网二区| 国产一区二区三区四区五区入口| 91精品国产色综合久久| 午夜精品一区二区三区免费视频| 欧美性猛交xxxx乱大交退制版| 一区二区久久久久久| 日本精品视频一区二区| 一区二区不卡在线播放| 日本韩国精品一区二区在线观看| 亚洲精品日韩一| 欧美日韩免费电影| 另类欧美日韩国产在线| 久久久蜜桃精品| 91一区二区在线观看| 亚洲精品水蜜桃| 欧美日韩精品系列| 精品一区二区在线免费观看| 久久久久国产精品厨房| 不卡电影一区二区三区| 一区二区三区在线看| 欧美日韩国产精品成人| 韩国精品久久久| 中文字幕国产一区二区| 色综合久久综合网欧美综合网 | 亚洲成人动漫av| 日韩三级免费观看| 国产成人在线电影| 亚洲另类春色国产| 欧美一区二区三区精品| 国产精品99久久久久久似苏梦涵 | 制服丝袜亚洲播放| 极品少妇一区二区三区精品视频| 欧美国产精品专区| 欧美视频完全免费看| 国产一二精品视频| 亚洲国产精品一区二区久久恐怖片 | 欧美在线999| 五月综合激情网| 亚洲精品在线网站| 91豆麻精品91久久久久久| 亚洲精品午夜久久久| 日韩欧美亚洲一区二区| 成人ar影院免费观看视频| 午夜电影网一区| 国产精品久久久久久亚洲伦| 欧美日韩成人综合| 成人av在线资源网| 乱中年女人伦av一区二区| 亚洲天堂免费看| 亚洲精品一线二线三线| 欧美在线制服丝袜| 国产乱一区二区| 日本91福利区| 一区二区三区在线免费| 国产欧美视频一区二区三区| 欧美日韩夫妻久久| 91精品办公室少妇高潮对白| 国产成人福利片| 激情欧美一区二区| 欧美a级一区二区| 亚洲综合在线视频| 国产日产欧美精品一区二区三区| 欧美精品自拍偷拍动漫精品| 色播五月激情综合网| 高清在线不卡av| 国产精品综合在线视频| 免费在线观看视频一区| 午夜天堂影视香蕉久久| 亚洲影视在线播放| 亚洲精品菠萝久久久久久久| 国产精品丝袜久久久久久app| 精品免费一区二区三区| 欧美一区二区播放| 欧美另类videos死尸| 欧美在线短视频| 色呦呦网站一区| 不卡电影免费在线播放一区| 国产黄人亚洲片| 国产成人av一区| 国产91丝袜在线18| 成人丝袜视频网| 成人午夜av在线| 97久久精品人人做人人爽| www.欧美日韩| 色婷婷久久综合| 欧美性色综合网| 欧美巨大另类极品videosbest | 国产在线播放一区三区四| 久久99久久99| 国产真实乱偷精品视频免| 黄页视频在线91| 国产精品一二二区| 成人av免费观看| 91原创在线视频| 欧美亚洲免费在线一区| 欧美美女黄视频| 精品av久久707| 国产精品网站在线| 亚洲婷婷在线视频| 99re视频精品| 在线观看91视频| 欧美福利电影网| 久久综合狠狠综合久久综合88| 国产日韩精品久久久| 亚洲精品国久久99热| 亚洲h在线观看| 欧美日韩国产美| 国产乱子轮精品视频| 国产在线精品一区二区夜色 | 国产精品电影一区二区三区| 中文字幕日韩一区| 亚洲国产精品久久人人爱蜜臀 | 欧美综合天天夜夜久久| 欧美日韩黄色影视| 精品捆绑美女sm三区| 一区精品在线播放| 日本中文一区二区三区| 国产精品夜夜嗨| 欧洲精品中文字幕| 久久一留热品黄| 亚洲制服欧美中文字幕中文字幕| 免费成人在线网站| 99re在线精品| 日韩免费视频一区| 亚洲欧美激情在线| 久久综合综合久久综合| 91碰在线视频| 久久综合久久鬼色| 琪琪一区二区三区| 天堂一区二区在线免费观看| 国产一区二区三区在线观看精品| 91免费视频网| 亚洲第一狼人社区| 国产精品中文字幕一区二区三区| 色狠狠一区二区| 国产日产精品1区| 热久久免费视频| 一本到高清视频免费精品| 亚洲精品一区二区三区蜜桃下载| 悠悠色在线精品| 成人aa视频在线观看| 日韩一区二区在线播放| 亚洲一区二区在线免费看| 高清不卡在线观看| 精品国产乱码久久久久久久久| 亚洲综合网站在线观看| 成人福利视频网站| 久久综合久色欧美综合狠狠| 日本不卡在线视频| 欧美猛男超大videosgay| 亚洲精品ww久久久久久p站| 成人午夜大片免费观看| 久久久99久久精品欧美| 麻豆精品一区二区三区| 欧美欧美欧美欧美首页| 亚洲午夜在线视频| 91美女在线观看| 亚洲日本va午夜在线影院| 成人精品免费看| 国产精品久久夜| 不卡一区二区三区四区| 国产精品区一区二区三| 国产风韵犹存在线视精品| 国产亚洲精品中文字幕| 国产裸体歌舞团一区二区| 久久久蜜桃精品| 丁香五精品蜜臀久久久久99网站| 久久精品亚洲国产奇米99|