proguard.classfile.constant.visitor.ConstantVisitor Java Examples

The following examples show how to use proguard.classfile.constant.visitor.ConstantVisitor. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ProgramClass.java    From proguard with GNU General Public License v2.0 5 votes vote down vote up
public void superClassConstantAccept(ConstantVisitor constantVisitor)
{
    if (u2superClass != 0)
    {
        constantPool[u2superClass].accept(this, constantVisitor);
    }
}
 
Example #2
Source File: InnerClassesInfo.java    From java-n-IDE-for-Android with Apache License 2.0 5 votes vote down vote up
/**
 * Applies the given constant pool visitor to the Utf8 constant of the
 * inner name, if any.
 */
public void innerNameConstantAccept(Clazz clazz, ConstantVisitor constantVisitor)
{
    if (u2innerNameIndex != 0)
    {
        clazz.constantPoolEntryAccept(u2innerNameIndex,
                                             constantVisitor);
    }
}
 
Example #3
Source File: InnerClassesInfo.java    From java-n-IDE-for-Android with Apache License 2.0 5 votes vote down vote up
/**
 * Applies the given constant pool visitor to the class constant of the
 * outer class, if any.
 */
public void outerClassConstantAccept(Clazz clazz, ConstantVisitor constantVisitor)
{
    if (u2outerClassIndex != 0)
    {
        clazz.constantPoolEntryAccept(u2outerClassIndex,
                                             constantVisitor);
    }
}
 
Example #4
Source File: InnerClassesInfo.java    From proguard with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Applies the given constant pool visitor to the class constant of the
 * outer class, if any.
 */
public void outerClassConstantAccept(Clazz clazz, ConstantVisitor constantVisitor)
{
    if (u2outerClassIndex != 0)
    {
        clazz.constantPoolEntryAccept(u2outerClassIndex, constantVisitor);
    }
}
 
Example #5
Source File: ProgramClass.java    From bazel with Apache License 2.0 5 votes vote down vote up
public void superClassConstantAccept(ConstantVisitor constantVisitor)
{
    if (u2superClass != 0)
    {
        constantPool[u2superClass].accept(this, constantVisitor);
    }
}
 
Example #6
Source File: InnerClassesInfo.java    From proguard with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Applies the given constant pool visitor to the Utf8 constant of the
 * inner name, if any.
 */
public void innerNameConstantAccept(Clazz clazz, ConstantVisitor constantVisitor)
{
    if (u2innerNameIndex != 0)
    {
        clazz.constantPoolEntryAccept(u2innerNameIndex, constantVisitor);
    }
}
 
Example #7
Source File: ExceptionsAttribute.java    From proguard with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Applies the given constant pool visitor to all exception class pool info
 * entries.
 */
public void exceptionEntriesAccept(Clazz clazz, ConstantVisitor constantVisitor)
{
    for (int index = 0; index < u2exceptionIndexTableLength; index++)
    {
        clazz.constantPoolEntryAccept(u2exceptionIndexTable[index],
                                      constantVisitor);
    }
}
 
Example #8
Source File: ProgramClass.java    From bazel with Apache License 2.0 5 votes vote down vote up
public void constantPoolEntriesAccept(ConstantVisitor constantVisitor)
{
    for (int index = 1; index < u2constantPoolCount; index++)
    {
        if (constantPool[index] != null)
        {
            constantPool[index].accept(this, constantVisitor);
        }
    }
}
 
Example #9
Source File: ExceptionsAttribute.java    From java-n-IDE-for-Android with Apache License 2.0 5 votes vote down vote up
/**
 * Applies the given constant pool visitor to all exception class pool info
 * entries.
 */
public void exceptionEntriesAccept(ProgramClass programClass, ConstantVisitor constantVisitor)
{
    for (int index = 0; index < u2exceptionIndexTableLength; index++)
    {
        programClass.constantPoolEntryAccept(u2exceptionIndexTable[index],
                                             constantVisitor);
    }
}
 
Example #10
Source File: ProgramClass.java    From bazel with Apache License 2.0 5 votes vote down vote up
public void interfaceConstantsAccept(ConstantVisitor constantVisitor)
{
    for (int index = 0; index < u2interfacesCount; index++)
    {
        constantPool[u2interfaces[index]].accept(this, constantVisitor);
    }
}
 
Example #11
Source File: ProgramClass.java    From java-n-IDE-for-Android with Apache License 2.0 5 votes vote down vote up
public void constantPoolEntriesAccept(ConstantVisitor constantVisitor)
{
    for (int index = 1; index < u2constantPoolCount; index++)
    {
        if (constantPool[index] != null)
        {
            constantPool[index].accept(this, constantVisitor);
        }
    }
}
 
Example #12
Source File: ProgramClass.java    From proguard with GNU General Public License v2.0 5 votes vote down vote up
public void interfaceConstantsAccept(ConstantVisitor constantVisitor)
{
    for (int index = 0; index < u2interfacesCount; index++)
    {
        constantPool[u2interfaces[index]].accept(this, constantVisitor);
    }
}
 
Example #13
Source File: InnerClassesInfo.java    From proguard with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Applies the given constant pool visitor to the class constant of the
 * inner class, if any.
 */
public void innerClassConstantAccept(Clazz clazz, ConstantVisitor constantVisitor)
{
    if (u2innerClassIndex != 0)
    {
        clazz.constantPoolEntryAccept(u2innerClassIndex, constantVisitor);
    }
}
 
