- ALL - Static variable in class org.graalvm.polyglot.HostAccess
-
Predefined host access policy that allows full unrestricted access to public methods or
fields of public host classes.
- ALL - Static variable in class org.graalvm.polyglot.io.IOAccess
-
Provides guest language full access to host IO.
- ALL - Static variable in class org.graalvm.polyglot.PolyglotAccess
-
Provides guest languages full access to other languages using polyglot evaluation and binding
builtins.
- allowAccess(Executable) - Method in class org.graalvm.polyglot.HostAccess.Builder
-
Allows access to a given constructor or method.
- allowAccess(Field) - Method in class org.graalvm.polyglot.HostAccess.Builder
-
Allows access to a given field.
- allowAccessAnnotatedBy(Class<? extends Annotation>) - Method in class org.graalvm.polyglot.HostAccess.Builder
-
Allows access to public constructors, methods or fields of public classes that were
annotated by the given annotation class.
- allowAccessInheritance(boolean) - Method in class org.graalvm.polyglot.HostAccess.Builder
-
Allows the guest application to inherit access to allowed methods, i.e.
- allowAllAccess(boolean) - Method in class org.graalvm.polyglot.Context.Builder
-
Sets the default value for all privileges.
- allowAllClassImplementations(boolean) - Method in class org.graalvm.polyglot.HostAccess.Builder
-
Allow guest languages to implement (extend) any Java class.
- allowAllImplementations(boolean) - Method in class org.graalvm.polyglot.HostAccess.Builder
-
Allow guest languages to implement any Java interface.
- allowArrayAccess(boolean) - Method in class org.graalvm.polyglot.HostAccess.Builder
-
Allows the guest application to access arrays as values with
array elements.
- allowBigIntegerNumberAccess(boolean) - Method in class org.graalvm.polyglot.HostAccess.Builder
-
- allowBindingsAccess(String) - Method in class org.graalvm.polyglot.PolyglotAccess.Builder
-
Allows access to polyglot bindings for a language.
- allowBufferAccess(boolean) - Method in class org.graalvm.polyglot.HostAccess.Builder
-
- allowCreateProcess(boolean) - Method in class org.graalvm.polyglot.Context.Builder
-
If true, allows guest language to execute external processes.
- allowCreateThread(boolean) - Method in class org.graalvm.polyglot.Context.Builder
-
If true, allows guest languages to create new threads.
- allowEnvironmentAccess(EnvironmentAccess) - Method in class org.graalvm.polyglot.Context.Builder
-
Allow environment access using the provided policy.
- allowEval(String, String) - Method in class org.graalvm.polyglot.PolyglotAccess.Builder
-
Allows evaluation of code by one language of another.
- allowEvalBetween(String...) - Method in class org.graalvm.polyglot.PolyglotAccess.Builder
-
Allows bidirectional evaluation of code between the given languages.
- allowExperimentalOptions(boolean) - Method in class org.graalvm.polyglot.Context.Builder
-
Allow experimental options to be used for language options.
- allowExperimentalOptions(boolean) - Method in class org.graalvm.polyglot.Engine.Builder
-
Allow experimental options to be used for instruments and engine options.
- allowHostAccess(HostAccess) - Method in class org.graalvm.polyglot.Context.Builder
-
Configures which public constructors, methods or fields of public classes are accessible
by guest applications.
- allowHostClassLoading(boolean) - Method in class org.graalvm.polyglot.Context.Builder
-
If host class loading is enabled, then the guest language is allowed to load new host
classes via jar or class files.
- allowHostClassLookup(Predicate<String>) - Method in class org.graalvm.polyglot.Context.Builder
-
Sets a filter that specifies the Java host classes that can be looked up by the guest
application.
- allowHostFileAccess(boolean) - Method in class org.graalvm.polyglot.io.IOAccess.Builder
-
If true, it allows the guest language unrestricted access to files on the host
system.
- allowHostSocketAccess(boolean) - Method in class org.graalvm.polyglot.io.IOAccess.Builder
-
If true, it allows the guest language unrestricted access to host system sockets.
- allowImplementations(Class<?>) - Method in class org.graalvm.polyglot.HostAccess.Builder
-
Allow implementations of this type by the guest language.
- allowImplementationsAnnotatedBy(Class<? extends Annotation>) - Method in class org.graalvm.polyglot.HostAccess.Builder
-
Allow implementations of types annotated with the given annotation.
- allowInnerContextOptions(boolean) - Method in class org.graalvm.polyglot.Context.Builder
-
Allows this context to spawn inner contexts that may change option values set for the
outer context.
- allowIO(IOAccess) - Method in class org.graalvm.polyglot.Context.Builder
-
Configures guest language access to host IO.
- allowIterableAccess(boolean) - Method in class org.graalvm.polyglot.HostAccess.Builder
-
- allowIteratorAccess(boolean) - Method in class org.graalvm.polyglot.HostAccess.Builder
-
- allowLanguageHomeAccess(FileSystem) - Static method in interface org.graalvm.polyglot.io.FileSystem
-
Decorates the given fileSystem by an implementation that forwards access to files in
the language home to the default file system.
- allowListAccess(boolean) - Method in class org.graalvm.polyglot.HostAccess.Builder
-
- allowMapAccess(boolean) - Method in class org.graalvm.polyglot.HostAccess.Builder
-
Allows the guest application to access
map as
hash values.
- allowMutableTargetMappings(HostAccess.MutableTargetMapping...) - Method in class org.graalvm.polyglot.HostAccess.Builder
-
- allowNativeAccess(boolean) - Method in class org.graalvm.polyglot.Context.Builder
-
Allows guest languages to access the native interface.
- allowPolyglotAccess(PolyglotAccess) - Method in class org.graalvm.polyglot.Context.Builder
-
Allow polyglot access using the provided policy.
- allowPublicAccess(boolean) - Method in class org.graalvm.polyglot.HostAccess.Builder
-
Allows unrestricted access to all public constructors, methods or fields of public
classes.
- allowValueSharing(boolean) - Method in class org.graalvm.polyglot.Context.Builder
-
Enables or disables sharing of any
value between contexts.
- arguments(String, String[]) - Method in class org.graalvm.polyglot.Context.Builder
-
Sets the guest language application arguments for a language
context.
- as(Class<T>) - Method in class org.graalvm.polyglot.Value
-
Maps a polyglot value to a value with a given Java target type.
- as(TypeLiteral<T>) - Method in class org.graalvm.polyglot.Value
-
Maps a polyglot value to a given Java target type literal.
- asBigInteger() - Method in class org.graalvm.polyglot.Value
-
Returns a
BigInteger representation of this value if it is
number and the value
fits.
- asBoolean() - Method in class org.graalvm.polyglot.Value
-
Returns a
boolean representation of this value if it is
boolean.
- asByte() - Method in class org.graalvm.polyglot.Value
-
Returns a
byte representation of this value if it is
number
and the value
fits.
- asDate() - Method in interface org.graalvm.polyglot.proxy.ProxyDate
-
Returns the date information.
- asDate() - Method in interface org.graalvm.polyglot.proxy.ProxyInstant
-
Returns the date information.
- asDate() - Method in class org.graalvm.polyglot.Value
-
Returns this value as date if this object represents a
date.
- asDouble() - Method in class org.graalvm.polyglot.Value
-
Returns a
double representation of this value if it is
number and the value
fits.
- asDuration() - Method in interface org.graalvm.polyglot.proxy.ProxyDuration
-
Returns the duration information.
- asDuration() - Method in class org.graalvm.polyglot.Value
-
Returns this value as duration if this object represents a
duration.
- asFloat() - Method in class org.graalvm.polyglot.Value
-
Returns a
float representation of this value if it is
number
and the value
fits.
- asHostException() - Method in exception org.graalvm.polyglot.PolyglotException
-
Returns the original Java host exception that caused this exception.
- asHostObject() - Method in class org.graalvm.polyglot.Value
-
Returns the original Java host language object.
- asInstant() - Method in interface org.graalvm.polyglot.proxy.ProxyInstant
-
Returns the instant information.
- asInstant() - Method in class org.graalvm.polyglot.Value
-
Returns this value as instant if this object represents an
instant.
- asInt() - Method in class org.graalvm.polyglot.Value
-
Returns an
int representation of this value if it is
number
and the value
fits.
- asLong() - Method in class org.graalvm.polyglot.Value
-
Returns a
long representation of this value if it is
number
and the value
fits.
- asNativePointer() - Method in class org.graalvm.polyglot.Value
-
Returns the value of the pointer as long value.
- asPointer() - Method in interface org.graalvm.polyglot.proxy.ProxyNativeObject
-
Returns the native pointer value that this object represents.
- asProxyObject() - Method in class org.graalvm.polyglot.Value
-
Returns the unboxed instance of the
Proxy.
- asShort() - Method in class org.graalvm.polyglot.Value
-
Returns a
short representation of this value if it is
number
and the value
fits.
- asString() - Method in class org.graalvm.polyglot.Value
-
Returns the
String value if this value
is a string.
- asTime() - Method in interface org.graalvm.polyglot.proxy.ProxyInstant
-
Returns the time information.
- asTime() - Method in interface org.graalvm.polyglot.proxy.ProxyTime
-
Returns the time information.
- asTime() - Method in class org.graalvm.polyglot.Value
-
Returns this value as time if this object represents a
time.
- asTimeZone() - Method in interface org.graalvm.polyglot.proxy.ProxyInstant
-
Returns the timezone information.
- asTimeZone() - Method in interface org.graalvm.polyglot.proxy.ProxyTimeZone
-
Returns the timezone information.
- asTimeZone() - Method in class org.graalvm.polyglot.Value
-
Returns this value as timestamp if this object represents a
timezone.
- asValue(Object) - Method in class org.graalvm.polyglot.Context
-
Converts a host value to a polyglot
value representation.
- asValue(Object) - Static method in class org.graalvm.polyglot.Value
-
Converts a Java host value to a polyglot value.
- attach(Engine) - Method in class org.graalvm.polyglot.management.ExecutionListener.Builder
-
Creates a new execution listener using the current builder configuration and attaches it
to an engine.
- cached(boolean) - Method in class org.graalvm.polyglot.Source.Builder
-
Enables or disables code caching for this source.
- canExecute() - Method in class org.graalvm.polyglot.Value
-
Returns
true if the value can be
executed.
- canInstantiate() - Method in class org.graalvm.polyglot.Value
-
Returns true if the value can be instantiated.
- canInvokeMember(String) - Method in class org.graalvm.polyglot.Value
-
Returns true if the given member exists and can be invoked.
- category(OptionCategory) - Method in class org.graalvm.options.OptionDescriptor.Builder
-
Defines the user category for this option.
- checkAccess(Path, Set<? extends AccessMode>, LinkOption...) - Method in interface org.graalvm.polyglot.io.FileSystem
-
Checks existence and accessibility of a file.
- close(boolean) - Method in class org.graalvm.polyglot.Context
-
Closes the context and frees up potentially allocated native resources.
- close() - Method in class org.graalvm.polyglot.Context
-
Closes this context and frees up potentially allocated native resources.
- close(boolean) - Method in class org.graalvm.polyglot.Engine
-
Closes this engine and frees up allocated native resources.
- close() - Method in class org.graalvm.polyglot.Engine
-
Closes this engine and frees up allocated native resources.
- close() - Method in class org.graalvm.polyglot.management.ExecutionListener
-
Closes and detaches this execution listener from the engine.
- collectExceptions(boolean) - Method in class org.graalvm.polyglot.management.ExecutionListener.Builder
-
Collect additional execution event data about errors.
- collectInputValues(boolean) - Method in class org.graalvm.polyglot.management.ExecutionListener.Builder
-
Collect additional execution event data for input values.
- collectReturnValue(boolean) - Method in class org.graalvm.polyglot.management.ExecutionListener.Builder
-
Collect additional execution event data about return values.
- compareTo(Version) - Method in class org.graalvm.home.Version
- compareTo(int...) - Method in class org.graalvm.home.Version
-
Compares this version to another GraalVM version.
- CONSTRAINED - Static variable in class org.graalvm.polyglot.HostAccess
-
Predefined host access policy used by Context with a
SandboxPolicy.CONSTRAINED
sandbox policy when the host access policy is not explicitly specified by the embedder.
- content(String) - Method in class org.graalvm.polyglot.Source.Builder
-
- content(CharSequence) - Method in class org.graalvm.polyglot.Source.Builder
-
- content(ByteSequence) - Method in class org.graalvm.polyglot.Source.Builder
-
- Context - Class in org.graalvm.polyglot
-
A polyglot context for Graal guest languages that allows to
evaluate code.
- Context.Builder - Class in org.graalvm.polyglot
-
Builder class to construct
Context instances.
- convert(String) - Method in class org.graalvm.options.OptionType
-
Converts a string value, validates it, and converts it to an object of this type.
- convert(Object, String, String) - Method in class org.graalvm.options.OptionType
-
Converts a string value, validates it, and converts it to an object of this type.
- copy(Path, Path, CopyOption...) - Method in interface org.graalvm.polyglot.io.FileSystem
-
Copies source file to target file.
- copyResources(Path, String...) - Static method in class org.graalvm.polyglot.Engine
-
Unpacks the language or instrument internal resources specified by the components
into the targetFolder directory.
- create(int...) - Static method in class org.graalvm.home.Version
-
Constructs a new GraalVM version from a list of version numbers.
- create(List<OptionDescriptor>) - Static method in interface org.graalvm.options.OptionDescriptors
-
- create(String...) - Static method in class org.graalvm.polyglot.Context
-
Creates a context with default configuration.
- create() - Static method in class org.graalvm.polyglot.Engine
-
Creates a new engine instance with default configuration.
- create(String...) - Static method in class org.graalvm.polyglot.Engine
-
Creates a new engine instance with default configuration with a set of permitted languages.
- create(byte[]) - Static method in interface org.graalvm.polyglot.io.ByteSequence
-
Creates a ByteSequence from an existing byte[].
- create(List<String>, String, Map<String, String>, boolean, ProcessHandler.Redirect, ProcessHandler.Redirect, ProcessHandler.Redirect) - Static method in class org.graalvm.polyglot.io.ProcessHandler.ProcessCommand
-
Creates a ProcessCommand.
- create(String, CharSequence) - Static method in class org.graalvm.polyglot.Source
-
Shortcut for creating a source object from a language and char sequence.
- createDirectory(Path, FileAttribute<?>...) - Method in interface org.graalvm.polyglot.io.FileSystem
-
Creates a directory.
- createLink(Path, Path) - Method in interface org.graalvm.polyglot.io.FileSystem
-
Creates a new link for an existing file.
- createRedirectToStream(OutputStream) - Static method in class org.graalvm.polyglot.io.ProcessHandler.Redirect
-
Creates a ProcessCommand.
- createSymbolicLink(Path, Path, FileAttribute<?>...) - Method in interface org.graalvm.polyglot.io.FileSystem
-
Creates a new symbolic link.
- createUnion(OptionDescriptors...) - Static method in interface org.graalvm.options.OptionDescriptors
-
Creates a union options descriptor out of multiple given descriptors.
- currentWorkingDirectory(Path) - Method in class org.graalvm.polyglot.Context.Builder
-
Sets the current working directory used by the guest application to resolve relative
paths.
- get(String) - Method in interface org.graalvm.options.OptionDescriptors
-
Gets the
OptionDescriptor matching a given option name or
null if this option
descriptor set does not contain a matching option name.
- get(String) - Method in class org.graalvm.options.OptionMap
-
Returns the value to which the specified key is mapped, or null if this option map
contains no mapping for the key.
- get(OptionKey<T>) - Method in interface org.graalvm.options.OptionValues
-
Returns the value of a given option.
- get(long) - Method in interface org.graalvm.polyglot.proxy.ProxyArray
-
Returns the element at the given index.
- getArrayElement(long) - Method in class org.graalvm.polyglot.Value
-
Returns the array element of a given index.
- getArraySize() - Method in class org.graalvm.polyglot.Value
-
Returns the array size for values with array elements.
- getBindings(String) - Method in class org.graalvm.polyglot.Context
-
Returns a value that represents the top-most bindings of a language.
- getBufferSize() - Method in class org.graalvm.polyglot.Value
-
Returns the buffer size in bytes for values with buffer elements.
- getBytes() - Method in class org.graalvm.polyglot.Source
-
- getCachedSources() - Method in class org.graalvm.polyglot.Engine
-
Returns the sources previously cached by this engine.
- getCategory() - Method in class org.graalvm.options.OptionDescriptor
-
Returns the user category of this option.
- getCharacters() - Method in class org.graalvm.polyglot.Source
-
Returns all characters of the source.
- getCharacters(int) - Method in class org.graalvm.polyglot.Source
-
Gets the text (not including a possible terminating newline) in a (1-based) numbered line.
- getCharacters() - Method in class org.graalvm.polyglot.SourceSection
-
Returns the source code fragment described by this section.
- getCharEndIndex() - Method in class org.graalvm.polyglot.SourceSection
-
Returns the index of the text position immediately following the last character in the
section.
- getCharIndex() - Method in class org.graalvm.polyglot.SourceSection
-
Returns the 0-based index of the first character in this section.
- getCharLength() - Method in class org.graalvm.polyglot.SourceSection
-
Returns the length of this section in characters.
- getColumnNumber(int) - Method in class org.graalvm.polyglot.Source
-
Given a 0-based character offset, return the 1-based number of the column at the position.
- getCommand() - Method in class org.graalvm.polyglot.io.ProcessHandler.ProcessCommand
-
Returns the subprocess executable and arguments as an immutable list.
- getContext() - Method in class org.graalvm.polyglot.ResourceLimitEvent
-
The context for which the limit was exceeded.
- getContext() - Method in class org.graalvm.polyglot.Value
-
Returns the context this value was created with.
- getCurrent() - Static method in class org.graalvm.home.Version
-
Returns the current GraalVM version of the installed component.
- getCurrent() - Static method in class org.graalvm.polyglot.Context
-
Returns the currently entered polyglot context.
- getDefaultMimeType() - Method in class org.graalvm.polyglot.Language
-
Returns the default MIME type that is in use by a language.
- getDefaultValue() - Method in class org.graalvm.options.OptionKey
-
Returns the default value for this option.
- getDeprecationMessage() - Method in class org.graalvm.options.OptionDescriptor
-
Returns the deprecation reason and the recommended fix.
- getDescriptors() - Method in interface org.graalvm.options.OptionValues
-
Returns all available options.
- getDirectory() - Method in class org.graalvm.polyglot.io.ProcessHandler.ProcessCommand
-
Returns the subprocess working directory.
- getEncoding(Path) - Method in interface org.graalvm.polyglot.io.FileSystem
-
Returns an file encoding for given path.
- getEndColumn() - Method in class org.graalvm.polyglot.SourceSection
-
Returns the 1-based column number of the last character in this section (inclusive).
- getEndLine() - Method in class org.graalvm.polyglot.SourceSection
-
Returns 1-based line number of the last character in this section (inclusive).
- getEngine() - Method in class org.graalvm.polyglot.Context
-
Provides access to meta-data about the underlying Graal
engine.
- getEnvironment() - Method in class org.graalvm.polyglot.io.ProcessHandler.ProcessCommand
-
Returns the subprocess environment as an immutable map.
- getErrorRedirect() - Method in class org.graalvm.polyglot.io.ProcessHandler.ProcessCommand
-
Returns the standard error output destination.
- getException() - Method in class org.graalvm.polyglot.management.ExecutionEvent
-
Returns the exception of this source location after it was executed.
- getExitStatus() - Method in exception org.graalvm.polyglot.PolyglotException
-
Returns the exit status if this exception indicates that the application was
exited.
- getGuestObject() - Method in exception org.graalvm.polyglot.PolyglotException
-
Returns an additional guest language object.
- getHashEntriesIterator() - Method in interface org.graalvm.polyglot.proxy.ProxyHashMap
-
Returns the hash entries iterator.
- getHashEntriesIterator() - Method in class org.graalvm.polyglot.Value
-
Creates a new hash entries iterator that allows read each map entry.
- getHashKeysIterator() - Method in class org.graalvm.polyglot.Value
-
Creates a new hash keys iterator that allows read each map key.
- getHashSize() - Method in interface org.graalvm.polyglot.proxy.ProxyHashMap
-
Returns the number of map entries.
- getHashSize() - Method in class org.graalvm.polyglot.Value
-
Returns the number of map entries for values with hash entries.
- getHashValue(Value) - Method in interface org.graalvm.polyglot.proxy.ProxyHashMap
-
Returns the value for the specified key.
- getHashValue(Object) - Method in class org.graalvm.polyglot.Value
-
Returns the value for the specified key or null if the mapping for the specified key
does not exist.
- getHashValueOrDefault(Object, Object) - Method in class org.graalvm.polyglot.Value
-
Returns the value for the specified key or the default value if the mapping for the specified
key does not exist or is not readable.
- getHashValuesIterator() - Method in class org.graalvm.polyglot.Value
-
Creates a new hash values iterator that allows read each map value.
- getHelp() - Method in class org.graalvm.options.OptionDescriptor
-
Returns a human-readable description on how to use the option.
- getHomeFolder() - Method in class org.graalvm.home.HomeFinder
-
- getId() - Method in class org.graalvm.polyglot.Instrument
-
Gets the ID clients can use to acquire this instrument.
- getId() - Method in class org.graalvm.polyglot.Language
-
Gets the primary identification string of this language.
- getImplementationName() - Method in class org.graalvm.polyglot.Engine
-
Gets a human-readable name of the polyglot implementation (for example, "Default Truffle
Engine" or "Graal Truffle Engine").
- getImplementationName() - Method in class org.graalvm.polyglot.Language
-
Gets a human-readable name of the language implementation (for example, "Graal.JS").
- getInputRedirect() - Method in class org.graalvm.polyglot.io.ProcessHandler.ProcessCommand
-
Returns the standard input source.
- getInputValues() - Method in class org.graalvm.polyglot.management.ExecutionEvent
-
Returns the input values provided to execute this source location.
- getInstance() - Static method in class org.graalvm.home.HomeFinder
-
- getInstruments() - Method in class org.graalvm.polyglot.Engine
-
Gets all installed instruments of this engine.
- getIterator() - Method in interface org.graalvm.polyglot.proxy.ProxyArray
-
Returns an iterator.
- getIterator() - Method in interface org.graalvm.polyglot.proxy.ProxyIterable
-
Returns an iterator.
- getIterator() - Method in class org.graalvm.polyglot.Value
-
Creates a new iterator that allows read each element of a sequence.
- getIteratorNextElement() - Method in class org.graalvm.polyglot.Value
-
Returns the next element in the iteration.
- getKey() - Method in class org.graalvm.options.OptionDescriptor
-
Returns the key for this option.
- getLanguage() - Method in class org.graalvm.polyglot.PolyglotException.StackFrame
-
Returns the language of this stack frame.
- getLanguage() - Method in class org.graalvm.polyglot.Source
-
Returns the language this source created with.
- getLanguageHomes() - Method in class org.graalvm.home.HomeFinder
-
- getLanguages() - Method in class org.graalvm.polyglot.Engine
-
Gets a map of all installed languages with the language id as key and the language object as
value.
- getLength() - Method in class org.graalvm.polyglot.Source
-
Gets the number of characters or bytes of the source.
- getLineCount() - Method in class org.graalvm.polyglot.Source
-
The number of text lines of a character based source, including empty lines; characters at
the end of the source without a terminating newline count as a line.
- getLineLength(int) - Method in class org.graalvm.polyglot.Source
-
The number of characters (not counting a possible terminating newline) in a (1-based)
numbered line.
- getLineNumber(int) - Method in class org.graalvm.polyglot.Source
-
Given a 0-based character offset, return the 1-based number of the line that includes the
position.
- getLineStartOffset(int) - Method in class org.graalvm.polyglot.Source
-
Given a 1-based line number, return the 0-based offset of the first character in the line.
- getLocation() - Method in class org.graalvm.polyglot.management.ExecutionEvent
-
Returns the source location of the event that was triggered or null if no
location source location is available.
- getMember(String) - Method in interface org.graalvm.polyglot.proxy.ProxyObject
-
Returns the value of the member.
- getMember(String) - Method in class org.graalvm.polyglot.Value
-
Returns the member with a given identifier or null if the member
does not exist.
- getMemberKeys() - Method in interface org.graalvm.polyglot.proxy.ProxyObject
-
Returns an array of member keys.
- getMemberKeys() - Method in class org.graalvm.polyglot.Value
-
Returns a set of all member keys.
- getMessage() - Method in exception org.graalvm.polyglot.PolyglotException
-
Gets a user readable message for the polyglot exception.
- getMetaObject() - Method in class org.graalvm.polyglot.Value
-
Returns the metaobject that is associated with this value or null if no
metaobject is available.
- getMetaParents() - Method in class org.graalvm.polyglot.Value
-
- getMetaQualifiedName() - Method in class org.graalvm.polyglot.Value
-
Returns the qualified name of a metaobject as
String.
- getMetaSimpleName() - Method in class org.graalvm.polyglot.Value
-
Returns the simple name of a metaobject as
string.
- getMimeType(Path) - Method in interface org.graalvm.polyglot.io.FileSystem
-
Returns a MIME type for given path.
- getMimeType() - Method in class org.graalvm.polyglot.Source
-
Returns the MIME type that is associated with this source.
- getMimeTypes() - Method in class org.graalvm.polyglot.Language
-
Returns the MIME types supported by this language.
- getName() - Method in class org.graalvm.options.OptionDescriptor
-
Returns the name of the option that this descriptor represents.
- getName() - Method in class org.graalvm.options.OptionType
-
Returns the name of this type.
- getName() - Method in class org.graalvm.polyglot.Instrument
-
Gets a human-readable name for this instrument.
- getName() - Method in class org.graalvm.polyglot.Language
-
Gets a human-readable name for the language (for example, "JavaScript").
- getName() - Method in class org.graalvm.polyglot.Source
-
Returns the name of this resource holding a guest language program.
- getNext() - Method in interface org.graalvm.polyglot.proxy.ProxyIterator
-
Returns the next element in the iteration.
- getOptions() - Method in class org.graalvm.polyglot.Engine
-
Returns all options available for the engine.
- getOptions() - Method in class org.graalvm.polyglot.Instrument
-
Gets the options available for this instrument.
- getOptions() - Method in class org.graalvm.polyglot.Language
-
Returns the set of options provided by this language.
- getOutputRedirect() - Method in class org.graalvm.polyglot.io.ProcessHandler.ProcessCommand
-
Returns the standard output destination.
- getOutputStream() - Method in class org.graalvm.polyglot.io.ProcessHandler.Redirect
-
Returns the output stream to redirect to.
- getPath() - Method in class org.graalvm.polyglot.Source
-
The fully qualified name of the source.
- getPathSeparator() - Method in interface org.graalvm.polyglot.io.FileSystem
-
Returns the path separator used to separate filenames in a path list.
- getPolyglotBindings() - Method in class org.graalvm.polyglot.Context
-
Returns polyglot bindings that may be used to exchange symbols between the host and guest
languages.
- getPolyglotStackTrace() - Method in exception org.graalvm.polyglot.PolyglotException
-
- getRawType() - Method in class org.graalvm.polyglot.TypeLiteral
-
Returns the raw class type of the literal.
- getReader() - Method in class org.graalvm.polyglot.Source
-
Returns a new reader that reads from the
characters provided by this
source.
- getReturnValue() - Method in class org.graalvm.polyglot.management.ExecutionEvent
-
Returns the return value of this source location after it was executed.
- getRootName() - Method in class org.graalvm.polyglot.management.ExecutionEvent
-
Returns the root name or null if no name is available.
- getRootName() - Method in class org.graalvm.polyglot.PolyglotException.StackFrame
-
Returns the root name of this stack frame.
- getSeparator() - Method in interface org.graalvm.polyglot.io.FileSystem
-
Returns the name separator used to separate names in a path string.
- getSize() - Method in interface org.graalvm.polyglot.proxy.ProxyArray
-
Returns the reported size of the array.
- getSource() - Method in class org.graalvm.polyglot.SourceSection
-
Representation of the source program that contains this section.
- getSourceLocation() - Method in exception org.graalvm.polyglot.PolyglotException
-
Gets a guest language source location of this error or null if no source
location is available for this exception.
- getSourceLocation() - Method in class org.graalvm.polyglot.PolyglotException.StackFrame
-
Returns the source location of the stack frame or null if no source location
is available.
- getSourceLocation() - Method in class org.graalvm.polyglot.Value
-
Returns the declared source location of the value.
- getStability() - Method in class org.graalvm.options.OptionDescriptor
-
Returns the stability of this option.
- getStackTrace() - Method in exception org.graalvm.polyglot.PolyglotException
-
Gets stack trace elements for Java and guest languages.
- getStartColumn() - Method in class org.graalvm.polyglot.SourceSection
-
Returns the 1-based column number of the first character in this section (inclusive).
- getStartLine() - Method in class org.graalvm.polyglot.SourceSection
-
Returns 1-based line number of the first character in this section (inclusive).
- getTempDirectory() - Method in interface org.graalvm.polyglot.io.FileSystem
-
Returns the default temporary directory.
- getToolHomes() - Method in class org.graalvm.home.HomeFinder
-
- getType() - Method in class org.graalvm.options.OptionKey
-
Returns the option type of this key.
- getType() - Method in class org.graalvm.polyglot.TypeLiteral
-
Returns the type literal including generic type information.
- getURI() - Method in class org.graalvm.polyglot.Source
-
Get the URI of the source.
- getURL() - Method in class org.graalvm.polyglot.Source
-
The URL if the source is retrieved via URL.
- getUsageSyntax() - Method in class org.graalvm.options.OptionDescriptor
-
Specifies a human-readable syntax describing the accepted values for this option.
- getValue(OptionValues) - Method in class org.graalvm.options.OptionKey
-
Returns the value of this key given the
values.
- getVersion() - Method in class org.graalvm.home.HomeFinder
-
- getVersion() - Method in class org.graalvm.polyglot.Engine
-
Gets the version string of the engine in an unspecified format.
- getVersion() - Method in class org.graalvm.polyglot.Instrument
-
Gets the version of this instrument.
- getVersion() - Method in class org.graalvm.polyglot.Language
-
Gets the version information of the language in an arbitrary language-specific format.
- getWebsite() - Method in class org.graalvm.polyglot.Instrument
-
Gets the website of this instrument.
- getWebsite() - Method in class org.graalvm.polyglot.Language
-
Get the URL for the language website.
- hasArrayElements() - Method in class org.graalvm.polyglot.Value
-
Returns true if this polyglot value has array elements.
- hasBeenSet(OptionValues) - Method in class org.graalvm.options.OptionKey
-
Returns true if a value for this key has been set for the given option values or
false if no value has been set.
- hasBeenSet(OptionKey<?>) - Method in interface org.graalvm.options.OptionValues
-
- hasBufferElements() - Method in class org.graalvm.polyglot.Value
-
Returns true if the receiver may have buffer elements.
- hasBytes() - Method in class org.graalvm.polyglot.Source
-
Returns true if this source represents a byte based source, else
false.
- hasCharacters() - Method in class org.graalvm.polyglot.Source
-
Returns true if this source represents a character based source, else
false.
- hasCharIndex() - Method in class org.graalvm.polyglot.SourceSection
-
Returns true if this section has a character index information,
false otherwise.
- hasColumns() - Method in class org.graalvm.polyglot.SourceSection
-
Returns true if this section has a column number information, false
otherwise.
- hasHashEntries() - Method in class org.graalvm.polyglot.Value
-
Returns true if this polyglot value represents a map.
- hasHashEntry(Value) - Method in interface org.graalvm.polyglot.proxy.ProxyHashMap
-
Returns true if the proxy object contains a mapping for the specified key, or else
false.
- hasHashEntry(Object) - Method in class org.graalvm.polyglot.Value
-
Returns true if mapping for the specified key exists.
- hashCode() - Method in class org.graalvm.home.Version
- hashCode() - Method in class org.graalvm.options.OptionDescriptor
- hashCode() - Method in class org.graalvm.options.OptionMap
-
- hashCode() - Method in class org.graalvm.polyglot.Context
- hashCode() - Method in class org.graalvm.polyglot.HostAccess
- hashCode() - Method in class org.graalvm.polyglot.io.IOAccess
- hashCode() - Method in class org.graalvm.polyglot.io.ProcessHandler.Redirect
- hashCode() - Method in exception org.graalvm.polyglot.PolyglotException
- hashCode() - Method in class org.graalvm.polyglot.Source
- hashCode() - Method in class org.graalvm.polyglot.SourceSection
-
- hashCode() - Method in class org.graalvm.polyglot.TypeLiteral
-
- hashCode() - Method in class org.graalvm.polyglot.Value
-
Returns the identity hash code of the underlying object.
- hasIterator() - Method in class org.graalvm.polyglot.Value
-
Returns true if this polyglot value provides an iterator.
- hasIteratorNextElement() - Method in class org.graalvm.polyglot.Value
-
Returns true if the value represents an iterator which has more elements, else
false.
- hasLines() - Method in class org.graalvm.polyglot.SourceSection
-
Returns true if this section has a line number information, false
otherwise.
- hasMember(String) - Method in interface org.graalvm.polyglot.proxy.ProxyObject
-
Returns true if the proxy object contains a member with the given key, or else
false.
- hasMember(String) - Method in class org.graalvm.polyglot.Value
-
Returns true if such a member exists for a given identifier.
- hasMembers() - Method in class org.graalvm.polyglot.Value
-
Returns true if this value generally supports containing members.
- hasMetaParents() - Method in class org.graalvm.polyglot.Value
-
Returns true if the value represents a metaobject and the metaobject has meta
parents.
- hasNext() - Method in interface org.graalvm.polyglot.proxy.ProxyIterator
-
Returns true if the iterator has more elements, else false.
- hasSetOptions() - Method in interface org.graalvm.options.OptionValues
-
- help(String) - Method in class org.graalvm.options.OptionDescriptor.Builder
-
Specifies a human-readable description on how to use the option.
- HomeFinder - Class in org.graalvm.home
-
A utility class to find various paths of the running GraalVM, as well as the version.
- HomeFinder() - Constructor for class org.graalvm.home.HomeFinder
-
- HostAccess - Class in org.graalvm.polyglot
-
Represents the host access policy of a polyglot context.
- HostAccess.Builder - Class in org.graalvm.polyglot
-
- HostAccess.DisableMethodScoping - Annotation Type in org.graalvm.polyglot
-
If
HostAccess.SCOPED is used, placing this annotation on an exported host function
excludes it from parameter scoping, i.e.
- HostAccess.Export - Annotation Type in org.graalvm.polyglot
-
Annotation used by the predefined
HostAccess.EXPLICIT access policy to mark public
constructors, methods and fields in public classes that should be accessible by the guest
application.
- HostAccess.Implementable - Annotation Type in org.graalvm.polyglot
-
Allows guest language to implement a Java type.
- HostAccess.MutableTargetMapping - Enum in org.graalvm.polyglot
-
List of default host object mappings of mutable target types available in
Value.as(Class).
- HostAccess.TargetMappingPrecedence - Enum in org.graalvm.polyglot
-
Represents the precedence of a target type mapping.
- hostClassLoader(ClassLoader) - Method in class org.graalvm.polyglot.Context.Builder
-
Sets a host class loader.
- in(InputStream) - Method in class org.graalvm.polyglot.Context.Builder
-
Sets the input stream to be used for the context.
- in(InputStream) - Method in class org.graalvm.polyglot.Engine.Builder
-
Sets the standard input stream to be used for this engine.
- INHERIT - Static variable in class org.graalvm.polyglot.EnvironmentAccess
-
Provides guest languages read access to process environment.
- INHERIT - Static variable in class org.graalvm.polyglot.io.ProcessHandler.Redirect
-
Indicates that subprocess I/O source or destination will be the same as those of the
current process.
- initialize(String) - Method in class org.graalvm.polyglot.Context
-
Forces the initialization of a language.
- Instrument - Class in org.graalvm.polyglot
-
A handle for an
instrument installed in an
engine.
- interactive(boolean) - Method in class org.graalvm.polyglot.Source.Builder
-
Marks the source as interactive.
- internal(boolean) - Method in class org.graalvm.polyglot.Source.Builder
-
Set whether this source has been marked as internal, meaning that it has been
provided by the infrastructure, language implementation, or system library.
- interrupt(Duration) - Method in class org.graalvm.polyglot.Context
-
Use this method to interrupt this context.
- invokeMember(String, Object...) - Method in class org.graalvm.polyglot.Value
-
Invokes the given member of this value.
- IOAccess - Class in org.graalvm.polyglot.io
-
Represents an IO access configuration of a polyglot context.
- IOAccess.Builder - Class in org.graalvm.polyglot.io
-
- isAvailable() - Method in class org.graalvm.polyglot.SourceSection
-
Returns whether this is a special instance that signifies that source information is
available.
- isBoolean() - Method in class org.graalvm.polyglot.Value
-
Returns true if this value represents a boolean value.
- isBufferWritable() - Method in class org.graalvm.polyglot.Value
-
Returns true if the receiver object is a modifiable buffer.
- isCancelled() - Method in exception org.graalvm.polyglot.PolyglotException
-
Returns true if the execution was cancelled.
- isDate() - Method in class org.graalvm.polyglot.Value
-
Returns true if this object represents a date, else false.
- isDeprecated() - Method in class org.graalvm.options.OptionDescriptor
-
Returns true if this option was marked deprecated.
- isDuration() - Method in class org.graalvm.polyglot.Value
-
Returns true if this object represents a duration, else false.
- isException() - Method in class org.graalvm.polyglot.Value
-
Returns true if this object represents an exception, else false.
- isExit() - Method in exception org.graalvm.polyglot.PolyglotException
-
Returns true if this exception is caused by an attempt of a guest language
program to exit the application.
- isExpression() - Method in class org.graalvm.polyglot.management.ExecutionEvent
-
Returns true if the source location is marked as expression, else
false.
- isGuestException() - Method in exception org.graalvm.polyglot.PolyglotException
-
Returns true if this exception originates from a Graal guest language.
- isGuestFrame() - Method in class org.graalvm.polyglot.PolyglotException.StackFrame
-
Returns true if the stack frame originates from the guest language.
- isHostException() - Method in exception org.graalvm.polyglot.PolyglotException
-
Returns true if this exception originates from the Java host language.
- isHostFrame() - Method in class org.graalvm.polyglot.PolyglotException.StackFrame
-
Returns true if the stack frame originates from the host language.
- isHostObject() - Method in class org.graalvm.polyglot.Value
-
Returns true if the value originated form the host language Java.
- isIncompleteSource() - Method in exception org.graalvm.polyglot.PolyglotException
-
Returns true if this exception indicates a syntax error that is indicating that
the syntax is incomplete.
- isInstant() - Method in class org.graalvm.polyglot.Value
-
Returns true if this value represents an instant.
- isInteractive() - Method in class org.graalvm.polyglot.Language
-
Returns
true if a the language is suitable for interactive evaluation of
sources.
- isInteractive() - Method in class org.graalvm.polyglot.Source
-
Check whether this source has been marked as interactive.
- isInternal() - Method in class org.graalvm.polyglot.Source
-
Gets whether this source has been marked as internal, meaning that it has been
provided by the infrastructure, language implementation, or system library.
- isInternalError() - Method in exception org.graalvm.polyglot.PolyglotException
-
Returns true if this exception was caused by an internal implementation error.
- isInterrupted() - Method in exception org.graalvm.polyglot.PolyglotException
-
- isIterator() - Method in class org.graalvm.polyglot.Value
-
Returns true if the value represents an iterator object.
- isMetaInstance(Object) - Method in class org.graalvm.polyglot.Value
-
Returns true if the given instance is an instance of this value, else
false.
- isMetaObject() - Method in class org.graalvm.polyglot.Value
-
Returns true if the value represents a metaobject.
- isNativePointer() - Method in class org.graalvm.polyglot.Value
-
Returns true if this value is a native pointer.
- isNull() - Method in class org.graalvm.polyglot.Value
-
Returns true if this value is a null like.
- isNumber() - Method in class org.graalvm.polyglot.Value
-
Returns
true if this value represents a
number, else
false.
- ISOLATED - Static variable in class org.graalvm.polyglot.HostAccess
-
Predefined host access policy used by Context with an
SandboxPolicy.ISOLATED sandbox
policy when the host access policy is not explicitly specified by the embedder.
- isOptionMap() - Method in class org.graalvm.options.OptionDescriptor
-
Returns true if this option is an option map.
- isProxyObject() - Method in class org.graalvm.polyglot.Value
-
Returns
true if this value represents a
Proxy.
- isRedirectErrorStream() - Method in class org.graalvm.polyglot.io.ProcessHandler.ProcessCommand
-
Return whether the standard error output should be merged into standard output.
- isRelease() - Method in class org.graalvm.home.Version
-
Returns true if this is a supported release build of GraalVM else
false.
- isResourceExhausted() - Method in exception org.graalvm.polyglot.PolyglotException
-
Returns true if this exception indicates that a resource limit was exceeded,
else false.
- isRoot() - Method in class org.graalvm.polyglot.management.ExecutionEvent
-
Returns true if the source location is marked as a root of a function, method or
closure, else false.
- isSameFile(Path, Path, LinkOption...) - Method in interface org.graalvm.polyglot.io.FileSystem
-
Tests if the given paths refer to the same physical file.
- isSnapshot() - Method in class org.graalvm.home.Version
-
Returns true if this is an unsupported snapshot build of GraalVM else
false.
- isStatement() - Method in class org.graalvm.polyglot.management.ExecutionEvent
-
Returns true if the source location is marked as a statement, else
false.
- isStricterOrEqual(SandboxPolicy) - Method in enum org.graalvm.polyglot.SandboxPolicy
-
- isStricterThan(SandboxPolicy) - Method in enum org.graalvm.polyglot.SandboxPolicy
-
- isString() - Method in class org.graalvm.polyglot.Value
-
Returns true if this value represents a string.
- isSyntaxError() - Method in exception org.graalvm.polyglot.PolyglotException
-
Returns true if this exception indicates a parser or syntax error.
- isTime() - Method in class org.graalvm.polyglot.Value
-
Returns true if this object represents a time, else false.
- isTimeZone() - Method in class org.graalvm.polyglot.Value
-
Returns true if this object represents a timezone, else false.
- iterator() - Method in interface org.graalvm.options.OptionDescriptors
- parse(String) - Static method in class org.graalvm.home.Version
-
Parses a GraalVM version from its String raw format.
- parse(Source) - Method in class org.graalvm.polyglot.Context
-
Parses but does not evaluate a given source by using the
language specified in the source and returns a
value that can be
executed.
- parse(String, CharSequence) - Method in class org.graalvm.polyglot.Context
-
Parses but does not evaluate a guest language code literal using a provided
language id and character sequence and returns a
value
that can be
executed.
- parsePath(URI) - Method in interface org.graalvm.polyglot.io.FileSystem
-
Parses a path from an
URI.
- parsePath(String) - Method in interface org.graalvm.polyglot.io.FileSystem
-
- pin() - Method in class org.graalvm.polyglot.Value
-
Pins a scoped value such that it can be used beyond the scope of a scoped host method call.
- PIPE - Static variable in class org.graalvm.polyglot.io.ProcessHandler.Redirect
-
Indicates that subprocess I/O will be connected to the current Java process using a pipe.
- PolyglotAccess - Class in org.graalvm.polyglot
-
Represents an access policy for polyglot builtins in the guest languages.
- PolyglotAccess.Builder - Class in org.graalvm.polyglot
-
A builder for a polyglot access configuration.
- PolyglotException - Exception in org.graalvm.polyglot
-
A polyglot exception represents errors that contain Graal guest languages on the stack trace.
- PolyglotException.StackFrame - Class in org.graalvm.polyglot
-
Represents a polyglot stack frame originating from a guest language or the host language
Java.
- printStackTrace() - Method in exception org.graalvm.polyglot.PolyglotException
-
Prints host and guest language stack frames to the standard
error output.
- printStackTrace(PrintStream) - Method in exception org.graalvm.polyglot.PolyglotException
-
Prints host and guest language stack frames to specified print stream.
- printStackTrace(PrintWriter) - Method in exception org.graalvm.polyglot.PolyglotException
-
Prints host and guest language stack frames to specified print writer.
- processHandler(ProcessHandler) - Method in class org.graalvm.polyglot.Context.Builder
-
- ProcessHandler - Interface in org.graalvm.polyglot.io
-
Service-provider for guest languages process builder.
- ProcessHandler.ProcessCommand - Class in org.graalvm.polyglot.io
-
Subprocess attributes passed to
start method.
- ProcessHandler.Redirect - Class in org.graalvm.polyglot.io
-
Represents a source of subprocess input or a destination of subprocess output.
- Proxy - Interface in org.graalvm.polyglot.proxy
-
Proxy interfaces allow to mimic guest language objects, arrays, executables, primitives and
native objects in Graal languages.
- ProxyArray - Interface in org.graalvm.polyglot.proxy
-
Interface to be implemented to mimic guest language arrays.
- ProxyDate - Interface in org.graalvm.polyglot.proxy
-
Interface to be implemented to mimic guest language objects that represents dates.
- ProxyDuration - Interface in org.graalvm.polyglot.proxy
-
Interface to be implemented to mimic guest language objects that represents durations.
- ProxyExecutable - Interface in org.graalvm.polyglot.proxy
-
Interface to be implemented to mimic guest language objects that are executable.
- ProxyHashMap - Interface in org.graalvm.polyglot.proxy
-
Interface to be implemented to mimic guest language hash maps.
- ProxyInstant - Interface in org.graalvm.polyglot.proxy
-
Interface to be implemented to mimic guest language objects that represents timestamps.
- ProxyInstantiable - Interface in org.graalvm.polyglot.proxy
-
Interface to be implemented to mimic guest language objects that are instantiable.
- ProxyIterable - Interface in org.graalvm.polyglot.proxy
-
Interface to be implemented to mimic guest language iterables.
- ProxyIterator - Interface in org.graalvm.polyglot.proxy
-
Interface to be implemented to mimic guest language iterators.
- ProxyNativeObject - Interface in org.graalvm.polyglot.proxy
-
Interface to be implemented to mimic native pointers.
- ProxyObject - Interface in org.graalvm.polyglot.proxy
-
Interface to be implemented to mimic guest language objects that contain members.
- ProxyTime - Interface in org.graalvm.polyglot.proxy
-
Interface to be implemented to mimic guest language objects that represents times.
- ProxyTimeZone - Interface in org.graalvm.polyglot.proxy
-
Interface to be implemented to mimic guest language objects that represents timezones.
- putHashEntry(Value, Value) - Method in interface org.graalvm.polyglot.proxy.ProxyHashMap
-
Associates the specified value with the specified key.
- putHashEntry(Object, Object) - Method in class org.graalvm.polyglot.Value
-
Associates the specified value with the specified key.
- putMember(String, Value) - Method in interface org.graalvm.polyglot.proxy.ProxyObject
-
Sets the value associated with a member.
- putMember(String, Object) - Method in class org.graalvm.polyglot.Value
-
Sets the value of a member using an identifier.