Example usage for org.eclipse.jdt.internal.compiler.classfmt MethodInfo getAnnotatedParametersCount

List of usage examples for org.eclipse.jdt.internal.compiler.classfmt MethodInfo getAnnotatedParametersCount

Introduction

In this page you can find the example usage for org.eclipse.jdt.internal.compiler.classfmt MethodInfo getAnnotatedParametersCount.

Prototype

@Override
    public int getAnnotatedParametersCount() 

Source Link

Usage

From source file:io.takari.maven.plugins.compile.jdt.ClassfileDigester.java

License:Open Source License

private void updateMethod(MethodInfo methodInfo) {
    // generic signature
    updateChars(methodInfo.getGenericSignature());
    updateInt(methodInfo.getModifiers());
    updateLong(methodInfo.getTagBits() & TagBits.AnnotationDeprecated);
    updateAnnotations(methodInfo.getAnnotations());
    // parameter annotations:
    for (int i = 0; i < methodInfo.getAnnotatedParametersCount(); i++) {
        updateAnnotations(methodInfo.getParameterAnnotations(i));
    }/*from w  ww.j a  v a 2 s  .c o m*/

    updateChars(methodInfo.getSelector());
    updateChars(methodInfo.getMethodDescriptor());
    updateChars(methodInfo.getGenericSignature());

    char[][] thrownExceptions = methodInfo.getExceptionTypeNames();
    for (int i = 0; i < thrownExceptions.length; i++) {
        updateChars(thrownExceptions[i]);
    }
}