本文整理汇总了Java中org.apache.bcel.classfile.FieldOrMethod.getName方法的典型用法代码示例。如果您正苦于以下问题:Java FieldOrMethod.getName方法的具体用法?Java FieldOrMethod.getName怎么用?Java FieldOrMethod.getName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.bcel.classfile.FieldOrMethod
的用法示例。
在下文中一共展示了FieldOrMethod.getName方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ignore
import org.apache.bcel.classfile.FieldOrMethod; //导入方法依赖的package包/类
/**
* Determines whether a class name, and field or method should be ignored.
* @param aClassName the class name to consider.
* @param aFieldOrMethod the field or method to consider.
* @return true if aClassName, and field or method should be ignored.
*/
protected boolean ignore(String aClassName, FieldOrMethod aFieldOrMethod)
{
final String fieldOrMethodName = aFieldOrMethod.getName();
return (!equalScope(aFieldOrMethod)
|| mIgnoreClassNameRegexp.matcher(aClassName).matches()
|| mIgnoreNameRegexp.matcher(fieldOrMethodName).matches());
}
示例2: isSynthetic
import org.apache.bcel.classfile.FieldOrMethod; //导入方法依赖的package包/类
/**
* Figure out if a class member (field or method) is synthetic.
*
* @param member
* a field or method
* @return true if the member is synthetic
*/
private boolean isSynthetic(FieldOrMethod member) {
if (member.isSynthetic()) // this never works, but worth a try
return true;
String name = member.getName();
if (name.startsWith("class$"))
return true;
if (name.startsWith("access$"))
return true;
return false;
}
示例3: isSynthetic
import org.apache.bcel.classfile.FieldOrMethod; //导入方法依赖的package包/类
/**
* Figure out if a class member (field or method) is synthetic.
*
* @param member
* a field or method
* @return true if the member is synthetic
*/
private boolean isSynthetic(FieldOrMethod member) {
if (BCELUtil.isSynthetic(member)) // this never works, but worth a try
return true;
String name = member.getName();
if (name.startsWith("class$"))
return true;
if (name.startsWith("access$"))
return true;
return false;
}