|
Lines 28-33
Link Here
|
| 28 |
import org.eclipse.jdt.core.IAnnotation; |
28 |
import org.eclipse.jdt.core.IAnnotation; |
| 29 |
import org.eclipse.jdt.core.IImportDeclaration; |
29 |
import org.eclipse.jdt.core.IImportDeclaration; |
| 30 |
import org.eclipse.jdt.core.IJavaElement; |
30 |
import org.eclipse.jdt.core.IJavaElement; |
|
|
31 |
import org.eclipse.jdt.core.ILocalVariable; |
| 31 |
import org.eclipse.jdt.core.ISourceRange; |
32 |
import org.eclipse.jdt.core.ISourceRange; |
| 32 |
import org.eclipse.jdt.core.JavaModelException; |
33 |
import org.eclipse.jdt.core.JavaModelException; |
| 33 |
import org.eclipse.jdt.core.Signature; |
34 |
import org.eclipse.jdt.core.Signature; |
|
Lines 373-378
Link Here
|
| 373 |
char[][] argumentNames = methodInfo.getArgumentNames(); |
374 |
char[][] argumentNames = methodInfo.getArgumentNames(); |
| 374 |
int argumentCount = argumentTypeSignatures == null ? 0 : argumentTypeSignatures.length; |
375 |
int argumentCount = argumentTypeSignatures == null ? 0 : argumentTypeSignatures.length; |
| 375 |
if (argumentCount > 0) { |
376 |
if (argumentCount > 0) { |
|
|
377 |
ILocalVariable[] parameters = methodHandle.getParameters(); |
| 376 |
long position = ((long) start << 32) + end; |
378 |
long position = ((long) start << 32) + end; |
| 377 |
method.arguments = new Argument[argumentCount]; |
379 |
method.arguments = new Argument[argumentCount]; |
| 378 |
for (int i = 0; i < argumentCount; i++) { |
380 |
for (int i = 0; i < argumentCount; i++) { |
|
Lines 387-392
Link Here
|
| 387 |
typeReference, |
389 |
typeReference, |
| 388 |
ClassFileConstants.AccDefault); |
390 |
ClassFileConstants.AccDefault); |
| 389 |
// do not care whether was final or not |
391 |
// do not care whether was final or not |
|
|
392 |
// convert 1.5 specific constructs only if compliance is 1.5 or above |
| 393 |
if (this.has1_5Compliance) { |
| 394 |
/* convert annotations */ |
| 395 |
method.arguments[i].annotations = convertAnnotations(parameters[i]); |
| 396 |
} |
| 390 |
} |
397 |
} |
| 391 |
} |
398 |
} |
| 392 |
|
399 |
|