当前位置: 首页>>代码示例>>Java>>正文


Java RefConstant.referencedMemberAccept方法代码示例

本文整理汇总了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);
    }
}
 
开发者ID:tranleduy2000,项目名称:javaide,代码行数:20,代码来源:UsageMarker.java

示例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);
}
 
开发者ID:tranleduy2000,项目名称:javaide,代码行数:16,代码来源:BasicInvocationUnit.java

示例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);
}
 
开发者ID:tranleduy2000,项目名称:javaide,代码行数:16,代码来源:BasicInvocationUnit.java

示例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);
}
 
开发者ID:tranleduy2000,项目名称:javaide,代码行数:16,代码来源:BasicInvocationUnit.java

示例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);
}
 
开发者ID:tranleduy2000,项目名称:javaide,代码行数:13,代码来源:AccessFixer.java

示例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);
}
 
开发者ID:tranleduy2000,项目名称:javaide,代码行数:10,代码来源:AccessMethodMarker.java

示例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);
    }
}
 
开发者ID:tranleduy2000,项目名称:javaide,代码行数:12,代码来源:PackageVisibleMemberInvokingClassMarker.java

示例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);
}
 
开发者ID:tranleduy2000,项目名称:javaide,代码行数:12,代码来源:SideEffectInstructionChecker.java

示例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);
    }
}
 
开发者ID:tranleduy2000,项目名称:javaide,代码行数:16,代码来源:NonPrivateMemberMarker.java

示例10: visitAnyRefConstant

import proguard.classfile.constant.RefConstant; //导入方法依赖的package包/类
public void visitAnyRefConstant(Clazz clazz, RefConstant refConstant)
{
    refConstant.referencedMemberAccept(memberVisitor);
}
 
开发者ID:tranleduy2000,项目名称:javaide,代码行数:5,代码来源:ReferencedMemberVisitor.java

示例11: visitAnyMethodrefConstant

import proguard.classfile.constant.RefConstant; //导入方法依赖的package包/类
public void visitAnyMethodrefConstant(Clazz clazz, RefConstant refConstant)
{
    // Mark the referenced method.
    refConstant.referencedMemberAccept(this);
}
 
开发者ID:tranleduy2000,项目名称:javaide,代码行数:6,代码来源:MethodInvocationMarker.java

示例12: visitAnyRefConstant

import proguard.classfile.constant.RefConstant; //导入方法依赖的package包/类
public void visitAnyRefConstant(Clazz clazz, RefConstant refConstant)
{
    refConstant.referencedMemberAccept(this);
}
 
开发者ID:tranleduy2000,项目名称:javaide,代码行数:5,代码来源:EvaluationShrinker.java


注:本文中的proguard.classfile.constant.RefConstant.referencedMemberAccept方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。