Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package com.oracle.truffle.api.impl;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Map;
import java.util.Set;
import com.oracle.truffle.api.Assumption;
import com.oracle.truffle.api.CallTarget;
import com.oracle.truffle.api.RootCallTarget;
import com.oracle.truffle.api.Truffle;
import com.oracle.truffle.api.TruffleLanguage;
import com.oracle.truffle.api.TruffleLanguage.Env;
import com.oracle.truffle.api.frame.FrameDescriptor;
import com.oracle.truffle.api.frame.MaterializedFrame;
import com.oracle.truffle.api.nodes.Node;
import com.oracle.truffle.api.nodes.RootNode;
import com.oracle.truffle.api.source.Source;
import com.oracle.truffle.api.source.SourceSection;
/**
* Communication between PolyglotEngine, TruffleLanguage API/SPI, and other services.
*/
public abstract class Accessor {
public abstract static class Nodes {
@SuppressWarnings("rawtypes")
public abstract Class extends TruffleLanguage> findLanguage(RootNode n);
public abstract boolean isInstrumentable(RootNode rootNode);
public abstract boolean isTaggedWith(Node node, Class> tag);
}
public abstract static class DebugSupport {
public abstract Assumption assumeNoDebugger();
public abstract void executionStarted(Object vm, int currentDepth, Object[] debuggerHolder, Source s);
public abstract void executionEnded(Object vm, Object[] debuggerHolder);
public abstract void executionSourceSection(SourceSection ss);
}
public abstract static class EngineSupport {
public static final int EXECUTION_EVENT = 1;
public static final int SUSPENDED_EVENT = 2;
public abstract FindContextNode createFindContextNode(TruffleLanguage lang);
@SuppressWarnings("rawtypes")
public abstract Env findEnv(Object vm, Class extends TruffleLanguage> languageClass);
@SuppressWarnings("rawtypes")
public abstract Env findEnv(Class extends TruffleLanguage> languageClass);
@SuppressWarnings("rawtypes")
public abstract TruffleLanguage> findLanguageImpl(Object known, Class extends TruffleLanguage> languageClass, String mimeType);
public abstract Object getInstrumentationHandler(Object vm);
public abstract Object getInstrumenter(Object vm);
public abstract Object importSymbol(Object vm, TruffleLanguage> queryingLang, String globalName);
public abstract void dispatchEvent(Object vm, Object event, int type);
public abstract boolean isMimeTypeSupported(Object vm, String mimeType);
public abstract void registerDebugger(Object vm, Object debugger);
}
public abstract static class LanguageSupport {
public abstract Env attachEnv(Object vm, TruffleLanguage> language, OutputStream stdOut, OutputStream stdErr, InputStream stdIn, Object instrumenter, Map config);
public abstract Object eval(TruffleLanguage> l, Source s, Map