All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.oracle.truffle.tools.agentscript.impl.VariablesObjectGen Maven / Gradle / Ivy

The newest version!
// CheckStyle: start generated
package com.oracle.truffle.tools.agentscript.impl;

import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary;
import com.oracle.truffle.api.dsl.GeneratedBy;
import com.oracle.truffle.api.interop.InteropLibrary;
import com.oracle.truffle.api.interop.UnknownIdentifierException;
import com.oracle.truffle.api.interop.UnsupportedMessageException;
import com.oracle.truffle.api.interop.UnsupportedTypeException;
import com.oracle.truffle.api.library.DynamicDispatchLibrary;
import com.oracle.truffle.api.library.LibraryExport;
import com.oracle.truffle.api.library.LibraryFactory;
import com.oracle.truffle.api.nodes.DenyReplace;
import com.oracle.truffle.api.nodes.UnadoptableNode;

@GeneratedBy(VariablesObject.class)
@SuppressWarnings("javadoc")
final class VariablesObjectGen {

    private static final LibraryFactory DYNAMIC_DISPATCH_LIBRARY_ = LibraryFactory.resolve(DynamicDispatchLibrary.class);
    private static final LibraryFactory INTEROP_LIBRARY_ = LibraryFactory.resolve(InteropLibrary.class);

    static  {
        LibraryExport.register(VariablesObject.class, new InteropLibraryExports());
    }

    private VariablesObjectGen() {
    }

    @GeneratedBy(VariablesObject.class)
    private static final class InteropLibraryExports extends LibraryExport {

        private static final Uncached UNCACHED = new Uncached();

        private InteropLibraryExports() {
            super(InteropLibrary.class, VariablesObject.class, false, false, 0);
        }

        @Override
        protected InteropLibrary createUncached(Object receiver) {
            assert receiver instanceof VariablesObject;
            InteropLibrary uncached = InteropLibraryExports.UNCACHED;
            return uncached;
        }

        @Override
        protected InteropLibrary createCached(Object receiver) {
            assert receiver instanceof VariablesObject;
            return new Cached(receiver);
        }

        @GeneratedBy(VariablesObject.class)
        private static final class Cached extends InteropLibrary {

            @Child private InteropLibrary receiverScopeInteropLibrary_;

            protected Cached(Object receiver) {
                VariablesObject castReceiver = ((VariablesObject) receiver) ;
                this.receiverScopeInteropLibrary_ = INTEROP_LIBRARY_.create((castReceiver.scope));
            }

            @Override
            public boolean accepts(Object receiver) {
                assert !(receiver instanceof VariablesObject) || DYNAMIC_DISPATCH_LIBRARY_.getUncached().dispatch(receiver) == null : "Invalid library export. Exported receiver with dynamic dispatch found but not expected.";
                if (!(receiver instanceof VariablesObject)) {
                    return false;
                } else if (!this.receiverScopeInteropLibrary_.accepts((((VariablesObject) receiver).scope))) {
                    return false;
                } else {
                    return true;
                }
            }

            @Override
            public boolean hasMembers(Object receiver) {
                assert receiver instanceof VariablesObject : "Invalid library usage. Library does not accept given receiver.";
                return VariablesObject.hasMembers((((VariablesObject) receiver)));
            }

