Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package org.dynjs.runtime.linker.java;
  
  import java.util.Arrays;
  
 
 
 
 
     public JSJavaClassLinkStrategy(LinkLogger loggerResolverManager manager) {
         super(ExecutionContext.classlogger);
         this. = new JavaClassLinkStrategy(loggermanager);
     }
 
     @Override
     public StrategicLink linkGetProperty(StrategyChain chainObject receiverString propNameBinder binderBinder guardBinderthrows NoSuchMethodException,
             IllegalAccessException {
         if (receiver instanceof Reference) {
             receiver = ((Referencereceiver).getBase();
             binder = binder.drop(1).filter(0, referenceBaseFilter());
             guardBinder = guardBinder.drop(1).filter(0, referenceBaseFilter());
         }
         return .linkGetProperty(chainreceiverpropNamebinderguardBinder);
     }
 
     @Override
     public StrategicLink linkSetProperty(StrategyChain chainObject receiverString propNameObject valueBinder binderBinder guardBinder)
             throws NoSuchMethodExceptionIllegalAccessException {
         return .linkSetProperty(chainreceiverpropNamevaluebinderguardBinder);
     }
 
     @Override
     public StrategicLink linkGetMethod(StrategyChain chainObject receiverString methodNameBinder binderBinder guardBinderthrows NoSuchMethodException,
             IllegalAccessException {
         if (receiver instanceof Reference) {
             receiver = ((Referencereceiver).getBase();
             binder = binder.drop(1).filter(0, referenceBaseFilter());
             guardBinder = guardBinder.drop(1).filter(0, referenceBaseFilter());
         }
         return .linkGetMethod(chainreceivermethodNamebinderguardBinder);
     }
 
     @Override
     public StrategicLink linkCall(StrategyChain chainObject receiverObject selfObject[] argsBinder binderBinder guardBinderthrows NoSuchMethodException,
             IllegalAccessException {
         binder = binder.drop(1);
         guardBinder = guardBinder.drop(1);
         binder = binder.filter(0, dereferencedValueFilter());
         guardBinder = guardBinder.filter(0, dereferencedValueFilter());
         return .linkCall(chaindereferencedValueFilter(receiver), selfargsbinderguardBinder);
     }
 
     @Override
     public StrategicLink linkConstruct(StrategyChain chainObject receiverObject[] argsBinder binderBinder guardBinderthrows NoSuchMethodException,
             IllegalAccessException {
 
         binder = binder.drop(1);
         guardBinder = guardBinder.drop(1);
         return .linkConstruct(chainreceiverargsbinderguardBinder);
     }
 
         return MethodHandles.lookup().findStatic(JSJavaClassLinkStrategy.class"dereferencedValueFilter",
                 MethodType.methodType(Object.classObject.class));
     }
 
     public static Object dereferencedValueFilter(Object deref) {
         if (deref instanceof DereferencedReference) {
             return ((DereferencedReferencederef).getValue();
         }
         return deref;
     }
 
         return MethodHandles.lookup().findStatic(JSJavaClassLinkStrategy.class"referenceBaseFilter",
                 MethodType.methodType(Object.classObject.class));
     }
 
     public static Object referenceBaseFilter(Object obj) {
         if (obj instanceof Reference) {
             return ((Referenceobj).getBase();
         }
 
         return obj;
     }
New to GrepCode? Check out our FAQ X