Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.codehaus.groovy.runtime.callsite;
 
 
 
 public final class NullCallSite extends AbstractCallSite {
    public NullCallSite(CallSite callSite) {
        super(callSite);
    }
    public final Object call(Object receiverObject[] argsthrows Throwable {
        if (receiver == null) {
            try{
                return InvokerHelper.invokeMethod(NullObject.getNullObject(), args);
            } catch (GroovyRuntimeException gre) {
                throw ScriptBytecodeAdapter.unwrap(gre);
            }
        } else {
            return CallSiteArray.defaultCall(thisreceiverargs);
        }
    }
    
    public Object getProperty(Object receiverthrows Throwable {
        if (receiver == null) {
            try{
                return InvokerHelper.getProperty(NullObject.getNullObject(), );
            } catch (GroovyRuntimeException gre) {
                throw ScriptBytecodeAdapter.unwrap(gre);
            }
        } else {
            return acceptGetProperty(receiver).getProperty(receiver);
        }
    }
New to GrepCode? Check out our FAQ X