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

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

?? definition.java

?? Checkstyle 可尋找:·不能使用的或者多余的輸入 ·空格更好的地方不使用跳格符
?? JAVA
字號:

// Transmogrify License
// 
// Copyright (c) 2001, ThoughtWorks, Inc.
// All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// - Redistributions of source code must retain the above copyright notice,
//   this list of conditions and the following disclaimer.
// - Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// Neither the name of the ThoughtWorks, Inc. nor the names of its
// contributors may be used to endorse or promote products derived from this
// software without specific prior written permission.
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
// TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
// OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

package com.puppycrawl.tools.checkstyle.checks.usage.transmogrify;

import java.util.Iterator;
import java.util.SortedSet;
import java.util.TreeSet;




/**
 * <code>Definition</code> contains basic information for everything
 * that is defined in a java source file.  A definition has a list
 * of <code>Reference</code>s, an <code>Occurrence</code>, a name, and
 * a parent <code>Scope</code>.
 *
 * @see Occurrence
 * @see Scope
 * @see Reference
 */

public abstract class Definition implements IDefinition, Comparable {
  private String _name = null;
  private Scope _parentScope = null;
  private SymTabAST _node = null;
  private SortedSet _references;

  private Occurrence _occurrence = null;

  public Definition(String name, Scope parentScope, SymTabAST node) {
    _name = name;
    _parentScope = parentScope;
    _node = node;
    _references = new TreeSet();

    if ( node != null ) {
      _occurrence = new Occurrence( _node.getFile(),
                                    ASTUtil.getLine( _node ),
                                    ASTUtil.getColumn( _node ));
    }
  }

  public boolean isSourced() {
    return true;
  }

  /**
   * returns the name of the definition
   *
   * @return String
   */

  public String getName() {
    return _name;
  }

  /**
   * returns the node in the AST that represents this definition
   *
   * @return the node in the AST that represents this definition
   */
  public SymTabAST getTreeNode() {
    return _node;
  }

  /**
   * Adds a <code>Reference</code> to the collection of <code>Reference</code>s
   *
   * @param reference the <code>Reference</code> to add
   */
  public void addReference( Reference reference ) {
    _references.add( reference );
  }

  /**
   * Returns the <code>Reference</code>s to this definition
   *
   * @return the <code>Reference</code>s to this definition
   */
  public Iterator getReferences() {
    return _references.iterator();
  }

  public int getNumReferences() {
    return _references.size();
  }

  /**
   * Returns the scope in which this definition is defined
   *
   * @return the scope in which this definition is defined
   */
  public Scope getParentScope() {
    return _parentScope;
  }

  /**
   * returns the fully qualifed name of this defintion.  The name of
   * the parentScope and all of its parents are considered when constructing
   * this name.
   *
   * @return the fully qualified name of this definition
   */
  public String getQualifiedName() {
    String nameToUse = _name;
    String result;

    if (_name == null) {
      nameToUse = "~NO NAME~";
    }

    if (getParentScope() != null &&
         !(getParentScope() instanceof BaseScope)) {
      result = getParentScope().getQualifiedName() + "." + nameToUse;
    }
    else {
      result = nameToUse;
    }
    return result;
  }

  /**
   * Returns the <code>Occurrence</code> for the location of this definition
   *
   * @return the <code>Occurrence</code> for the location of this definition
   */
  public Occurrence getOccurrence() {
    return _occurrence;
  }

  /**
   * Returns the <code>ClassDef</code> that this scope is contained in.
   *
   * @return the <code>ClassDef</code> this definition is contained in
   */
  public ClassDef getEnclosingClass() {
    ClassDef result = null;

    if ( getParentScope() != null ) {
      result = getParentScope().getEnclosingClass();
    }

    return result;
  }

  public IPackage getEnclosingPackage() {
    IPackage result = null;
    if (getParentScope() != null) {
      result = getParentScope().getEnclosingPackage();
    }

    return result;
  }

  /**
   * returns a String representation of the definition. This string includes
   * the class of the defintion and its qualified name
   *
   * @return String
   */
  public String toString() {
    return getClass().getName() + "[" + getQualifiedName() + "]";
  }

  public int compareTo(Object o) {
    int result = 0;

    if (!(o instanceof Definition)) {
      throw new ClassCastException(o.getClass().getName());
    }
	result = getQualifiedName().compareTo(((Definition)o).getQualifiedName());

    return result;
  }

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美裸体bbwbbwbbw| 久久久久久久久久看片| 欧美第一区第二区| 亚洲区小说区图片区qvod| 蜜桃视频在线观看一区二区| av一区二区久久| 欧美一二三四区在线| 亚洲色图.com| 国产成人精品亚洲777人妖| 欧美精品成人一区二区三区四区| 国产精品久久久久aaaa樱花 | 亚洲欧洲制服丝袜| 久草在线在线精品观看| 欧美午夜免费电影| 亚洲欧美成aⅴ人在线观看| 国产成人在线视频播放| 欧美成人一级视频| 日韩不卡一区二区| 欧美日韩国产不卡| 亚洲国产欧美日韩另类综合| eeuss鲁一区二区三区| wwwwww.欧美系列| 日本少妇一区二区| 6080日韩午夜伦伦午夜伦| 亚洲一二三四区| 91丝袜美腿高跟国产极品老师 | 一二三区精品视频| 99热99精品| 日韩美女视频19| av爱爱亚洲一区| 国产精品动漫网站| 99久久精品久久久久久清纯| 国产欧美日韩久久| 粉嫩欧美一区二区三区高清影视| 久久久久久久av麻豆果冻| 美日韩一区二区三区| 欧美一区二区三区电影| 日本强好片久久久久久aaa| 欧美高清视频在线高清观看mv色露露十八 | 在线精品视频免费观看| 一区二区三区小说| 欧美日韩一级视频| 日韩电影在线免费看| 欧美一级片在线| 国产在线观看一区二区| 欧美激情一区二区在线| 成人看片黄a免费看在线| 亚洲欧洲99久久| 色综合天天综合狠狠| 亚洲一区二区美女| 91精品国产综合久久香蕉麻豆 | 五月婷婷综合激情| 91精品国产一区二区| 美女视频黄 久久| 国产日韩影视精品| 91成人在线免费观看| 奇米四色…亚洲| 国产喂奶挤奶一区二区三区| 99精品一区二区三区| 亚洲午夜在线电影| 日韩精品一区国产麻豆| 成人毛片视频在线观看| 亚洲第一会所有码转帖| 精品第一国产综合精品aⅴ| 成人三级在线视频| 亚洲6080在线| 国产欧美一区二区三区沐欲| 色婷婷综合五月| 麻豆精品在线视频| 伊人一区二区三区| 欧美videossexotv100| 99re6这里只有精品视频在线观看| 亚洲午夜久久久久久久久电影网 | 精品不卡在线视频| 91成人网在线| 国产成人8x视频一区二区| 性做久久久久久免费观看| 国产欧美日本一区视频| 欧美日韩在线播放一区| 国产一区91精品张津瑜| 亚洲大片在线观看| 日本一区二区久久| 日韩欧美视频一区| 欧美午夜视频网站| 99精品1区2区| 国产美女一区二区三区| 亚洲午夜久久久| 国产精品对白交换视频 | 国产精品一区二区久久不卡 | 国产精一品亚洲二区在线视频| 亚洲激情综合网| 欧美激情在线一区二区| 精品美女一区二区| 欧美高清视频一二三区| 在线亚洲高清视频| 99久久99久久精品免费观看| 国产一区视频导航| 久久国产成人午夜av影院| 天堂蜜桃91精品| 一区二区三区不卡在线观看 | 国产亚洲欧美日韩在线一区| 777午夜精品视频在线播放| 在线观看日韩av先锋影音电影院| 国产91丝袜在线观看| 国产福利一区在线| 国产一区在线精品| 国内外成人在线| 久久99精品视频| 国内不卡的二区三区中文字幕| 日韩av一级电影| 蜜臀av在线播放一区二区三区 | 亚洲午夜电影网| 亚洲精品国产无天堂网2021| 国产精品成人免费在线| 国产精品色哟哟网站| 欧美激情一区二区三区在线| 久久先锋资源网| 久久久久久黄色| 国产精品久久久久一区| 自拍偷自拍亚洲精品播放| 1024成人网| 一区二区三区在线观看国产| 亚洲国产婷婷综合在线精品| 亚洲成av人影院在线观看网| 亚洲不卡在线观看| 午夜a成v人精品| 久久国产精品99精品国产| 国产精品一级片| a4yy欧美一区二区三区| 色88888久久久久久影院按摩| 一本到不卡免费一区二区| 欧美视频中文字幕| 91精品国产欧美一区二区18| 欧美成人在线直播| 国产日韩欧美综合一区| 国产精品进线69影院| 亚洲三级视频在线观看| 亚州成人在线电影| 国产福利一区二区三区视频 | 欧美成人乱码一区二区三区| 精品成人一区二区| 国产精品久久夜| 亚洲一卡二卡三卡四卡无卡久久| 日韩二区三区四区| 成人精品高清在线| 欧美亚洲尤物久久| www国产精品av| 亚洲精品精品亚洲| 韩国三级电影一区二区| 99国产精品久久久久| 欧美一区二区视频网站| 国产日产精品1区| 亚洲线精品一区二区三区八戒| 狠狠色丁香久久婷婷综合_中| www.欧美色图| 日韩区在线观看| 亚洲精品一二三| 国产一区二区看久久| 欧美视频在线一区二区三区| 精品国产a毛片| 亚洲一区在线观看网站| 国产 欧美在线| 91.com视频| 亚洲天堂久久久久久久| 久久精品国产网站| 在线欧美一区二区| 日本一区二区动态图| 精品系列免费在线观看| 欧美亚洲国产bt| 国产精品丝袜久久久久久app| 蜜臀久久99精品久久久久宅男| 一本久久综合亚洲鲁鲁五月天| 精品国产网站在线观看| 午夜精品福利一区二区蜜股av| av资源网一区| 久久影院午夜片一区| 热久久免费视频| 日本韩国欧美在线| 中文字幕视频一区二区三区久| 经典一区二区三区| 欧美一区二区视频在线观看 | 亚洲激情男女视频| 国产成a人亚洲精| 久久婷婷综合激情| 蜜桃传媒麻豆第一区在线观看| 欧美亚洲动漫精品| 一区二区三区在线视频观看58| 成人免费看视频| 国产欧美精品一区| 国产又黄又大久久| 精品国产一区久久| 青青国产91久久久久久| 欧美久久久久久久久久| 亚洲精品自拍动漫在线| 97久久超碰国产精品电影| 中文字幕电影一区| 国产河南妇女毛片精品久久久| 久久亚洲二区三区| 国产精品一区二区无线| 国产日韩成人精品|