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

com.oracle.truffle.sl.runtime.SLObjectGen Maven / Gradle / Ivy

The newest version!
// CheckStyle: start generated
package com.oracle.truffle.sl.runtime;

import com.oracle.truffle.api.CompilerDirectives;
import com.oracle.truffle.api.TruffleLanguage;
import com.oracle.truffle.api.CompilerDirectives.CompilationFinal;
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;
import com.oracle.truffle.api.object.DynamicObjectLibrary;
import com.oracle.truffle.api.strings.TruffleString.FromJavaStringNode;
import com.oracle.truffle.api.utilities.TriState;
import com.oracle.truffle.sl.runtime.SLObject.IsIdenticalOrUndefined;
import java.lang.invoke.VarHandle;

@GeneratedBy(SLObject.class)
@SuppressWarnings({"javadoc", "unused"})
final class SLObjectGen {

    private static final LibraryFactory DYNAMIC_DISPATCH_LIBRARY_ = LibraryFactory.resolve(DynamicDispatchLibrary.class);
    private static final LibraryFactory DYNAMIC_OBJECT_LIBRARY_ = LibraryFactory.resolve(DynamicObjectLibrary.class);

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

    private SLObjectGen() {
    }

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

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

        @Override
        protected InteropLibrary createUncached(Object receiver) {
            assert receiver instanceof SLObject;
            InteropLibrary uncached = new Uncached();
            return uncached;
        }

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

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

