Index
A
accessFieldsOfJavaObject()method in PolyglotEngineWithJavaScriptaccessFieldsOfJavaObjectWithConverter()method in PolyglotEngineWithJavaScriptaccessJavaScriptArrayWithTypedElementsFromJava()method in PolyglotEngineWithJavaScriptaccessJavaScriptJSONObjectFromJava()method in PolyglotEngineWithJavaScriptapply(Statement, Description)method in TruffleRunner.RunWithPolyglotRule Internal method used by the JUnit framework.assertBreakpointsBreakEverywhere(Source)method in DebuggerTester Utility method that tests if a breakpoint submitted to any location in the source code suspends the execution.assertBreakpointsBreakEverywhere(Source, DebuggerTester.PositionPredicate)method in DebuggerTester Utility method that tests if a breakpoint submitted to any location permitted by thePositionPredicatein the source code suspends the execution.assertColumnBreakpointsResolution(String, String, …)method in DebuggerTester Utility method that checks proper resolution of column breakpoints.assertColumnBreakpointsResolution(String, String, …)method in DebuggerTesterassertLineBreakpointsResolution(String, DebuggerTester.PositionPredicate, …)method in DebuggerTesterassertLineBreakpointsResolution(String, String, String)method in DebuggerTester Utility method that checks proper resolution of line breakpoints.
C
callJavaScriptClassFactoryFromJava()method in PolyglotEngineWithJavaScriptcallJavaScriptFunctionFromJava()method in PolyglotEngineWithJavaScriptcallJavaScriptFunctionsWithSharedStateFromJava()method in PolyglotEngineWithJavaScriptcallRFunctionFromJava()method in PolyglotEngineWithRcallRubyFunctionFromJava()method in PolyglotEngineWithRubycheckBounds(int, int)method in TckLanguageclose()method in DebuggerTester Closes the current debugger tester session and all its associated resources like the background thread.closeEngine()method in DebuggerTester Close the engine.create()method in TckLanguageProvidercreate()method in TruffleTestInvokerTruffleTestInvokerLanguageProvidercreateContext(TruffleLanguage.Env)method in TckLanguagecreateFileTypeDetectors()method in TckLanguageProvidercreateFileTypeDetectors()method in TruffleTestInvokerTruffleTestInvokerLanguageProvidercreateInternalResource(String)method in TckLanguageProvidercreateInternalResource(String)method in TruffleTestInvokerTruffleTestInvokerLanguageProvidercreateJavaScriptFactoryForJavaClass()method in PolyglotEngineWithJavaScriptcreateRunnerForTestWithParameters(TestWithParameters)method in TruffleRunner.ParametersFactory Internal method used by the JUnit framework.
D
DebuggerTesterclass in com.oracle.truffle.tck Test utility class that makes it easier to test and debug debugger functionality for guest languages.DebuggerTester()constructor in DebuggerTester Constructs a new debugger tester instance.DebuggerTester(Context.Builder)constructor in DebuggerTester Constructs a new debugger tester instance with a pre-set context builder.DebuggerTester(Engine, Context.Builder)constructor in DebuggerTester Constructs a new debugger tester instance with a pre-set context builder and engine.disposeEngine()method in PolyglotEngineWithJavaScriptdisposeEngine()method in PolyglotEngineWithRdisposeEngine()method in PolyglotEngineWithRuby
E
expectDone()method in DebuggerTester Expects the current evaluation to be completed successfully and not be killed or to produce further suspended events.expectKilled()method in DebuggerTester Expects the current evaluation to be killed and not be completed or to produce further suspended events.expectNumber(Object)method in TckLanguageexpectString(Object)method in TckLanguageexpectSuspended(SuspendedCallback)method in DebuggerTester Expects a suspended event and returns it for potential assertions.expectSuspended(SuspendedCallback, Function)method in DebuggerTester Expects a suspended event and returns it for potential assertions, allows to verify errors printed to the error output.expectThrowable()method in DebuggerTester Expects the current evaluation to be completed with an error and not be killed or to produce further suspended events.expectTruffleObject(Object)method in TckLanguage
G
getDebugger()method in DebuggerTester Get the Debugger instance associated with the current engine.getErr()method in DebuggerTester Returns the error output of the underlyingcontext.getEvalThread()method in DebuggerTester Returns the thread that the execution started withstartEval(Source)is running on.getInternalResourceIds()method in TckLanguageProvidergetInternalResourceIds()method in TruffleTestInvokerTruffleTestInvokerLanguageProvidergetLanguageClassName()method in TckLanguageProvidergetLanguageClassName()method in TruffleTestInvokerTruffleTestInvokerLanguageProvidergetOut()method in DebuggerTester Returns the standard output of the underlyingcontext.getPolyglotContext()method in TruffleRunner.RunWithPolyglotRule Get the currentContext.getServicesClassNames()method in TckLanguageProvidergetServicesClassNames()method in TruffleTestInvokerTruffleTestInvokerLanguageProvidergetSourceImpl(Source)method in DebuggerTester GetTruffle Sourcethat corresponds to thePolyglot Source.getTestLanguage()method in TruffleRunner.RunWithPolyglotRule Get an instance of theTruffleLanguagethat this test is running under.getTruffleTestEnv()method in TruffleRunner.RunWithPolyglotRule Get an environment to access the polyglot engine using interop.
H
hoursfield in PolyglotEngineWithJavaScript.Moment
I
initEngine()method in PolyglotEngineWithJavaScriptinitEngine()method in PolyglotEngineWithRinitEngine()method in PolyglotEngineWithRubyInjectannotation interface in com.oracle.truffle.tck A parameter annotated withInjectspecifies theRootNodeof the test AST.
J
JavaScriptRunnerclass in com.oracle.truffle.tck.implJavaScriptRunner(Class)constructor in TruffleLanguageRunner.JavaScriptRunner
M
methodInvoker(FrameworkMethod, Object)method in TruffleRunner Internal method used by the JUnit framework.minutesfield in PolyglotEngineWithJavaScript.MomentMomentclass in com.oracle.truffle.tck.implMoment(int, int, int)constructor in PolyglotEngineWithJavaScript.Moment
P
ParametersFactoryclass in com.oracle.truffle.tckParametersRunnerFactoryfor testing Truffle AST interpreters usingParameterizedunit tests.ParametersFactory()constructor in TruffleRunner.ParametersFactory Should not be called directly.parse(TruffleLanguage.ParsingRequest)method in TckLanguagePolyglotEngineWithJavaScriptclass in com.oracle.truffle.tck.impl Tests with code snippets referencing JavaScript (executed only when an implementation of JavaScript is around).PolyglotEngineWithJavaScript()constructor in PolyglotEngineWithJavaScript Creates a new PolyglotEngineWithJavaScript instance.PolyglotEngineWithRclass in com.oracle.truffle.tck.impl Tests with code snippets in R language (executed only when an implementation of R is around).PolyglotEngineWithR()constructor in PolyglotEngineWithR Creates a new PolyglotEngineWithR instance.PolyglotEngineWithRubyclass in com.oracle.truffle.tck.impl Tests with code snippets referencing Ruby (executed only when implementation of Ruby is around).PolyglotEngineWithRuby()constructor in PolyglotEngineWithRuby Creates a new PolyglotEngineWithRuby instance.PositionPredicateinterface in com.oracle.truffle.tck Predicate of testable positions.
R
RRunnerclass in com.oracle.truffle.tck.implRRunner(Class)constructor in TruffleLanguageRunner.RRunnerRubyRunnerclass in com.oracle.truffle.tck.implRubyRunner(Class)constructor in TruffleLanguageRunner.RubyRunnerrunChild(FrameworkMethod, RunNotifier)method in TruffleLanguageRunnerRunWithPolyglotRuleclass in com.oracle.truffle.tck JUnit rule to run the tests in the context of a polyglot engine.RunWithPolyglotRule()constructor in TruffleRunner.RunWithPolyglotRuleRunWithPolyglotRule(Context.Builder)constructor in TruffleRunner.RunWithPolyglotRule
S
secondsfield in PolyglotEngineWithJavaScript.MomentstartEval(Source)method in DebuggerTester Starts a newevaluationon the background thread.startExecute(Function)method in DebuggerTester Starts a new script evaluation on the background thread.startSession()method in DebuggerTester Starts a newdebugger sessionin the context'sengine.startSession(SourceElement...)method in DebuggerTester Starts a newdebugger sessionin the context'sengine.
T
TckLanguageclass in com.oracle.truffle.tck.implTckLanguage()constructor in TckLanguage Creates a new TckLanguage instance.TckLanguageProviderclass in com.oracle.truffle.tck.implTckLanguageProvider()constructor in TckLanguageProvider Creates a new TckLanguageProvider instance.testAccessFieldsOfJavaObject()method in PolyglotEngineWithJavaScripttestAccessFieldsOfJavaObjectWithConverter()method in PolyglotEngineWithJavaScripttestAccessJavaScriptArrayWithTypedElementsFromJava()method in PolyglotEngineWithJavaScripttestCallJavaScriptClassFactoryFromJava()method in PolyglotEngineWithJavaScripttestCallJavaScriptFunctionFromJava()method in PolyglotEngineWithJavaScripttestCallJavaScriptFunctionsWithSharedStateFromJava()method in PolyglotEngineWithJavaScripttestCallRtFunctionFromJava()method in PolyglotEngineWithRtestCallRubyFunctionFromJava()method in PolyglotEngineWithRubytestCreateJavaScriptFactoryForJavaClass()method in PolyglotEngineWithJavaScripttestLine(int)method in DebuggerTester.PositionPredicate Whether to test at the line.testLineColumn(int, int)method in DebuggerTester.PositionPredicate Whether to test at the line and column position.tetsAccessJSONObjectProperties()method in PolyglotEngineWithJavaScriptTruffleLanguageRunnerabstract class in com.oracle.truffle.tck.implTruffleRunnerclass in com.oracle.truffle.tck JUnit test runner for unit testing Truffle AST interpreters.TruffleRunner(Class)constructor in TruffleRunner Should not be called directly.TruffleRunner(TestClass)constructor in TruffleRunner Should not be called directly.TruffleTestInvokerTruffleTestInvokerLanguageProviderclass in com.oracle.truffle.tckTruffleTestInvokerTruffleTestInvokerLanguageProvider()constructor in TruffleTestInvokerTruffleTestInvokerLanguageProvider Creates a new TruffleTestInvokerTruffleTestInvokerLanguageProvider instance.
V
validateTestMethods(List)method in TruffleRunner Internal method used by the JUnit framework.value()element in TruffleRunner.Inject Defines theroot nodeof the Truffle tree that should be tested.value()element in TruffleRunner.Warmup The number of warmup iterations to run before a test is compiled.