本文整理汇总了Java中proguard.classfile.attribute.InnerClassesInfo.innerClassConstantAccept方法的典型用法代码示例。如果您正苦于以下问题:Java InnerClassesInfo.innerClassConstantAccept方法的具体用法?Java InnerClassesInfo.innerClassConstantAccept怎么用?Java InnerClassesInfo.innerClassConstantAccept使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类proguard.classfile.attribute.InnerClassesInfo
的用法示例。
在下文中一共展示了InnerClassesInfo.innerClassConstantAccept方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: visitInnerClassesInfo
import proguard.classfile.attribute.InnerClassesInfo; //导入方法依赖的package包/类
public void visitInnerClassesInfo(Clazz clazz, InnerClassesInfo innerClassesInfo)
{
// At this point, we only mark outer classes of this class.
// Inner class can be marked later, by InnerUsageMarker.
if (innerClassesInfo.u2innerClassIndex != 0 &&
clazz.getName().equals(clazz.getClassName(innerClassesInfo.u2innerClassIndex)))
{
markAsUsed(innerClassesInfo);
innerClassesInfo.innerClassConstantAccept(clazz, this);
innerClassesInfo.outerClassConstantAccept(clazz, this);
innerClassesInfo.innerNameConstantAccept(clazz, this);
}
}
示例2: visitInnerClassesInfo
import proguard.classfile.attribute.InnerClassesInfo; //导入方法依赖的package包/类
public void visitInnerClassesInfo(Clazz clazz, InnerClassesInfo innerClassesInfo)
{
boolean innerClassesInfoUsed = usageMarker.isUsed(innerClassesInfo);
if (!innerClassesInfoUsed)
{
// Check if the inner class (if any) is marked as being used.
classUsed = true;
innerClassesInfo.innerClassConstantAccept(clazz, this);
innerClassesInfoUsed = classUsed;
// Check if the outer class (if any) is marked as being used.
classUsed = true;
innerClassesInfo.outerClassConstantAccept(clazz, this);
innerClassesInfoUsed &= classUsed;
// If both the inner class and the outer class are marked as being
// used, then mark this InnerClassesInfo as well.
if (innerClassesInfoUsed)
{
usageMarker.markAsUsed(innerClassesInfo);
innerClassesInfo.innerNameConstantAccept(clazz, this);
}
}
// The return value.
attributeUsed |= innerClassesInfoUsed;
}
示例3: visitInnerClassesInfo
import proguard.classfile.attribute.InnerClassesInfo; //导入方法依赖的package包/类
public void visitInnerClassesInfo(Clazz clazz, InnerClassesInfo innerClassesInfo)
{
println(visitorInfo(innerClassesInfo) +
" InnerClassesInfo:");
indent();
println("Access flags: 0x" + Integer.toHexString(innerClassesInfo.u2innerClassAccessFlags) + " = " +
ClassUtil.externalClassAccessFlags(innerClassesInfo.u2innerClassAccessFlags));
innerClassesInfo.innerClassConstantAccept(clazz, this);
innerClassesInfo.outerClassConstantAccept(clazz, this);
innerClassesInfo.innerNameConstantAccept(clazz, this);
outdent();
}
示例4: visitInnerClassesInfo
import proguard.classfile.attribute.InnerClassesInfo; //导入方法依赖的package包/类
public void visitInnerClassesInfo(Clazz clazz, InnerClassesInfo innerClassesInfo)
{
// The current access flags are the default.
innerClassAccessFlags = innerClassesInfo.u2innerClassAccessFlags;
// See if we can find new access flags.
innerClassesInfo.innerClassConstantAccept(clazz, this);
// Update the access flags.
innerClassesInfo.u2innerClassAccessFlags = innerClassAccessFlags;
}
示例5: visitInnerClassesAttribute
import proguard.classfile.attribute.InnerClassesInfo; //导入方法依赖的package包/类
public void visitInnerClassesAttribute(Clazz clazz, InnerClassesAttribute innerClassesAttribute)
{
// Check whether the class itself is retargeted.
checkTarget(clazz);
if (!retargeted)
{
// Check whether the referenced classes are retargeted.
innerClassesAttribute.innerClassEntriesAccept(clazz, this);
int classesCount = innerClassesAttribute.u2classesCount;
InnerClassesInfo[] classes = innerClassesAttribute.classes;
int newClassesCount = 0;
// Copy over all non-retargeted attributes.
for (int index = 0; index < classesCount; index++)
{
InnerClassesInfo classInfo = classes[index];
// Check if the outer class or inner class is a retargeted class.
retargeted = false;
classInfo.outerClassConstantAccept(clazz, this);
classInfo.innerClassConstantAccept(clazz, this);
if (!retargeted)
{
classes[newClassesCount++] = classInfo;
}
}
// Clean up any remaining array elements.
for (int index = newClassesCount; index < classesCount; index++)
{
classes[index] = null;
}
// Update the number of classes.
innerClassesAttribute.u2classesCount = newClassesCount;
// Remove the attribute altogether if it's empty.
retargeted = newClassesCount == 0;
}
}
示例6: visitInnerClassesInfo
import proguard.classfile.attribute.InnerClassesInfo; //导入方法依赖的package包/类
public void visitInnerClassesInfo(Clazz clazz, InnerClassesInfo innerClassesInfo)
{
// Check whether the inner class or the outer class are retargeted.
innerClassesInfo.innerClassConstantAccept(clazz, this);
innerClassesInfo.outerClassConstantAccept(clazz, this);
}