コード例 #1
0
 public static boolean hasThis0(BindingContext bindingContext, ClassDescriptor classDescriptor) {
   //noinspection SuspiciousMethodCalls
   CalculatedClosure closure = bindingContext.get(CLOSURE, classDescriptor);
   return closure != null && closure.getCaptureThis() != null;
 }
コード例 #2
0
 public static ClassDescriptor enclosingClassDescriptor(
     BindingContext bindingContext, ClassDescriptor descriptor) {
   CalculatedClosure closure = bindingContext.get(CLOSURE, descriptor);
   return closure == null ? null : closure.getEnclosingClass();
 }