public class RubyContext
extends com.oracle.truffle.api.ExecutionContext
| Constructor and Description |
|---|
RubyContext(Ruby runtime) |
public RubyContext(Ruby runtime)
public com.oracle.truffle.api.object.Shape getEmptyShape()
public static String checkInstanceVariableName(RubyContext context, String name, RubyNode currentNode)
public static String checkClassVariableName(RubyContext context, String name, RubyNode currentNode)
public void load(com.oracle.truffle.api.source.Source source,
RubyNode currentNode,
NodeWrapper nodeWrapper)
public RubySymbol.SymbolTable getSymbolTable()
public RubySymbol newSymbol(String name)
public RubySymbol newSymbol(org.jruby.util.ByteList name)
public Object eval(org.jruby.util.ByteList code, RubyBinding binding, RubyNode currentNode)
public Object execute(RubyContext context, com.oracle.truffle.api.source.Source source, org.jcodings.Encoding defaultEncoding, TranslatorDriver.ParserContext parserContext, Object self, com.oracle.truffle.api.frame.MaterializedFrame parentFrame, RubyNode currentNode, NodeWrapper wrapper)
public long getNextObjectID()
public void shutdown()
public RubyString makeString(String string)
public RubyString makeString(String string, org.jcodings.Encoding encoding)
public RubyString makeString(char string)
public RubyString makeString(org.jruby.util.ByteList bytes)
public IRubyObject toJRuby(Object object)
public RubyString toJRuby(RubyString string)
public Object toTruffle(IRubyObject object)
public RubyString toTruffle(RubyString string)
public Ruby getRuntime()
public CoreLibrary getCoreLibrary()
public FeatureManager getFeatureManager()
public ObjectSpaceManager getObjectSpaceManager()
public FiberManager getFiberManager()
public ThreadManager getThreadManager()
public TranslatorDriver getTranslator()
public AtExitManager getAtExitManager()
public String getLanguageShortName()
getLanguageShortName in class com.oracle.truffle.api.ExecutionContextpublic TruffleHooks getHooks()
public TraceManager getTraceManager()
public Warnings getWarnings()
public SafepointManager getSafepointManager()
public Random getRandom()
public LexicalScope getRootLexicalScope()
public com.oracle.truffle.api.CompilerOptions getCompilerOptions()
getCompilerOptions in class com.oracle.truffle.api.ExecutionContextpublic RubiniusPrimitiveManager getRubiniusPrimitiveManager()
Copyright © 2001-2015 JRuby. All Rights Reserved.