@Specialization void doObject(Object[] array, int index, Object value) { array[index] = value; } }
@Specialization protected Object accessWithTarget(com.oracle.truffle.api.vm.DefaultScope.VariableNamesObject varNames) { return access(varNames); } private static final class HAS_SIZERootNode extends RootNode {
@Specialization protected Object accessWithTarget(com.oracle.truffle.api.metadata.DefaultScopeVariables.VariablesMapObject varMap, java.lang.String name) { return access(varMap, name); } private static final class READRootNode extends RootNode {
@Specialization protected Object accessWithTarget(com.oracle.truffle.api.interop.java.JavaFunctionObject function, java.lang.Object[] args) { return access(function, args); } private static final class EXECUTERootNode extends RootNode {
@Specialization protected Object accessWithTarget(com.oracle.truffle.api.interop.java.JavaObject receiver, java.lang.Object[] args) { return access(receiver, args); } private static final class EXECUTERootNode extends RootNode {
@Specialization protected Object accessWithTarget(com.oracle.truffle.api.interop.java.JavaObject object, java.lang.Number index) { return access(object, index); } @Specialization
@Specialization protected Object accessWithTarget(com.oracle.truffle.api.interop.java.JavaObject receiver) { return access(receiver); } private static final class IS_EXECUTABLERootNode extends RootNode {
@Specialization protected Object accessWithTarget(com.oracle.truffle.api.interop.java.JavaObject receiver) { return access(receiver); } private static final class GET_SIZERootNode extends RootNode {
@Specialization protected Object accessWithTarget(com.oracle.truffle.api.interop.java.JavaObject receiver) { return access(receiver); } private static final class IS_INSTANTIABLERootNode extends RootNode {
@Specialization protected Object accessWithTarget(com.oracle.truffle.api.vm.HostLanguage.ClassNamesObject varNames, int index) { return access(varNames, index); } private static final class READRootNode extends RootNode {
@Specialization(replaces = "doCached") static boolean doUncached(JavaMethodDesc method, int argsLength) { return JavaInteropReflect.isApplicableByArity(method, argsLength); } }
@Specialization protected Object accessWithTarget(com.oracle.truffle.api.metadata.DefaultScopeVariables.VariableNamesObject varNames, int index) { return access(varNames, index); } private static final class READRootNode extends RootNode {
@Specialization protected Object accessWithTarget(com.oracle.truffle.polyglot.HostLanguage.TopScopeObject ts) { return access(ts); } private static final class HAS_KEYSRootNode extends RootNode {
@Specialization(replaces = "doCached") static Class<?> doUncached(Class<?> clazz, String name) { return HostInteropReflect.findInnerClass(clazz, name); } }
@Specialization protected Object accessWithTarget(com.oracle.truffle.polyglot.DefaultScope.ArgumentsArrayObject argsArr, int index, java.lang.Object value) { return access(argsArr, index, value); } private static final class WRITERootNode extends RootNode {
@Specialization protected Object accessWithTarget(com.oracle.truffle.polyglot.DefaultScope.VariablesMapObject varMap, java.lang.String name, java.lang.Object value) { return access(varMap, name, value); } private static final class WRITERootNode extends RootNode {
@Specialization protected Object accessWithTarget(com.oracle.truffle.polyglot.DefaultScope.VariablesMapObject varMap) { return access(varMap); } private static final class HAS_KEYSRootNode extends RootNode {
@Specialization protected Object accessWithTarget(com.oracle.truffle.polyglot.DefaultScope.VariablesMapObject varMap) { return access(varMap); } private static final class KEYSRootNode extends RootNode {
@Specialization protected Object accessWithTarget(com.oracle.truffle.polyglot.DefaultScope.VariableNamesObject varNames) { return access(varNames); } private static final class HAS_SIZERootNode extends RootNode {
@Specialization protected Object accessWithTarget(com.oracle.truffle.polyglot.HostObject receiver, boolean includeInternal) { return access(receiver, includeInternal); } private static final class KEYSRootNode extends RootNode {