本文整理匯總了Java中com.puppycrawl.tools.checkstyle.bcel.ReferenceVisitor類的典型用法代碼示例。如果您正苦於以下問題:Java ReferenceVisitor類的具體用法?Java ReferenceVisitor怎麽用?Java ReferenceVisitor使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
ReferenceVisitor類屬於com.puppycrawl.tools.checkstyle.bcel包,在下文中一共展示了ReferenceVisitor類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: setScope
import com.puppycrawl.tools.checkstyle.bcel.ReferenceVisitor; //導入依賴的package包/類
/** @see AbstractReferenceCheck */
public void setScope(String aFrom)
{
super.setScope(aFrom);
((ReferenceVisitor) getVisitor()).addFieldScope(
Scope.getInstance(aFrom));
}
示例2: setScope
import com.puppycrawl.tools.checkstyle.bcel.ReferenceVisitor; //導入依賴的package包/類
/** @see AbstractReferenceCheck */
public void setScope(String aScopeName)
{
super.setScope(aScopeName);
((ReferenceVisitor) getVisitor()).addMethodScope(
Scope.getInstance(aScopeName));
}
示例3: getVisitor
import com.puppycrawl.tools.checkstyle.bcel.ReferenceVisitor; //導入依賴的package包/類
/** @see com.puppycrawl.tools.checkstyle.bcel.AbstractCheckVisitor */
public IDeepVisitor getVisitor()
{
return ReferenceVisitor.getInstance();
}
示例4: getReferenceDAO
import com.puppycrawl.tools.checkstyle.bcel.ReferenceVisitor; //導入依賴的package包/類
/**
* Gets the DAO that manages references for this check.
* @return the the DAO that manages references for this check.
*/
public ReferenceDAO getReferenceDAO()
{
return ((ReferenceVisitor) getVisitor()).getReferenceDAO();
}