Example #14
Source File: InnerClassesInfo.java    From bazel with Apache License 2.0 5 votes vote down vote up
/**
 * Applies the given constant pool visitor to the class constant of the
 * inner class, if any.
 */
public void innerClassConstantAccept(Clazz clazz, ConstantVisitor constantVisitor)
{
    if (u2innerClassIndex != 0)
    {
        clazz.constantPoolEntryAccept(u2innerClassIndex, constantVisitor);
    }
}
 
Example #15
Source File: ExceptionsAttribute.java    From bazel with Apache License 2.0 5 votes vote down vote up
/**
 * Applies the given constant pool visitor to all exception class pool info
 * entries.
 */
public void exceptionEntriesAccept(Clazz clazz, ConstantVisitor constantVisitor)
{
    for (int index = 0; index < u2exceptionIndexTableLength; index++)
    {
        clazz.constantPoolEntryAccept(u2exceptionIndexTable[index],
                                      constantVisitor);
    }
}
 
Example #16
Source File: ProgramClass.java    From java-n-IDE-for-Android with Apache License 2.0 5 votes vote down vote up
public void superClassConstantAccept(ConstantVisitor constantVisitor)
{
    if (u2superClass != 0)
    {
        constantPool[u2superClass].accept(this, constantVisitor);
    }
}
 
Example #17
Source File: InnerClassesInfo.java    From bazel with Apache License 2.0 5 votes vote down vote up
/**
 * Applies the given constant pool visitor to the Utf8 constant of the
 * inner name, if any.
 */
public void innerNameConstantAccept(Clazz clazz, ConstantVisitor constantVisitor)
{
    if (u2innerNameIndex != 0)
    {
        clazz.constantPoolEntryAccept(u2innerNameIndex, constantVisitor);
    }
}
 
Example #18
Source File: BootstrapMethodInfo.java    From bazel with Apache License 2.0 5 votes vote down vote up
/**
 * Applies the given constant pool visitor to the argument constants of the
 * bootstrap method.
 */
public void methodArgumentsAccept(Clazz clazz, ConstantVisitor constantVisitor)
{
    for (int index = 0; index < u2methodArgumentCount; index++)
    {
        clazz.constantPoolEntryAccept(u2methodArguments[index],
                                      constantVisitor);
    }
}
 
Example #19
Source File: FieldrefConstant.java    From bazel with Apache License 2.0 4 votes vote down vote up
public void accept(Clazz clazz, ConstantVisitor constantVisitor)
{
    constantVisitor.visitFieldrefConstant(clazz, this);
}
 
Example #20
Source File: LibraryClass.java    From proguard with GNU General Public License v2.0 4 votes vote down vote up
public void constantPoolEntriesAccept(ConstantVisitor constantVisitor)
{
    // This class doesn't keep references to its constant pool entries.
}
 
Example #21
Source File: LibraryClass.java    From proguard with GNU General Public License v2.0 4 votes vote down vote up
public void constantPoolEntryAccept(int index, ConstantVisitor constantVisitor)
{
    // This class doesn't keep references to its constant pool entries.
}
 
Example #22
Source File: Utf8Constant.java    From proguard with GNU General Public License v2.0 4 votes vote down vote up
public void accept(Clazz clazz, ConstantVisitor constantVisitor)
{
    constantVisitor.visitUtf8Constant(clazz, this);
}
 
Example #23
Source File: StringConstant.java    From proguard with GNU General Public License v2.0 4 votes vote down vote up
public void accept(Clazz clazz, ConstantVisitor constantVisitor)
{
    constantVisitor.visitStringConstant(clazz, this);
}
 
Example #24
Source File: NameAndTypeConstant.java    From proguard with GNU General Public License v2.0 4 votes vote down vote up
public void accept(Clazz clazz, ConstantVisitor constantVisitor)
{
    constantVisitor.visitNameAndTypeConstant(clazz, this);
}
 
Example #25
Source File: ClassConstant.java    From proguard with GNU General Public License v2.0 4 votes vote down vote up
public void accept(Clazz clazz, ConstantVisitor constantVisitor)
{
    constantVisitor.visitClassConstant(clazz, this);
}
 
Example #26
Source File: MethodHandleConstant.java    From proguard with GNU General Public License v2.0 4 votes vote down vote up
public void accept(Clazz clazz, ConstantVisitor constantVisitor)
{
    constantVisitor.visitMethodHandleConstant(clazz, this);
}
 
Example #27
Source File: InterfaceMethodrefConstant.java    From proguard with GNU General Public License v2.0 4 votes vote down vote up
public void accept(Clazz clazz, ConstantVisitor constantVisitor)
{
    constantVisitor.visitInterfaceMethodrefConstant(clazz, this);
}
 
Example #28
Source File: DoubleConstant.java    From proguard with GNU General Public License v2.0 4 votes vote down vote up
public void accept(Clazz clazz, ConstantVisitor constantVisitor)
{
    constantVisitor.visitDoubleConstant(clazz, this);
}
 
Example #29
Source File: MethodTypeConstant.java    From proguard with GNU General Public License v2.0 4 votes vote down vote up
public void accept(Clazz clazz, ConstantVisitor constantVisitor)
{
    constantVisitor.visitMethodTypeConstant(clazz, this);
}
 
Example #30
Source File: MethodrefConstant.java    From proguard with GNU General Public License v2.0 4 votes vote down vote up
public void accept(Clazz clazz, ConstantVisitor constantVisitor)
{
    constantVisitor.visitMethodrefConstant(clazz, this);
}