            /**
             * Debug Info: 
             *   Specialization {@link VariablesObject#getMembers}
             *     Activation probability: 0.16667
             *     With/without class size: 6/0 bytes
             * 
*/ @Override public Object getMembers(Object arg0Value_, boolean arg1Value) throws UnsupportedMessageException { assert arg0Value_ instanceof VariablesObject : "Invalid library usage. Library does not accept given receiver."; VariablesObject arg0Value = ((VariablesObject) arg0Value_); { InteropLibrary interop__ = this.receiverScopeInteropLibrary_; return VariablesObject.getMembers(arg0Value, arg1Value, interop__); } } /** * Debug Info:
             *   Specialization {@link VariablesObject#readMember}
             *     Activation probability: 0.16667
             *     With/without class size: 6/0 bytes
             * 
*/ @Override public Object readMember(Object arg0Value_, String arg1Value) throws UnsupportedMessageException, UnknownIdentifierException { assert arg0Value_ instanceof VariablesObject : "Invalid library usage. Library does not accept given receiver."; VariablesObject arg0Value = ((VariablesObject) arg0Value_); { InteropLibrary interop__ = this.receiverScopeInteropLibrary_; return VariablesObject.readMember(arg0Value, arg1Value, interop__); } } /** * Debug Info:
             *   Specialization {@link VariablesObject#isMemberReadable}
             *     Activation probability: 0.16667
             *     With/without class size: 6/0 bytes
             * 
*/ @Override public boolean isMemberReadable(Object arg0Value_, String arg1Value) { assert arg0Value_ instanceof VariablesObject : "Invalid library usage. Library does not accept given receiver."; VariablesObject arg0Value = ((VariablesObject) arg0Value_); { InteropLibrary interop__ = this.receiverScopeInteropLibrary_; return VariablesObject.isMemberReadable(arg0Value, arg1Value, interop__); } } /** * Debug Info:
             *   Specialization {@link VariablesObject#writeMember}
             *     Activation probability: 0.16667
             *     With/without class size: 6/0 bytes
             * 
*/ @Override public void writeMember(Object arg0Value_, String arg1Value, Object arg2Value) throws UnsupportedMessageException, UnknownIdentifierException, UnsupportedTypeException { assert arg0Value_ instanceof VariablesObject : "Invalid library usage. Library does not accept given receiver."; VariablesObject arg0Value = ((VariablesObject) arg0Value_); { InteropLibrary interop__ = this.receiverScopeInteropLibrary_; VariablesObject.writeMember(arg0Value, arg1Value, arg2Value, interop__); return; } } /** * Debug Info:
             *   Specialization {@link VariablesObject#isMemberModifiable}
             *     Activation probability: 0.16667
             *     With/without class size: 6/0 bytes
             * 
*/ @Override public boolean isMemberModifiable(Object arg0Value_, String arg1Value) { assert arg0Value_ instanceof VariablesObject : "Invalid library usage. Library does not accept given receiver."; VariablesObject arg0Value = ((VariablesObject) arg0Value_); { InteropLibrary interop__ = this.receiverScopeInteropLibrary_; return VariablesObject.isMemberModifiable(arg0Value, arg1Value, interop__); } } /** * Debug Info:
             *   Specialization {@link VariablesObject#isMemberInsertable}
             *     Activation probability: 0.16667
             *     With/without class size: 6/0 bytes
             * 
*/ @Override public boolean isMemberInsertable(Object arg0Value_, String arg1Value) { assert arg0Value_ instanceof VariablesObject : "Invalid library usage. Library does not accept given receiver."; VariablesObject arg0Value = ((VariablesObject) arg0Value_); { InteropLibrary interop__ = this.receiverScopeInteropLibrary_; return VariablesObject.isMemberInsertable(arg0Value, arg1Value, interop__); } } } @GeneratedBy(VariablesObject.class) @DenyReplace private static final class Uncached extends InteropLibrary implements UnadoptableNode { protected Uncached() { } @Override @TruffleBoundary public boolean accepts(Object receiver) { assert !(receiver instanceof VariablesObject) || DYNAMIC_DISPATCH_LIBRARY_.getUncached().dispatch(receiver) == null : "Invalid library export. Exported receiver with dynamic dispatch found but not expected."; return receiver instanceof VariablesObject; } @TruffleBoundary @Override public boolean hasMembers(Object receiver) { // declared: true assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver."; return VariablesObject.hasMembers(((VariablesObject) receiver) ); } @TruffleBoundary @Override public Object getMembers(Object arg0Value_, boolean arg1Value) throws UnsupportedMessageException { // declared: true assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver."; VariablesObject arg0Value = ((VariablesObject) arg0Value_); return VariablesObject.getMembers(arg0Value, arg1Value, INTEROP_LIBRARY_.getUncached((arg0Value.scope))); } @TruffleBoundary @Override public Object readMember(Object arg0Value_, String arg1Value) throws UnknownIdentifierException, UnsupportedMessageException { // declared: true assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver."; VariablesObject arg0Value = ((VariablesObject) arg0Value_); return VariablesObject.readMember(arg0Value, arg1Value, INTEROP_LIBRARY_.getUncached((arg0Value.scope))); } @TruffleBoundary @Override public boolean isMemberReadable(Object arg0Value_, String arg1Value) { // declared: true assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver."; VariablesObject arg0Value = ((VariablesObject) arg0Value_); return VariablesObject.isMemberReadable(arg0Value, arg1Value, INTEROP_LIBRARY_.getUncached((arg0Value.scope))); } @TruffleBoundary @Override public void writeMember(Object arg0Value_, String arg1Value, Object arg2Value) throws UnknownIdentifierException, UnsupportedTypeException, UnsupportedMessageException { // declared: true assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver."; VariablesObject arg0Value = ((VariablesObject) arg0Value_); VariablesObject.writeMember(arg0Value, arg1Value, arg2Value, INTEROP_LIBRARY_.getUncached((arg0Value.scope))); return; } @TruffleBoundary @Override public boolean isMemberModifiable(Object arg0Value_, String arg1Value) { // declared: true assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver."; VariablesObject arg0Value = ((VariablesObject) arg0Value_); return VariablesObject.isMemberModifiable(arg0Value, arg1Value, INTEROP_LIBRARY_.getUncached((arg0Value.scope))); } @TruffleBoundary @Override public boolean isMemberInsertable(Object arg0Value_, String arg1Value) { // declared: true assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver."; VariablesObject arg0Value = ((VariablesObject) arg0Value_); return VariablesObject.isMemberInsertable(arg0Value, arg1Value, INTEROP_LIBRARY_.getUncached((arg0Value.scope))); } } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy