com.oracle.truffle.api.metadata.VariablesMapMessageResolutionForeign Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of truffle-api Show documentation
Show all versions of truffle-api Show documentation
Truffle is a multi-language framework for executing dynamic languages
that achieves high performance when combined with Graal.
package com.oracle.truffle.api.metadata;
import com.oracle.truffle.api.interop.ForeignAccess.Factory26;
import com.oracle.truffle.api.interop.ForeignAccess.Factory;
import com.oracle.truffle.api.interop.Message;
import com.oracle.truffle.api.interop.ForeignAccess;
import com.oracle.truffle.api.interop.TruffleObject;
import com.oracle.truffle.api.CallTarget;
import com.oracle.truffle.api.Truffle;
import com.oracle.truffle.api.nodes.RootNode;
/**
* This foreign access factory is generated by {@link com.oracle.truffle.api.metadata.DefaultScopeVariables.VariablesMapObject.VariablesMapMessageResolution}.
* You are supposed to use it for the receiver object {@link com.oracle.truffle.api.metadata.DefaultScopeVariables.VariablesMapObject}.
*/
final class VariablesMapMessageResolutionForeign implements Factory26, Factory {
public static final ForeignAccess ACCESS = ForeignAccess.create(new VariablesMapMessageResolutionForeign(), null);
@Deprecated public static ForeignAccess createAccess() { return ForeignAccess.create(new VariablesMapMessageResolutionForeign(), null); }
private VariablesMapMessageResolutionForeign() { }
@Override
public boolean canHandle(TruffleObject obj) {
return com.oracle.truffle.api.metadata.DefaultScopeVariables.VariablesMapObject.isInstance(obj);
}
@Override
public CallTarget accessIsNull() {
return Truffle.getRuntime().createCallTarget(RootNode.createConstantNode(false));
}
@Override
public CallTarget accessIsExecutable() {
return Truffle.getRuntime().createCallTarget(RootNode.createConstantNode(false));
}
@Override
public CallTarget accessIsBoxed() {
return Truffle.getRuntime().createCallTarget(RootNode.createConstantNode(false));
}
@Override
public CallTarget accessHasSize() {
return Truffle.getRuntime().createCallTarget(RootNode.createConstantNode(false));
}
@Override
public CallTarget accessGetSize() {
return null;
}
@Override
public CallTarget accessUnbox() {
return null;
}
@Override
public CallTarget accessRead() {
return com.oracle.truffle.api.Truffle.getRuntime().createCallTarget(com.oracle.truffle.api.metadata.VarsMapReadNodeSub.createRoot());
}
@Override
public CallTarget accessWrite() {
return com.oracle.truffle.api.Truffle.getRuntime().createCallTarget(com.oracle.truffle.api.metadata.VarsMapWriteNodeSub.createRoot());
}
@Override
public CallTarget accessExecute(int argumentsLength) {
return null;
}
@Override
public CallTarget accessInvoke(int argumentsLength) {
return null;
}
@Override
public CallTarget accessNew(int argumentsLength) {
return null;
}
@Override
public CallTarget accessKeyInfo() {
return null;
}
@Override
public CallTarget accessKeys() {
return com.oracle.truffle.api.Truffle.getRuntime().createCallTarget(com.oracle.truffle.api.metadata.VarsMapKeysNodeSub.createRoot());
}
@Override
public CallTarget accessIsPointer() {
return Truffle.getRuntime().createCallTarget(RootNode.createConstantNode(false));
}
@Override
public CallTarget accessAsPointer() {
return null;
}
@Override
public CallTarget accessToNative() {
return null;
}
@Override
public CallTarget accessMessage(Message unknown) {
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy