本文整理汇总了Java中proguard.classfile.constant.RefConstant.referencedMemberAccept方法的典型用法代码示例。如果您正苦于以下问题:Java RefConstant.referencedMemberAccept方法的具体用法?Java RefConstant.referencedMemberAccept怎么用?Java RefConstant.referencedMemberAccept使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类proguard.classfile.constant.RefConstant
的用法示例。
在下文中一共展示了RefConstant.referencedMemberAccept方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: visitAnyRefConstant
import proguard.classfile.constant.RefConstant; //导入方法依赖的package包/类
public void visitAnyRefConstant(Clazz clazz, RefConstant refConstant)
{
if (shouldBeMarkedAsUsed(refConstant))
{
markAsUsed(refConstant);
markConstant(clazz, refConstant.u2classIndex);
markConstant(clazz, refConstant.u2nameAndTypeIndex);
// When compiled with "-target 1.2" or higher, the class or
// interface actually containing the referenced class member may
// be higher up the hierarchy. Make sure it's marked, in case it
// isn't used elsewhere.
refConstant.referencedClassAccept(this);
// Mark the referenced class member itself.
refConstant.referencedMemberAccept(this);
}
}
示例2: getFieldClassValue
import proguard.classfile.constant.RefConstant; //导入方法依赖的package包/类
/**
* Returns the class though which the specified field is accessed.
*/
protected Value getFieldClassValue(Clazz clazz,
RefConstant refConstant,
String type)
{
// Try to figure out the class of the return type.
returnTypeClass = null;
refConstant.referencedMemberAccept(this);
return valueFactory.createValue(type,
returnTypeClass,
true);
}
示例3: getFieldValue
import proguard.classfile.constant.RefConstant; //导入方法依赖的package包/类
/**
* Returns the value of the specified field.
*/
protected Value getFieldValue(Clazz clazz,
RefConstant refConstant,
String type)
{
// Try to figure out the class of the return type.
returnTypeClass = null;
refConstant.referencedMemberAccept(this);
return valueFactory.createValue(type,
returnTypeClass,
true);
}
示例4: getMethodReturnValue
import proguard.classfile.constant.RefConstant; //导入方法依赖的package包/类
/**
* Returns the return value of the specified method.
*/
protected Value getMethodReturnValue(Clazz clazz,
RefConstant refConstant,
String type)
{
// Try to figure out the class of the return type.
returnTypeClass = null;
refConstant.referencedMemberAccept(this);
return valueFactory.createValue(type,
returnTypeClass,
true);
}
示例5: visitAnyRefConstant
import proguard.classfile.constant.RefConstant; //导入方法依赖的package包/类
public void visitAnyRefConstant(Clazz clazz, RefConstant refConstant)
{
referencingClass = clazz;
// Remember the specified class, since it might be different from
// the referenced class that actually contains the class member.
clazz.constantPoolEntryAccept(refConstant.u2classIndex, referencedClassFinder);
// Make sure the access flags of the referenced class member are
// acceptable.
refConstant.referencedMemberAccept(this);
}
示例6: visitAnyRefConstant
import proguard.classfile.constant.RefConstant; //导入方法依赖的package包/类
public void visitAnyRefConstant(Clazz clazz, RefConstant refConstant)
{
// Check the referenced class.
clazz.constantPoolEntryAccept(refConstant.u2classIndex, this);
// Check the referenced class member itself.
refConstant.referencedClassAccept(this);
refConstant.referencedMemberAccept(this);
}
示例7: visitAnyRefConstant
import proguard.classfile.constant.RefConstant; //导入方法依赖的package包/类
public void visitAnyRefConstant(Clazz clazz, RefConstant refConstant)
{
// Check the referenced class and class member.
if (refConstant.referencedClass != clazz)
{
referencingClass = clazz;
refConstant.referencedClassAccept(this);
refConstant.referencedMemberAccept(this);
}
}
示例8: visitAnyMethodrefConstant
import proguard.classfile.constant.RefConstant; //导入方法依赖的package包/类
public void visitAnyMethodrefConstant(Clazz clazz, RefConstant refConstant)
{
// Pass the referencing class.
referencingClass = clazz;
// We'll have to assume invoking an unknown method has side effects.
hasSideEffects = true;
// Check the referenced method, if known.
refConstant.referencedMemberAccept(this);
}
示例9: visitAnyRefConstant
import proguard.classfile.constant.RefConstant; //导入方法依赖的package包/类
public void visitAnyRefConstant(Clazz clazz, RefConstant refConstant)
{
Clazz referencedClass = refConstant.referencedClass;
// Is it referring to a class member in another class?
// The class member might be in another class, or
// it may be referenced through another class.
if (referencedClass != null &&
!referencedClass.equals(clazz) ||
!refConstant.getClassName(clazz).equals(clazz.getName()))
{
// The referenced class member can never be made private.
refConstant.referencedMemberAccept(this);
}
}
示例10: visitAnyRefConstant
import proguard.classfile.constant.RefConstant; //导入方法依赖的package包/类
public void visitAnyRefConstant(Clazz clazz, RefConstant refConstant)
{
refConstant.referencedMemberAccept(memberVisitor);
}
示例11: visitAnyMethodrefConstant
import proguard.classfile.constant.RefConstant; //导入方法依赖的package包/类
public void visitAnyMethodrefConstant(Clazz clazz, RefConstant refConstant)
{
// Mark the referenced method.
refConstant.referencedMemberAccept(this);
}
示例12: visitAnyRefConstant
import proguard.classfile.constant.RefConstant; //导入方法依赖的package包/类
public void visitAnyRefConstant(Clazz clazz, RefConstant refConstant)
{
refConstant.referencedMemberAccept(this);
}