proguard.classfile.attribute.annotation.visitor.AnnotationVisitor Java Examples

The following examples show how to use proguard.classfile.attribute.annotation.visitor.AnnotationVisitor. 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: ParameterAnnotationsAttribute.java    From java-n-IDE-for-Android with Apache License 2.0 6 votes vote down vote up
/**
 * Applies the given visitor to all annotations.
 */
public void annotationsAccept(Clazz clazz, Method method, AnnotationVisitor annotationVisitor)
{
    // Loop over all parameters.
    for (int parameterIndex = 0; parameterIndex < u2parametersCount; parameterIndex++)
    {
        int          annotationsCount = u2parameterAnnotationsCount[parameterIndex];
        Annotation[] annotations      = parameterAnnotations[parameterIndex];

        // Loop over all parameter annotations.
        for (int index = 0; index < annotationsCount; index++)
        {
            // We don't need double dispatching here, since there is only one
            // type of Annotation.
            annotationVisitor.visitAnnotation(clazz, method, parameterIndex, annotations[index]);
        }
    }
}
 
Example #2
Source File: ParameterAnnotationsAttribute.java    From proguard with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Applies the given visitor to all annotations.
 */
public void annotationsAccept(Clazz clazz, Method method, AnnotationVisitor annotationVisitor)
{
    // Loop over all parameters.
    for (int parameterIndex = 0; parameterIndex < u1parametersCount; parameterIndex++)
    {
        int          annotationsCount = u2parameterAnnotationsCount[parameterIndex];
        Annotation[] annotations      = parameterAnnotations[parameterIndex];

        // Loop over all parameter annotations.
        for (int index = 0; index < annotationsCount; index++)
        {
            // We don't need double dispatching here, since there is only one
            // type of Annotation.
            annotationVisitor.visitAnnotation(clazz, method, parameterIndex, annotations[index]);
        }
    }
}
 
Example #3
Source File: ParameterAnnotationsAttribute.java    From bazel with Apache License 2.0 6 votes vote down vote up
/**
 * Applies the given visitor to all annotations.
 */
public void annotationsAccept(Clazz clazz, Method method, AnnotationVisitor annotationVisitor)
{
    // Loop over all parameters.
    for (int parameterIndex = 0; parameterIndex < u1parametersCount; parameterIndex++)
    {
        int          annotationsCount = u2parameterAnnotationsCount[parameterIndex];
        Annotation[] annotations      = parameterAnnotations[parameterIndex];

        // Loop over all parameter annotations.
        for (int index = 0; index < annotationsCount; index++)
        {
            // We don't need double dispatching here, since there is only one
            // type of Annotation.
            annotationVisitor.visitAnnotation(clazz, method, parameterIndex, annotations[index]);
        }
    }
}
 
Example #4
Source File: AnnotationsAttribute.java    From java-n-IDE-for-Android with Apache License 2.0 5 votes vote down vote up
/**
 * Applies the given visitor to all class annotations.
 */
public void annotationsAccept(Clazz clazz, AnnotationVisitor annotationVisitor)
{
    for (int index = 0; index < u2annotationsCount; index++)
    {
        // We don't need double dispatching here, since there is only one
        // type of Annotation.
        annotationVisitor.visitAnnotation(clazz, annotations[index]);
    }
}
 
Example #5
Source File: AnnotationsAttribute.java    From java-n-IDE-for-Android with Apache License 2.0 5 votes vote down vote up
/**
 * Applies the given visitor to all field annotations.
 */
public void annotationsAccept(Clazz clazz, Field field, AnnotationVisitor annotationVisitor)
{
    for (int index = 0; index < u2annotationsCount; index++)
    {
        // We don't need double dispatching here, since there is only one
        // type of Annotation.
        annotationVisitor.visitAnnotation(clazz, field, annotations[index]);
    }
}
 
Example #6
Source File: AnnotationsAttribute.java    From java-n-IDE-for-Android with Apache License 2.0 5 votes vote down vote up
/**
 * Applies the given visitor to all method annotations.
 */
public void annotationsAccept(Clazz clazz, Method method, AnnotationVisitor annotationVisitor)
{
    for (int index = 0; index < u2annotationsCount; index++)
    {
        // We don't need double dispatching here, since there is only one
        // type of Annotation.
        annotationVisitor.visitAnnotation(clazz, method, annotations[index]);
    }
}
 
