src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotResolvedJavaMethodImpl.java
Index Unified diffs Context diffs Sdiffs Frames Patch New Old Previous File Next File open Sdiff src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot

src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotResolvedJavaMethodImpl.java

Print this page




 490     @Override
 491     public void reprofile() {
 492         compilerToVM().reprofile(this);
 493     }
 494 
 495     @Override
 496     public ConstantPool getConstantPool() {
 497         return constantPool;
 498     }
 499 
 500     @Override
 501     public Parameter[] getParameters() {
 502         if (signature.getParameterCount(false) == 0) {
 503             return new ResolvedJavaMethod.Parameter[0];
 504         }
 505         return runtime().reflection.getParameters(this);
 506     }
 507 
 508     @Override
 509     public Annotation[][] getParameterAnnotations() {
 510         if ((getConstMethodFlags() & config().constMethodHasParameterAnnotations) == 0) {
 511             return new Annotation[signature.getParameterCount(false)][0];
 512         }
 513         return runtime().reflection.getParameterAnnotations(this);
 514     }
 515 
 516     @Override
 517     public Annotation[] getAnnotations() {
 518         if ((getConstMethodFlags() & config().constMethodHasMethodAnnotations) == 0) {
 519             return new Annotation[0];
 520         }
 521         return runtime().reflection.getMethodAnnotations(this);
 522     }
 523 
 524     @Override
 525     public Annotation[] getDeclaredAnnotations() {
 526         if ((getConstMethodFlags() & config().constMethodHasMethodAnnotations) == 0) {
 527             return new Annotation[0];
 528         }
 529         return runtime().reflection.getMethodDeclaredAnnotations(this);
 530     }
 531 
 532     @Override
 533     public <T extends Annotation> T getAnnotation(Class<T> annotationClass) {
 534         if ((getConstMethodFlags() & config().constMethodHasMethodAnnotations) == 0) {
 535             return null;
 536         }
 537         return runtime().reflection.getMethodAnnotation(this, annotationClass);
 538     }
 539 
 540     @Override
 541     public boolean isBridge() {
 542         return (BRIDGE & getModifiers()) != 0;
 543     }
 544 
 545     @Override
 546     public boolean isSynthetic() {
 547         return (SYNTHETIC & getModifiers()) != 0;
 548     }
 549 
 550     @Override
 551     public boolean isVarArgs() {
 552         return (VARARGS & getModifiers()) != 0;
 553     }
 554 




 490     @Override
 491     public void reprofile() {
 492         compilerToVM().reprofile(this);
 493     }
 494 
 495     @Override
 496     public ConstantPool getConstantPool() {
 497         return constantPool;
 498     }
 499 
 500     @Override
 501     public Parameter[] getParameters() {
 502         if (signature.getParameterCount(false) == 0) {
 503             return new ResolvedJavaMethod.Parameter[0];
 504         }
 505         return runtime().reflection.getParameters(this);
 506     }
 507 
 508     @Override
 509     public Annotation[][] getParameterAnnotations() {
 510         if ((getConstMethodFlags() & config().constMethodHasParameterAnnotations) == 0 || isClassInitializer()) {
 511             return new Annotation[signature.getParameterCount(false)][0];
 512         }
 513         return runtime().reflection.getParameterAnnotations(this);
 514     }
 515 
 516     @Override
 517     public Annotation[] getAnnotations() {
 518         if ((getConstMethodFlags() & config().constMethodHasMethodAnnotations) == 0 || isClassInitializer()) {
 519             return new Annotation[0];
 520         }
 521         return runtime().reflection.getMethodAnnotations(this);
 522     }
 523 
 524     @Override
 525     public Annotation[] getDeclaredAnnotations() {
 526         if ((getConstMethodFlags() & config().constMethodHasMethodAnnotations) == 0 || isClassInitializer()) {
 527             return new Annotation[0];
 528         }
 529         return runtime().reflection.getMethodDeclaredAnnotations(this);
 530     }
 531 
 532     @Override
 533     public <T extends Annotation> T getAnnotation(Class<T> annotationClass) {
 534         if ((getConstMethodFlags() & config().constMethodHasMethodAnnotations) == 0 || isClassInitializer()) {
 535             return null;
 536         }
 537         return runtime().reflection.getMethodAnnotation(this, annotationClass);
 538     }
 539 
 540     @Override
 541     public boolean isBridge() {
 542         return (BRIDGE & getModifiers()) != 0;
 543     }
 544 
 545     @Override
 546     public boolean isSynthetic() {
 547         return (SYNTHETIC & getModifiers()) != 0;
 548     }
 549 
 550     @Override
 551     public boolean isVarArgs() {
 552         return (VARARGS & getModifiers()) != 0;
 553     }
 554 


src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotResolvedJavaMethodImpl.java
Index Unified diffs Context diffs Sdiffs Frames Patch New Old Previous File Next File