Top Description Fields Constructors Methods
org.graalvm.polyglot

public final Class EnvironmentAccess

extends Object
Class Inheritance
Imports
org.graalvm.polyglot.Context.Builder

Represents an access policy to the process environment for the guest languages of a context.
Since
19.1.0

Field Summary

Modifier and TypeField and Description
public static final EnvironmentAccess
INHERIT

Provides guest languages read access to process environment.

private final String
public static final EnvironmentAccess
NONE

Provides guest languages no access to process environment.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

INHERITback to summary
public static final EnvironmentAccess INHERIT

Provides guest languages read access to process environment. The INHERIT is a default value for Contexts created with all access set to true.

Since
19.1.0
nameback to summary
private final String name
NONEback to summary
public static final EnvironmentAccess NONE

Provides guest languages no access to process environment. No environment variables are visible for reading. The NONE is a default value for Contexts created without all access.

Since
19.1.0

Constructor Detail

EnvironmentAccessback to summary
private EnvironmentAccess(String name)

Method Detail

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override
Since
22.3