Example #7
Source File: AnnotationsAttribute.java    From proguard with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Applies the given visitor to all class annotations.
 */
public void annotationsAccept(Clazz clazz, AnnotationVisitor annotationVisitor)
{
    for (int index = 0; index < u2annotationsCount; index++)
    {
        // We don't need double dispatching here, since there is only one
        // type of Annotation.
        annotationVisitor.visitAnnotation(clazz, annotations[index]);
    }
}
 
Example #8
Source File: AnnotationsAttribute.java    From proguard with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Applies the given visitor to all field annotations.
 */
public void annotationsAccept(Clazz clazz, Field field, AnnotationVisitor annotationVisitor)
{
    for (int index = 0; index < u2annotationsCount; index++)
    {
        // We don't need double dispatching here, since there is only one
        // type of Annotation.
        annotationVisitor.visitAnnotation(clazz, field, annotations[index]);
    }
}
 
Example #9
Source File: AnnotationsAttribute.java    From proguard with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Applies the given visitor to all method annotations.
 */
public void annotationsAccept(Clazz clazz, Method method, AnnotationVisitor annotationVisitor)
{
    for (int index = 0; index < u2annotationsCount; index++)
    {
        // We don't need double dispatching here, since there is only one
        // type of Annotation.
        annotationVisitor.visitAnnotation(clazz, method, annotations[index]);
    }
}
 
Example #10
Source File: AnnotationsAttribute.java    From proguard with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Applies the given visitor to all code attribute annotations.
 */
public void annotationsAccept(Clazz clazz, Method method, CodeAttribute codeAttribute, AnnotationVisitor annotationVisitor)
{
    for (int index = 0; index < u2annotationsCount; index++)
    {
        // We don't need double dispatching here, since there is only one
        // type of Annotation.
        annotationVisitor.visitAnnotation(clazz, method, codeAttribute, annotations[index]);
    }
}
 
Example #11
Source File: AnnotationsAttribute.java    From bazel with Apache License 2.0 5 votes vote down vote up
/**
 * Applies the given visitor to all class annotations.
 */
public void annotationsAccept(Clazz clazz, AnnotationVisitor annotationVisitor)
{
    for (int index = 0; index < u2annotationsCount; index++)
    {
        // We don't need double dispatching here, since there is only one
        // type of Annotation.
        annotationVisitor.visitAnnotation(clazz, annotations[index]);
    }
}
 
Example #12
Source File: AnnotationsAttribute.java    From bazel with Apache License 2.0 5 votes vote down vote up
/**
 * Applies the given visitor to all field annotations.
 */
public void annotationsAccept(Clazz clazz, Field field, AnnotationVisitor annotationVisitor)
{
    for (int index = 0; index < u2annotationsCount; index++)
    {
        // We don't need double dispatching here, since there is only one
        // type of Annotation.
        annotationVisitor.visitAnnotation(clazz, field, annotations[index]);
    }
}
 
Example #13
Source File: AnnotationsAttribute.java    From bazel with Apache License 2.0 5 votes vote down vote up
/**
 * Applies the given visitor to all method annotations.
 */
public void annotationsAccept(Clazz clazz, Method method, AnnotationVisitor annotationVisitor)
{
    for (int index = 0; index < u2annotationsCount; index++)
    {
        // We don't need double dispatching here, since there is only one
        // type of Annotation.
        annotationVisitor.visitAnnotation(clazz, method, annotations[index]);
    }
}
 
Example #14
Source File: AnnotationsAttribute.java    From bazel with Apache License 2.0 5 votes vote down vote up
/**
 * Applies the given visitor to all code attribute annotations.
 */
public void annotationsAccept(Clazz clazz, Method method, CodeAttribute codeAttribute, AnnotationVisitor annotationVisitor)
{
    for (int index = 0; index < u2annotationsCount; index++)
    {
        // We don't need double dispatching here, since there is only one
        // type of Annotation.
        annotationVisitor.visitAnnotation(clazz, method, codeAttribute, annotations[index]);
    }
}
 
Example #15
Source File: AnnotationElementValue.java    From java-n-IDE-for-Android with Apache License 2.0 4 votes vote down vote up
/**
 * Applies the given visitor to the annotation.
 */
public void annotationAccept(Clazz clazz, AnnotationVisitor annotationVisitor)
{
    annotationVisitor.visitAnnotation(clazz, annotationValue);
}