Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.dynjs.runtime.linker.java;
 
 
    public JSJavaArrayLinkStrategy(LinkLogger logger) {
        super(ExecutionContext.classlogger);
        this. = new JavaArrayLinkStrategy();
    }
    @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 {
        if (receiver instanceof Reference) {
            receiver = ((Referencereceiver).getBase();
            binder = binder.drop(1).filter(0, referenceBaseFilter());
            guardBinder = guardBinder.drop(1).filter(0, referenceBaseFilter());
        }
        return .linkSetProperty(chainreceiverpropNamevaluebinderguardBinder);
    }
        return MethodHandles.lookup().findStatic(JSJavaArrayLinkStrategy.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