            @Child private DynamicObjectLibrary receiverDynamicObjectLibrary_;
            /**
             * State Info: 
             *   0: SpecializationActive {@link IsIdenticalOrUndefined#doSLObject}
             *   1: SpecializationActive {@link IsIdenticalOrUndefined#doOther}
             *   2: SpecializationActive {@link SLObject#removeMember(SLObject, String, FromJavaStringNode, DynamicObjectLibrary)}
             *   3: SpecializationActive {@link SLObject#existsMember(SLObject, String, FromJavaStringNode, DynamicObjectLibrary)}
             *   4: SpecializationActive {@link SLObject#readMember(SLObject, String, FromJavaStringNode, DynamicObjectLibrary)}
             *   5: SpecializationActive {@link SLObject#writeMember(SLObject, String, Object, FromJavaStringNode, DynamicObjectLibrary)}
             * 
*/ @CompilationFinal private int state_0_; /** * Source Info:
             *   Specialization: {@link SLObject#removeMember}
             *   Parameter: {@link FromJavaStringNode} fromJavaStringNode
*/ @Child private FromJavaStringNode fromJavaStringNode; protected Cached(Object receiver) { SLObject castReceiver = ((SLObject) receiver) ; this.receiverDynamicObjectLibrary_ = DYNAMIC_OBJECT_LIBRARY_.create((castReceiver)); } @Override public boolean accepts(Object receiver) { assert !(receiver instanceof SLObject) || DYNAMIC_DISPATCH_LIBRARY_.getUncached().dispatch(receiver) == null : "Invalid library export. Exported receiver with dynamic dispatch found but not expected."; if (!(receiver instanceof SLObject)) { return false; } else if (!this.receiverDynamicObjectLibrary_.accepts((receiver))) { return false; } else { return true; } } @SuppressWarnings("static-method") private boolean isIdenticalOrUndefinedFallbackGuard_(int state_0, SLObject arg0Value, Object arg1Value) { if (!((state_0 & 0b1) != 0 /* is SpecializationActive[SLObject.IsIdenticalOrUndefined.doSLObject(SLObject, SLObject)] */) && arg1Value instanceof SLObject) { return false; } return true; } /** * Debug Info:
             *   Specialization {@link IsIdenticalOrUndefined#doSLObject}
             *     Activation probability: 0.07222
             *     With/without class size: 4/0 bytes
             *   Specialization {@link IsIdenticalOrUndefined#doOther}
             *     Activation probability: 0.03889
             *     With/without class size: 4/0 bytes
             * 
*/ @Override protected TriState isIdenticalOrUndefined(Object arg0Value_, Object arg1Value) { assert arg0Value_ instanceof SLObject : "Invalid library usage. Library does not accept given receiver."; assert assertAdopted(); SLObject arg0Value = ((SLObject) arg0Value_); int state_0 = this.state_0_; if ((state_0 & 0b11) != 0 /* is SpecializationActive[SLObject.IsIdenticalOrUndefined.doSLObject(SLObject, SLObject)] || SpecializationActive[SLObject.IsIdenticalOrUndefined.doOther(SLObject, Object)] */) { if ((state_0 & 0b1) != 0 /* is SpecializationActive[SLObject.IsIdenticalOrUndefined.doSLObject(SLObject, SLObject)] */ && arg1Value instanceof SLObject) { SLObject arg1Value_ = (SLObject) arg1Value; return IsIdenticalOrUndefined.doSLObject(arg0Value, arg1Value_); } if ((state_0 & 0b10) != 0 /* is SpecializationActive[SLObject.IsIdenticalOrUndefined.doOther(SLObject, Object)] */) { if (isIdenticalOrUndefinedFallbackGuard_(state_0, arg0Value, arg1Value)) { return IsIdenticalOrUndefined.doOther(arg0Value, arg1Value); } } } CompilerDirectives.transferToInterpreterAndInvalidate(); return isIdenticalOrUndefinedAndSpecialize(arg0Value, arg1Value); } private TriState isIdenticalOrUndefinedAndSpecialize(SLObject arg0Value, Object arg1Value) { int state_0 = this.state_0_; if (arg1Value instanceof SLObject) { SLObject arg1Value_ = (SLObject) arg1Value; state_0 = state_0 | 0b1 /* add SpecializationActive[SLObject.IsIdenticalOrUndefined.doSLObject(SLObject, SLObject)] */; this.state_0_ = state_0; return IsIdenticalOrUndefined.doSLObject(arg0Value, arg1Value_); } state_0 = state_0 | 0b10 /* add SpecializationActive[SLObject.IsIdenticalOrUndefined.doOther(SLObject, Object)] */; this.state_0_ = state_0; return IsIdenticalOrUndefined.doOther(arg0Value, arg1Value); } @Override public boolean hasLanguage(Object receiver) { assert receiver instanceof SLObject : "Invalid library usage. Library does not accept given receiver."; assert assertAdopted(); return (((SLObject) receiver)).hasLanguage(); } @Override public Class> getLanguage(Object receiver) throws UnsupportedMessageException { assert receiver instanceof SLObject : "Invalid library usage. Library does not accept given receiver."; assert assertAdopted(); return (((SLObject) receiver)).getLanguage(); } @TruffleBoundary @Override public int identityHashCode(Object receiver) throws UnsupportedMessageException { assert receiver instanceof SLObject : "Invalid library usage. Library does not accept given receiver."; assert assertAdopted(); return (((SLObject) receiver)).identityHashCode(); } @Override public boolean hasMetaObject(Object receiver) { assert receiver instanceof SLObject : "Invalid library usage. Library does not accept given receiver."; assert assertAdopted(); return (((SLObject) receiver)).hasMetaObject(); } @Override public Object getMetaObject(Object receiver) throws UnsupportedMessageException { assert receiver instanceof SLObject : "Invalid library usage. Library does not accept given receiver."; assert assertAdopted(); return (((SLObject) receiver)).getMetaObject(); } @TruffleBoundary @Override public Object toDisplayString(Object receiver, boolean allowSideEffects) { assert receiver instanceof SLObject : "Invalid library usage. Library does not accept given receiver."; assert assertAdopted(); return (((SLObject) receiver)).toDisplayString(allowSideEffects); } @Override public boolean hasMembers(Object receiver) { assert receiver instanceof SLObject : "Invalid library usage. Library does not accept given receiver."; assert assertAdopted(); return (((SLObject) receiver)).hasMembers(); } /** * Debug Info:
             *   Specialization {@link SLObject#removeMember(SLObject, String, FromJavaStringNode, DynamicObjectLibrary)}
             *     Activation probability: 0.11111
             *     With/without class size: 5/0 bytes
             * 
*/ @Override public void removeMember(Object arg0Value_, String arg1Value) throws UnsupportedMessageException, UnknownIdentifierException { assert arg0Value_ instanceof SLObject : "Invalid library usage. Library does not accept given receiver."; assert assertAdopted(); SLObject arg0Value = ((SLObject) arg0Value_); int state_0 = this.state_0_; if ((state_0 & 0b100) != 0 /* is SpecializationActive[SLObject.removeMember(SLObject, String, FromJavaStringNode, DynamicObjectLibrary)] */) { { FromJavaStringNode fromJavaStringNode_ = this.fromJavaStringNode; if (fromJavaStringNode_ != null) { DynamicObjectLibrary objectLibrary__ = this.receiverDynamicObjectLibrary_; arg0Value.removeMember(arg1Value, fromJavaStringNode_, objectLibrary__); return; } } } CompilerDirectives.transferToInterpreterAndInvalidate(); removeMemberNode_AndSpecialize(arg0Value, arg1Value); return; } private void removeMemberNode_AndSpecialize(SLObject arg0Value, String arg1Value) throws UnknownIdentifierException { int state_0 = this.state_0_; { DynamicObjectLibrary objectLibrary__ = null; FromJavaStringNode fromJavaStringNode_; FromJavaStringNode fromJavaStringNode__shared = this.fromJavaStringNode; if (fromJavaStringNode__shared != null) { fromJavaStringNode_ = fromJavaStringNode__shared; } else { fromJavaStringNode_ = this.insert((FromJavaStringNode.create())); if (fromJavaStringNode_ == null) { throw new IllegalStateException("A specialization returned a default value for a cached initializer. Default values are not supported for shared cached initializers because the default value is reserved for the uninitialized state."); } } if (this.fromJavaStringNode == null) { VarHandle.storeStoreFence(); this.fromJavaStringNode = fromJavaStringNode_; } objectLibrary__ = this.receiverDynamicObjectLibrary_; state_0 = state_0 | 0b100 /* add SpecializationActive[SLObject.removeMember(SLObject, String, FromJavaStringNode, DynamicObjectLibrary)] */; this.state_0_ = state_0; arg0Value.removeMember(arg1Value, fromJavaStringNode_, objectLibrary__); return; } } /** * Debug Info:
             *   Specialization {@link SLObject#getMembers(SLObject, boolean, DynamicObjectLibrary)}
             *     Activation probability: 0.11111
             *     With/without class size: 5/0 bytes
             * 
*/ @Override public Object getMembers(Object arg0Value_, boolean arg1Value) throws UnsupportedMessageException { assert arg0Value_ instanceof SLObject : "Invalid library usage. Library does not accept given receiver."; assert assertAdopted(); SLObject arg0Value = ((SLObject) arg0Value_); { DynamicObjectLibrary objectLibrary__ = this.receiverDynamicObjectLibrary_; return arg0Value.getMembers(arg1Value, objectLibrary__); } } /** * Debug Info:
             *   Specialization {@link SLObject#existsMember(SLObject, String, FromJavaStringNode, DynamicObjectLibrary)}
             *     Activation probability: 0.11111
             *     With/without class size: 5/0 bytes
             * 
*/ @Override public boolean isMemberReadable(Object arg0Value_, String arg1Value) { assert arg0Value_ instanceof SLObject : "Invalid library usage. Library does not accept given receiver."; assert assertAdopted(); SLObject arg0Value = ((SLObject) arg0Value_); int state_0 = this.state_0_; if ((state_0 & 0b1000) != 0 /* is SpecializationActive[SLObject.existsMember(SLObject, String, FromJavaStringNode, DynamicObjectLibrary)] */) { { FromJavaStringNode fromJavaStringNode_ = this.fromJavaStringNode; if (fromJavaStringNode_ != null) { DynamicObjectLibrary objectLibrary__ = this.receiverDynamicObjectLibrary_; return arg0Value.existsMember(arg1Value, fromJavaStringNode_, objectLibrary__); } } } CompilerDirectives.transferToInterpreterAndInvalidate(); return existsMemberNode_AndSpecialize(arg0Value, arg1Value); } private boolean existsMemberNode_AndSpecialize(SLObject arg0Value, String arg1Value) { int state_0 = this.state_0_; { DynamicObjectLibrary objectLibrary__ = null; FromJavaStringNode fromJavaStringNode_; FromJavaStringNode fromJavaStringNode__shared = this.fromJavaStringNode; if (fromJavaStringNode__shared != null) { fromJavaStringNode_ = fromJavaStringNode__shared; } else { fromJavaStringNode_ = this.insert((FromJavaStringNode.create())); if (fromJavaStringNode_ == null) { throw new IllegalStateException("A specialization returned a default value for a cached initializer. Default values are not supported for shared cached initializers because the default value is reserved for the uninitialized state."); } } if (this.fromJavaStringNode == null) { VarHandle.storeStoreFence(); this.fromJavaStringNode = fromJavaStringNode_; } objectLibrary__ = this.receiverDynamicObjectLibrary_; state_0 = state_0 | 0b1000 /* add SpecializationActive[SLObject.existsMember(SLObject, String, FromJavaStringNode, DynamicObjectLibrary)] */; this.state_0_ = state_0; return arg0Value.existsMember(arg1Value, fromJavaStringNode_, objectLibrary__); } } /** * Debug Info:
             *   Specialization {@link SLObject#existsMember(SLObject, String, FromJavaStringNode, DynamicObjectLibrary)}
             *     Activation probability: 0.11111
             *     With/without class size: 5/0 bytes
             * 
*/ @Override public boolean isMemberModifiable(Object arg0Value_, String arg1Value) { assert arg0Value_ instanceof SLObject : "Invalid library usage. Library does not accept given receiver."; assert assertAdopted(); SLObject arg0Value = ((SLObject) arg0Value_); int state_0 = this.state_0_; if ((state_0 & 0b1000) != 0 /* is SpecializationActive[SLObject.existsMember(SLObject, String, FromJavaStringNode, DynamicObjectLibrary)] */) { { FromJavaStringNode fromJavaStringNode_ = this.fromJavaStringNode; if (fromJavaStringNode_ != null) { DynamicObjectLibrary objectLibrary__ = this.receiverDynamicObjectLibrary_; return arg0Value.existsMember(arg1Value, fromJavaStringNode_, objectLibrary__); } } } CompilerDirectives.transferToInterpreterAndInvalidate(); return existsMemberNode_AndSpecialize(arg0Value, arg1Value); } /** * Debug Info:
             *   Specialization {@link SLObject#existsMember(SLObject, String, FromJavaStringNode, DynamicObjectLibrary)}
             *     Activation probability: 0.11111
             *     With/without class size: 5/0 bytes
             * 
*/ @Override public boolean isMemberRemovable(Object arg0Value_, String arg1Value) { assert arg0Value_ instanceof SLObject : "Invalid library usage. Library does not accept given receiver."; assert assertAdopted(); SLObject arg0Value = ((SLObject) arg0Value_); int state_0 = this.state_0_; if ((state_0 & 0b1000) != 0 /* is SpecializationActive[SLObject.existsMember(SLObject, String, FromJavaStringNode, DynamicObjectLibrary)] */) { { FromJavaStringNode fromJavaStringNode_ = this.fromJavaStringNode; if (fromJavaStringNode_ != null) { DynamicObjectLibrary objectLibrary__ = this.receiverDynamicObjectLibrary_; return arg0Value.existsMember(arg1Value, fromJavaStringNode_, objectLibrary__); } } } CompilerDirectives.transferToInterpreterAndInvalidate(); return existsMemberNode_AndSpecialize(arg0Value, arg1Value); } /** * Debug Info:
             *   Specialization {@link SLObject#isMemberInsertable(SLObject, String, InteropLibrary)}
             *     Activation probability: 0.11111
             *     With/without class size: 5/0 bytes
             * 
*/ @Override public boolean isMemberInsertable(Object arg0Value_, String arg1Value) { assert arg0Value_ instanceof SLObject : "Invalid library usage. Library does not accept given receiver."; assert assertAdopted(); SLObject arg0Value = ((SLObject) arg0Value_); { InteropLibrary receivers__ = (this); return arg0Value.isMemberInsertable(arg1Value, receivers__); } } /** * Debug Info:
             *   Specialization {@link SLObject#readMember(SLObject, String, FromJavaStringNode, DynamicObjectLibrary)}
             *     Activation probability: 0.11111
             *     With/without class size: 5/0 bytes
             * 
*/ @Override public Object readMember(Object arg0Value_, String arg1Value) throws UnsupportedMessageException, UnknownIdentifierException { assert arg0Value_ instanceof SLObject : "Invalid library usage. Library does not accept given receiver."; assert assertAdopted(); SLObject arg0Value = ((SLObject) arg0Value_); int state_0 = this.state_0_; if ((state_0 & 0b10000) != 0 /* is SpecializationActive[SLObject.readMember(SLObject, String, FromJavaStringNode, DynamicObjectLibrary)] */) { { FromJavaStringNode fromJavaStringNode_ = this.fromJavaStringNode; if (fromJavaStringNode_ != null) { DynamicObjectLibrary objectLibrary__ = this.receiverDynamicObjectLibrary_; return arg0Value.readMember(arg1Value, fromJavaStringNode_, objectLibrary__); } } } CompilerDirectives.transferToInterpreterAndInvalidate(); return readMemberNode_AndSpecialize(arg0Value, arg1Value); } private Object readMemberNode_AndSpecialize(SLObject arg0Value, String arg1Value) throws UnknownIdentifierException { int state_0 = this.state_0_; { DynamicObjectLibrary objectLibrary__ = null; FromJavaStringNode fromJavaStringNode_; FromJavaStringNode fromJavaStringNode__shared = this.fromJavaStringNode; if (fromJavaStringNode__shared != null) { fromJavaStringNode_ = fromJavaStringNode__shared; } else { fromJavaStringNode_ = this.insert((FromJavaStringNode.create())); if (fromJavaStringNode_ == null) { throw new IllegalStateException("A specialization returned a default value for a cached initializer. Default values are not supported for shared cached initializers because the default value is reserved for the uninitialized state."); } } if (this.fromJavaStringNode == null) { VarHandle.storeStoreFence(); this.fromJavaStringNode = fromJavaStringNode_; } objectLibrary__ = this.receiverDynamicObjectLibrary_; state_0 = state_0 | 0b10000 /* add SpecializationActive[SLObject.readMember(SLObject, String, FromJavaStringNode, DynamicObjectLibrary)] */; this.state_0_ = state_0; return arg0Value.readMember(arg1Value, fromJavaStringNode_, objectLibrary__); } } /** * Debug Info:
             *   Specialization {@link SLObject#writeMember(SLObject, String, Object, FromJavaStringNode, DynamicObjectLibrary)}
             *     Activation probability: 0.11111
             *     With/without class size: 5/0 bytes
             * 
*/ @Override public void writeMember(Object arg0Value_, String arg1Value, Object arg2Value) throws UnsupportedMessageException, UnknownIdentifierException, UnsupportedTypeException { assert arg0Value_ instanceof SLObject : "Invalid library usage. Library does not accept given receiver."; assert assertAdopted(); SLObject arg0Value = ((SLObject) arg0Value_); int state_0 = this.state_0_; if ((state_0 & 0b100000) != 0 /* is SpecializationActive[SLObject.writeMember(SLObject, String, Object, FromJavaStringNode, DynamicObjectLibrary)] */) { { FromJavaStringNode fromJavaStringNode_ = this.fromJavaStringNode; if (fromJavaStringNode_ != null) { DynamicObjectLibrary objectLibrary__ = this.receiverDynamicObjectLibrary_; arg0Value.writeMember(arg1Value, arg2Value, fromJavaStringNode_, objectLibrary__); return; } } } CompilerDirectives.transferToInterpreterAndInvalidate(); writeMemberNode_AndSpecialize(arg0Value, arg1Value, arg2Value); return; } private void writeMemberNode_AndSpecialize(SLObject arg0Value, String arg1Value, Object arg2Value) { int state_0 = this.state_0_; { DynamicObjectLibrary objectLibrary__ = null; FromJavaStringNode fromJavaStringNode_; FromJavaStringNode fromJavaStringNode__shared = this.fromJavaStringNode; if (fromJavaStringNode__shared != null) { fromJavaStringNode_ = fromJavaStringNode__shared; } else { fromJavaStringNode_ = this.insert((FromJavaStringNode.create())); if (fromJavaStringNode_ == null) { throw new IllegalStateException("A specialization returned a default value for a cached initializer. Default values are not supported for shared cached initializers because the default value is reserved for the uninitialized state."); } } if (this.fromJavaStringNode == null) { VarHandle.storeStoreFence(); this.fromJavaStringNode = fromJavaStringNode_; } objectLibrary__ = this.receiverDynamicObjectLibrary_; state_0 = state_0 | 0b100000 /* add SpecializationActive[SLObject.writeMember(SLObject, String, Object, FromJavaStringNode, DynamicObjectLibrary)] */; this.state_0_ = state_0; arg0Value.writeMember(arg1Value, arg2Value, fromJavaStringNode_, objectLibrary__); return; } } } @GeneratedBy(SLObject.class) @DenyReplace private static final class Uncached extends InteropLibrary implements UnadoptableNode { protected Uncached() { } @Override @TruffleBoundary public boolean accepts(Object receiver) { assert !(receiver instanceof SLObject) || DYNAMIC_DISPATCH_LIBRARY_.getUncached().dispatch(receiver) == null : "Invalid library export. Exported receiver with dynamic dispatch found but not expected."; return receiver instanceof SLObject; } @TruffleBoundary @Override public TriState isIdenticalOrUndefined(Object arg0Value_, Object arg1Value) { // declared: true assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver."; SLObject arg0Value = ((SLObject) arg0Value_); if (arg1Value instanceof SLObject) { SLObject arg1Value_ = (SLObject) arg1Value; return IsIdenticalOrUndefined.doSLObject(arg0Value, arg1Value_); } return IsIdenticalOrUndefined.doOther(arg0Value, arg1Value); } @TruffleBoundary @Override public boolean hasLanguage(Object receiver) { // declared: true assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver."; return ((SLObject) receiver) .hasLanguage(); } @TruffleBoundary @Override public Class> getLanguage(Object receiver) throws UnsupportedMessageException { // declared: true assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver."; return ((SLObject) receiver) .getLanguage(); } @TruffleBoundary @Override public int identityHashCode(Object receiver) throws UnsupportedMessageException { // declared: true assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver."; return ((SLObject) receiver) .identityHashCode(); } @TruffleBoundary @Override public boolean hasMetaObject(Object receiver) { // declared: true assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver."; return ((SLObject) receiver) .hasMetaObject(); } @TruffleBoundary @Override public Object getMetaObject(Object receiver) throws UnsupportedMessageException { // declared: true assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver."; return ((SLObject) receiver) .getMetaObject(); } @TruffleBoundary @Override public Object toDisplayString(Object receiver, boolean allowSideEffects) { // declared: true assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver."; return ((SLObject) receiver) .toDisplayString(allowSideEffects); } @TruffleBoundary @Override public boolean hasMembers(Object receiver) { // declared: true assert this.accepts(receiver) : "Invalid library usage. Library does not accept given receiver."; return ((SLObject) receiver) .hasMembers(); } @TruffleBoundary @Override public void removeMember(Object arg0Value_, String arg1Value) throws UnknownIdentifierException { // declared: true assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver."; SLObject arg0Value = ((SLObject) arg0Value_); arg0Value.removeMember(arg1Value, (FromJavaStringNode.getUncached()), DYNAMIC_OBJECT_LIBRARY_.getUncached((arg0Value))); return; } @TruffleBoundary @Override public Object getMembers(Object arg0Value_, boolean arg1Value) { // declared: true assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver."; SLObject arg0Value = ((SLObject) arg0Value_); return arg0Value.getMembers(arg1Value, DYNAMIC_OBJECT_LIBRARY_.getUncached((arg0Value))); } @TruffleBoundary @Override public boolean isMemberReadable(Object arg0Value_, String arg1Value) { // declared: true assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver."; SLObject arg0Value = ((SLObject) arg0Value_); return arg0Value.existsMember(arg1Value, (FromJavaStringNode.getUncached()), DYNAMIC_OBJECT_LIBRARY_.getUncached((arg0Value))); } @TruffleBoundary @Override public boolean isMemberModifiable(Object arg0Value_, String arg1Value) { // declared: true assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver."; SLObject arg0Value = ((SLObject) arg0Value_); return arg0Value.existsMember(arg1Value, (FromJavaStringNode.getUncached()), DYNAMIC_OBJECT_LIBRARY_.getUncached((arg0Value))); } @TruffleBoundary @Override public boolean isMemberRemovable(Object arg0Value_, String arg1Value) { // declared: true assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver."; SLObject arg0Value = ((SLObject) arg0Value_); return arg0Value.existsMember(arg1Value, (FromJavaStringNode.getUncached()), DYNAMIC_OBJECT_LIBRARY_.getUncached((arg0Value))); } @TruffleBoundary @Override public boolean isMemberInsertable(Object arg0Value_, String arg1Value) { // declared: true assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver."; SLObject arg0Value = ((SLObject) arg0Value_); return arg0Value.isMemberInsertable(arg1Value, (this)); } @TruffleBoundary @Override public Object readMember(Object arg0Value_, String arg1Value) throws UnknownIdentifierException { // declared: true assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver."; SLObject arg0Value = ((SLObject) arg0Value_); return arg0Value.readMember(arg1Value, (FromJavaStringNode.getUncached()), DYNAMIC_OBJECT_LIBRARY_.getUncached((arg0Value))); } @TruffleBoundary @Override public void writeMember(Object arg0Value_, String arg1Value, Object arg2Value) { // declared: true assert this.accepts(arg0Value_) : "Invalid library usage. Library does not accept given receiver."; SLObject arg0Value = ((SLObject) arg0Value_); arg0Value.writeMember(arg1Value, arg2Value, (FromJavaStringNode.getUncached()), DYNAMIC_OBJECT_LIBRARY_.getUncached((arg0Value))); return; } } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy