truffle-api
API reference for truffle-api.
Packages
com.oracle.truffle.api29 types
Do you want to implement your own Truffle based language? In such case start here.
- ArrayUtils
- Assumption
- CallTarget
- CompilerAsserts
- CompilerDirectives
- CompilerDirectives.CompilationFinal
- CompilerDirectives.EarlyEscapeAnalysis
- CompilerDirectives.EarlyInline
- CompilerDirectives.TruffleBoundary
- CompilerDirectives.ValueType
- ContextLocal
- ContextThreadLocal
- ExactMath
- HostCompilerDirectives
- HostCompilerDirectives.BytecodeInterpreterFetchOpcode
- HostCompilerDirectives.BytecodeInterpreterHandler
- HostCompilerDirectives.BytecodeInterpreterHandlerConfig
- HostCompilerDirectives.BytecodeInterpreterHandlerConfig.Argument
- HostCompilerDirectives.BytecodeInterpreterHandlerConfig.Argument.ExpansionKind
- HostCompilerDirectives.BytecodeInterpreterHandlerConfig.Argument.Field
- HostCompilerDirectives.BytecodeInterpreterSwitch
- HostCompilerDirectives.InliningCutoff
- HostCompilerDirectives.InliningRoot
- InstrumentInfo
- InternalResource
- InternalResource.CPUArchitecture
- InternalResource.Env
- InternalResource.Id
- InternalResource.OS
- OptimizationFailedException
- Option
- Option.Group
- ReplaceObserver
- RootCallTarget
- ThreadLocalAction
- ThreadLocalAction.Access
- Truffle
- TruffleContext
- TruffleContext.Builder
- TruffleFile
- TruffleFile.AttributeDescriptor
- TruffleFile.Attributes
- TruffleFile.FileStoreInfo
- TruffleFile.FileTypeDetector
- TruffleLanguage
- TruffleLanguage.ContextLocalFactory
- TruffleLanguage.ContextLocalProvider
- TruffleLanguage.ContextPolicy
- TruffleLanguage.ContextReference
- TruffleLanguage.ContextThreadLocalFactory
- TruffleLanguage.Env
- TruffleLanguage.ExitMode
- TruffleLanguage.InlineParsingRequest
- TruffleLanguage.LanguageReference
- TruffleLanguage.ParsingRequest
- TruffleLanguage.Registration
- TruffleLogger
- TruffleOptionDescriptors
- TruffleOptions
- TruffleRuntime
- TruffleRuntimeAccess
- TruffleSafepoint
- TruffleSafepoint.CompiledInterruptible
- TruffleSafepoint.CompiledInterruptibleFunction
- TruffleSafepoint.Interrupter
- TruffleSafepoint.Interruptible
- TruffleSafepoint.InterruptibleFunction
- TruffleStackTrace
- TruffleStackTraceElement
- TruffleThreadBuilder
com.oracle.truffle.api.bytecode50 types
The Bytecode DSL is a DSL and runtime support component of Truffle that makes it easier to implement bytecode interpreters.
- BytecodeBuilder
- BytecodeConfig
- BytecodeConfig.Builder
- BytecodeConfigEncoder
- BytecodeDSLAccess
- BytecodeDescriptor
- BytecodeEncodingException
- BytecodeFrame
- BytecodeIndexMode
- BytecodeLabel
- BytecodeLocal
- BytecodeLocation
- BytecodeNode
- BytecodeParser
- BytecodeRootNode
- BytecodeRootNodes
- BytecodeSupport
- BytecodeSupport.CloneReferenceList
- BytecodeSupport.ConstantsBuffer
- BytecodeTier
- BytecodeTransition
- BytecodeVersion
- ConstantOperand
- ConstantOperand.Repeat
- ContinuationResult
- ContinuationRootNode
- EpilogExceptional
- EpilogReturn
- ExceptionHandler
- ExceptionHandler.HandlerKind
- ForceQuickening
- ForceQuickening.Repeat
- GenerateBytecode
- GenerateBytecodeTestVariants
- GenerateBytecodeTestVariants.Variant
- Instruction
- Instruction.Argument
- Instruction.Argument.BranchProfile
- Instruction.Argument.Kind
- InstructionDescriptor
- InstructionDescriptor.ArgumentDescriptor
- InstructionTracer
- InstructionTracer.InstructionAccess
- Instrumentation
- LocalAccessor
- LocalRangeAccessor
- LocalVariable
- MaterializedLocalAccessor
- Operation
- OperationProxy
- OperationProxy.Proxyable
- OperationProxy.Repeat
- Prolog
- Return
- ShortCircuitOperation
- ShortCircuitOperation.Operator
- ShortCircuitOperation.Repeat
- SourceInformation
- SourceInformationTree
- StackValue
- StoreBytecodeIndex
- TagTree
- TagTreeNode
- TagTreeNodeGen
- TagTreeNodeGen.DynamicDispatchLibraryExports
- TagTreeNodeGen.DynamicDispatchLibraryExports.Cached
- TagTreeNodeGen.DynamicDispatchLibraryExports.Uncached
- Variadic
- Yield
com.oracle.truffle.api.bytecode.debug4 types
Debug utilities for the Bytecode DSL.
com.oracle.truffle.api.bytecode.serialization4 types
Serialization-specific classes for the Bytecode DSL.
com.oracle.truffle.api.debug18 types
The debug package contains a debugger API that can be used to install breakpoints, step through and control the execution of Truffle guest language applications.
- Breakpoint
- Breakpoint.Builder
- Breakpoint.ExceptionBuilder
- Breakpoint.Kind
- Breakpoint.ResolveListener
- DebugContext
- DebugContextsListener
- DebugException
- DebugException.CatchLocation
- DebugScope
- DebugStackFrame
- DebugStackTraceElement
- DebugThreadsListener
- DebugValue
- Debugger
- DebuggerSession
- DebuggerTags
- DebuggerTags.AlwaysHalt
- SourceElement
- StepConfig
- StepConfig.Builder
- SuspendAnchor
- SuspendedCallback
- SuspendedEvent
- SuspensionFilter
- SuspensionFilter.Builder
com.oracle.truffle.api.dsl37 types
Domain specific language that allows to specify specializing AST nodes in a declarative way.
- AOTSupport
- Bind
- Bind.DefaultExpression
- Cached
- Cached.Exclusive
- Cached.Shared
- CreateCast
- DSLSupport
- DSLSupport.SpecializationDataNode
- ExecuteTracingSupport
- Executed
- Fallback
- GenerateAOT
- GenerateAOT.Exclude
- GenerateAOT.Provider
- GenerateCached
- GenerateInline
- GenerateNodeFactory
- GeneratePackagePrivate
- GenerateUncached
- GeneratedBy
- Idempotent
- ImplicitCast
- ImportStatic
- InlineSupport
- InlineSupport.BooleanField
- InlineSupport.ByteField
- InlineSupport.CharField
- InlineSupport.DoubleField
- InlineSupport.FloatField
- InlineSupport.InlinableField
- InlineSupport.InlineTarget
- InlineSupport.IntField
- InlineSupport.LongField
- InlineSupport.ReferenceField
- InlineSupport.RequiredField
- InlineSupport.RequiredFields
- InlineSupport.ShortField
- InlineSupport.StateField
- InlineSupport.UnsafeAccessedField
- Introspectable
- Introspection
- Introspection.Provider
- Introspection.SpecializationInfo
- NeverDefault
- NodeChild
- NodeChildren
- NodeFactory
- NodeField
- NodeFields
- NonIdempotent
- ReportPolymorphism
- ReportPolymorphism.Exclude
- ReportPolymorphism.Megamorphic
- Specialization
- SpecializationStatistics
- SpecializationStatistics.AlwaysEnabled
- SpecializationStatistics.NodeStatistics
- SuppressPackageWarnings
- TypeCast
- TypeCheck
- TypeSystem
- TypeSystemReference
- UnsupportedSpecializationException
com.oracle.truffle.api.exception1 type
This package contains a Truffle exception base class.
com.oracle.truffle.api.frame9 types
Package containing stack frame representation classes.
com.oracle.truffle.api.instrumentation29 types
The instrumentation API provides a way to introspect and inject behavior into interpreters written using the Truffle framework.
- AllocationEvent
- AllocationEventFilter
- AllocationEventFilter.Builder
- AllocationListener
- AllocationReporter
- ContextsListener
- EventBinding
- EventContext
- ExecuteSourceEvent
- ExecuteSourceListener
- ExecutionEventListener
- ExecutionEventNode
- ExecutionEventNodeFactory
- GenerateWrapper
- GenerateWrapper.Ignore
- GenerateWrapper.IncomingConverter
- GenerateWrapper.OutgoingConverter
- GenerateWrapper.YieldException
- InstrumentableNode
- InstrumentableNode.WrapperNode
- Instrumenter
- LoadSourceEvent
- LoadSourceListener
- LoadSourceSectionEvent
- LoadSourceSectionListener
- NearestSectionFilter
- NearestSectionFilter.Builder
- ProbeNode
- ProvidedTags
- SourceFilter
- SourceFilter.Builder
- SourceSectionFilter
- SourceSectionFilter.Builder
- SourceSectionFilter.IndexRange
- SourceSectionFilter.SourcePredicate
- StandardTags
- StandardTags.CallTag
- StandardTags.ExpressionTag
- StandardTags.ReadVariableTag
- StandardTags.RootBodyTag
- StandardTags.RootTag
- StandardTags.StatementTag
- StandardTags.TryBlockTag
- StandardTags.WriteVariableTag
- Tag
- Tag.Identifier
- ThreadsActivationListener
- ThreadsListener
- TruffleInstrument
- TruffleInstrument.ContextLocalFactory
- TruffleInstrument.ContextLocalProvider
- TruffleInstrument.ContextThreadLocalFactory
- TruffleInstrument.Env
- TruffleInstrument.Registration
com.oracle.truffle.api.instrumentation.provider1 type
This package contains a provider to instantiate a Truffle instrument.
com.oracle.truffle.api.interop14 types
This package contains classes that specify the contract for inter-operability between Truffle guest languages and tools.
com.oracle.truffle.api.io1 type
This package contains I/O related classes used by TruffleLanguage implementations.
com.oracle.truffle.api.library10 types
Truffle Libraries allow language implementations to use polymorphic dispatch for receiver types with support for implementation specific caching/profiling and customization of the dispatch.
- CachedLibrary
- DynamicDispatchLibrary
- ExportLibrary
- ExportLibrary.Repeat
- ExportMessage
- ExportMessage.Ignore
- ExportMessage.Repeat
- GenerateLibrary
- GenerateLibrary.Abstract
- GenerateLibrary.DefaultExport
- GenerateLibrary.DefaultExport.Repeat
- Library
- LibraryExport
- LibraryExport.DelegateExport
- LibraryFactory
- Message
- ReflectionLibrary
com.oracle.truffle.api.library.provider2 types
This package contains service provider interfaces used by Truffle libraries.
com.oracle.truffle.api.memory1 type
This package contains memory related classes used by TruffleLanguage implementations.
com.oracle.truffle.api.nodes26 types
Abstract syntax tree nodes are the basic building block for your TruffleLanguage.
- BlockNode
- BlockNode.ElementExecutor
- BytecodeOSRNode
- ControlFlowException
- DenyReplace
- DirectCallNode
- EncapsulatingNodeReference
- ExecutableNode
- ExecutionSignature
- ExplodeLoop
- ExplodeLoop.LoopExplosionKind
- IndirectCallNode
- InvalidAssumptionException
- LanguageInfo
- LoopNode
- Node
- Node.Child
- Node.Children
- NodeClass
- NodeCloneable
- NodeCost
- NodeInfo
- NodeInterface
- NodeUtil
- NodeUtil.NodeCountFilter
- NodeVisitor
- RepeatingNode
- RootNode
- SlowPathException
- UnadoptableNode
- UnexpectedResultException
com.oracle.truffle.api.object12 types
Dynamic object storage model.
- DoubleLocation
- DynamicObject
- DynamicObject.ContainsKeyNode
- DynamicObject.CopyPropertiesNode
- DynamicObject.DynamicField
- DynamicObject.GetDynamicTypeNode
- DynamicObject.GetKeyArrayNode
- DynamicObject.GetNode
- DynamicObject.GetPropertyArrayNode
- DynamicObject.GetPropertyFlagsNode
- DynamicObject.GetPropertyNode
- DynamicObject.GetShapeFlagsNode
- DynamicObject.IsSharedNode
- DynamicObject.MarkSharedNode
- DynamicObject.PutAllNode
- DynamicObject.PutConstantNode
- DynamicObject.PutNode
- DynamicObject.RemoveKeyNode
- DynamicObject.ResetShapeNode
- DynamicObject.SetAllPropertyFlagsNode
- DynamicObject.SetDynamicTypeNode
- DynamicObject.SetPropertyFlagsNode
- DynamicObject.SetShapeFlagsNode
- DynamicObject.UpdateShapeNode
- DynamicObjectFactory
- DynamicObjectLibrary
- FinalLocationException
- HiddenKey
- IncompatibleLocationException
- IntLocation
- Location
- Property
- PropertyGetter
- Shape
- Shape.Builder
- Shape.DerivedBuilder
com.oracle.truffle.api.profiles23 types
A profile is a Truffle utility class that uses the Truffle compiler directives to guard for and/or forward runtime information to the compiler.
- BranchProfile
- ByteValueProfile
- ConditionProfile
- CountingConditionProfile
- DoubleValueProfile
- FloatValueProfile
- InlinedBranchProfile
- InlinedByteValueProfile
- InlinedConditionProfile
- InlinedCountingConditionProfile
- InlinedDoubleValueProfile
- InlinedExactClassProfile
- InlinedFloatValueProfile
- InlinedIntValueProfile
- InlinedLongValueProfile
- InlinedLoopConditionProfile
- InlinedProfile
- IntValueProfile
- LongValueProfile
- LoopConditionProfile
- PrimitiveValueProfile
- Profile
- ValueProfile
com.oracle.truffle.api.provider2 types
This package contains a provider to instantiate a Truffle language.
com.oracle.truffle.api.source2 types
Represents a source file.
com.oracle.truffle.api.staticobject4 types
Static Object Model APIs to represent the layout of objects that, once defined, do not change the number and the type of their properties.
com.oracle.truffle.api.strings15 types
Truffle String related APIs.
- AbstractTruffleString
- InternalByteArray
- MutableTruffleString
- MutableTruffleString.AsManagedNode
- MutableTruffleString.AsMutableTruffleStringNode
- MutableTruffleString.ConcatNode
- MutableTruffleString.ForceEncodingNode
- MutableTruffleString.FromByteArrayNode
- MutableTruffleString.FromNativePointerNode
- MutableTruffleString.SubstringByteIndexNode
- MutableTruffleString.SubstringNode
- MutableTruffleString.SwitchEncodingNode
- MutableTruffleString.WriteByteNode
- MutableTruffleStringFactory
- NativeAllocator
- TranscodingErrorHandler
- TranscodingErrorHandler.ReplacementString
- TruffleString
- TruffleString.AsManagedNode
- TruffleString.AsNativeNode
- TruffleString.AsTruffleStringNode
- TruffleString.ByteIndexOfAnyByteNode
- TruffleString.ByteIndexOfCodePointNode
- TruffleString.ByteIndexOfCodePointSetNode
- TruffleString.ByteIndexOfStringNode
- TruffleString.ByteIndexOfStringSetNode
- TruffleString.ByteIndexToCodePointIndexNode
- TruffleString.ByteLengthOfCodePointNode
- TruffleString.CharIndexOfAnyCharUTF16Node
- TruffleString.CodePointAtByteIndexNode
- TruffleString.CodePointAtIndexNode
- TruffleString.CodePointAtIndexUTF32Node
- TruffleString.CodePointIndexToByteIndexNode
- TruffleString.CodePointLengthNode
- TruffleString.CodePointSet
- TruffleString.CodeRange
- TruffleString.CodeRangeEqualsNode
- TruffleString.CompactionLevel
- TruffleString.CompareBytesNode
- TruffleString.CompareCharsUTF16Node
- TruffleString.CompareIntsUTF32Node
- TruffleString.ConcatNode
- TruffleString.CopyToByteArrayNode
- TruffleString.CopyToNativeMemoryNode
- TruffleString.CreateBackwardCodePointIteratorNode
- TruffleString.CreateCodePointIteratorNode
- TruffleString.Encoding
- TruffleString.EqualNode
- TruffleString.ErrorHandling
- TruffleString.ForceEncodingNode
- TruffleString.FromByteArrayNode
- TruffleString.FromByteArrayWithCompactionUTF32Node
- TruffleString.FromCharArrayUTF16Node
- TruffleString.FromCodePointNode
- TruffleString.FromIntArrayUTF32Node
- TruffleString.FromJavaStringNode
- TruffleString.FromLongNode
- TruffleString.FromNativePointerNode
- TruffleString.FromNativePointerWithCompactionUTF32Node
- TruffleString.FromZeroTerminatedNativePointerNode
- TruffleString.GetByteCodeRangeNode
- TruffleString.GetCodeRangeImpreciseNode
- TruffleString.GetCodeRangeNode
- TruffleString.GetInternalByteArrayNode
- TruffleString.GetInternalNativePointerNode
- TruffleString.GetStringCompactionLevelNode
- TruffleString.HashCodeNode
- TruffleString.IllegalByteArrayLengthException
- TruffleString.IndexOfCodePointNode
- TruffleString.IndexOfStringNode
- TruffleString.IntIndexOfAnyIntUTF32Node
- TruffleString.IsValidNode
- TruffleString.LastByteIndexOfCodePointNode
- TruffleString.LastByteIndexOfStringNode
- TruffleString.LastIndexOfCodePointNode
- TruffleString.LastIndexOfStringNode
- TruffleString.MaterializeNode
- TruffleString.MaterializeSubstringNode
- TruffleString.NumberFormatException
- TruffleString.ParseDoubleNode
- TruffleString.ParseIntNode
- TruffleString.ParseLongNode
- TruffleString.ReadByteNode
- TruffleString.ReadCharUTF16Node
- TruffleString.RegionEqualByteIndexNode
- TruffleString.RegionEqualNode
- TruffleString.RepeatNode
- TruffleString.StringSet
- TruffleString.SubstringByteIndexNode
- TruffleString.SubstringNode
- TruffleString.SwitchEncodingNode
- TruffleString.ToJavaStringNode
- TruffleString.ToValidStringNode
- TruffleString.WithMask
- TruffleString.WithMask.CreateNode
- TruffleString.WithMask.CreateUTF16Node
- TruffleString.WithMask.CreateUTF32Node
- TruffleStringBuilder
- TruffleStringBuilder.AppendByteNode
- TruffleStringBuilder.AppendCharUTF16Node
- TruffleStringBuilder.AppendCodePointNode
- TruffleStringBuilder.AppendIntNumberNode
- TruffleStringBuilder.AppendJavaStringUTF16Node
- TruffleStringBuilder.AppendLongNumberNode
- TruffleStringBuilder.AppendStringNode
- TruffleStringBuilder.AppendSubstringByteIndexNode
- TruffleStringBuilder.ToStringNode
- TruffleStringBuilderFactory
- TruffleStringBuilderUTF16
- TruffleStringBuilderUTF32
- TruffleStringBuilderUTF8
- TruffleStringFactory
- TruffleStringFactory.WithMaskFactory
- TruffleStringIterator
- TruffleStringIterator.NextNode
- TruffleStringIterator.PreviousNode
- TruffleStringIteratorFactory
com.oracle.truffle.api.utilities7 types
Various utility classes that aim to make the development of TruffleLanguage guest languages easier.