Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.codehaus.groovy.runtime.callsite;
 
Created by IntelliJ IDEA. User: applerestore Date: May 21, 2008 Time: 10:37:37 AM To change this template use File | Settings | File Templates.
    private final MetaClass metaClass;
    private final MetaProperty effective;
    public GetEffectivePogoPropertySite(CallSite siteMetaClass metaClassMetaProperty effective) {
        super(site);
        this. = metaClass;
        this. = effective;
    }
    public final Object callGetProperty (Object receiverthrows Throwable {
        if (GroovyCategorySupport.hasCategoryInCurrentThread() || !(receiver instanceof GroovyObject) || ((GroovyObjectreceiver).getMetaClass() != ) {
            return createGetPropertySite(receiver).getProperty(receiver);
        } else {
            try {
                return .getProperty(receiver);
            } catch (GroovyRuntimeException gre) {
                throw ScriptBytecodeAdapter.unwrap(gre);
            }
        }
    }
    public final CallSite acceptGetProperty(Object receiver) {
        if (GroovyCategorySupport.hasCategoryInCurrentThread() || !(receiver instanceof GroovyObject) || ((GroovyObject)receiver).getMetaClass() != ) {
            return createGetPropertySite(receiver);
        } else {
            return this;
        }
    }
    public final Object callGroovyObjectGetProperty (Object receiverthrows Throwable {
        if (GroovyCategorySupport.hasCategoryInCurrentThread() || !(receiver instanceof GroovyObject) || ((GroovyObjectreceiver).getMetaClass() != ) {
            return createGetPropertySite(receiver).getProperty(receiver);
        } else {
            try {
                return .getProperty(receiver);
            } catch (GroovyRuntimeException gre) {
                throw ScriptBytecodeAdapter.unwrap(gre);
            }
        }
    }
    public final CallSite acceptGroovyObjectGetProperty(Object receiver) {
        if (GroovyCategorySupport.hasCategoryInCurrentThread() || !(receiver instanceof GroovyObject) || ((GroovyObject)receiver).getMetaClass() != ) {
            return createGroovyObjectGetPropertySite(receiver);
        } else {
            return this;
        }
    }
    public final Object getProperty(Object receiverthrows Throwable {
        try {
            return .getProperty(receiver);
        } catch (GroovyRuntimeException gre) {
            throw ScriptBytecodeAdapter.unwrap(gre);
        }
    }
New to GrepCode? Check out our FAQ X