- EngineTerminationException(String) - Constructor for exception jdk.jshell.spi.ExecutionControl.EngineTerminationException
-
- err(PrintStream) - Method in class jdk.jshell.JShell.Builder
-
Sets the error output for the running evaluation (it's
System.err
).
- ErroneousSnippet - Class in jdk.jshell
-
A snippet of code that is not valid Java programming language code.
- eval(String) - Method in class jdk.jshell.JShell
-
Evaluate the input String, including definition and/or execution, if
applicable.
- EvalException - Exception in jdk.jshell
-
Wraps an exception thrown in the remotely executing client.
- exception() - Method in class jdk.jshell.SnippetEvent
-
- ExecutionControl - Interface in jdk.jshell.spi
-
This interface specifies the functionality that must provided to implement a
pluggable JShell execution engine.
- ExecutionControl.ClassBytecodes - Class in jdk.jshell.spi
-
Bundles class name with class bytecodes.
- ExecutionControl.ClassInstallException - Exception in jdk.jshell.spi
-
A class install (load or redefine) encountered a problem.
- ExecutionControl.EngineTerminationException - Exception in jdk.jshell.spi
-
Unbidden execution engine termination has occurred.
- ExecutionControl.ExecutionControlException - Exception in jdk.jshell.spi
-
The abstract base of all ExecutionControl
exceptions.
- ExecutionControl.Generator - Interface in jdk.jshell.spi
-
- ExecutionControl.InternalException - Exception in jdk.jshell.spi
-
An internal problem has occurred.
- ExecutionControl.NotImplementedException - Exception in jdk.jshell.spi
-
The command is not implemented.
- ExecutionControl.ResolutionException - Exception in jdk.jshell.spi
-
An exception indicating that a DeclarationSnippet
with unresolved
references has been encountered.
- ExecutionControl.RunException - Exception in jdk.jshell.spi
-
The abstract base of of exceptions specific to running user code.
- ExecutionControl.StoppedException - Exception in jdk.jshell.spi
-
- ExecutionControl.UserException - Exception in jdk.jshell.spi
-
A 'normal' user exception occurred.
- ExecutionControlException(String) - Constructor for exception jdk.jshell.spi.ExecutionControl.ExecutionControlException
-
- executionEngine(ExecutionControl.Generator) - Method in class jdk.jshell.JShell.Builder
-
Sets the custom engine for execution.
- ExecutionEnv - Interface in jdk.jshell.spi
-
Functionality made available to a pluggable JShell execution engine.
- ExpressionSnippet - Class in jdk.jshell
-
Snippet for an assignment or variable-value expression.
- extensionCommand(String, Object) - Method in class jdk.jshell.execution.DirectExecutionControl
-
- extensionCommand(String, Object) - Method in class jdk.jshell.execution.StreamingExecutionControl
-
- extensionCommand(String, Object) - Method in interface jdk.jshell.spi.ExecutionControl
-
Run a non-standard command (or a standard command from a newer version).
- extraRemoteVMOptions() - Method in interface jdk.jshell.spi.ExecutionEnv
-
Returns the additional VM options to be used when launching the remote
JVM.
- id() - Method in class jdk.jshell.Snippet
-
The unique identifier for the snippet.
- id() - Method in exception jdk.jshell.spi.ExecutionControl.ResolutionException
-
Retrieves the internal identifier of the unresolved identifier.
- id() - Method in exception jdk.jshell.spi.SPIResolutionException
-
Retrieves the internal identifier of the unresolved identifier.
- idGenerator(BiFunction<Snippet, Integer, String>) - Method in class jdk.jshell.JShell.Builder
-
Sets the generator of identifying names for Snippets.
- imports() - Method in class jdk.jshell.JShell
-
Returns the active import snippets.
- ImportSnippet - Class in jdk.jshell
-
Snippet for an import declaration.
- in(InputStream) - Method in class jdk.jshell.JShell.Builder
-
Sets the input for the running evaluation (it's System.in
).
- installed() - Method in exception jdk.jshell.spi.ExecutionControl.ClassInstallException
-
Indicates which of the passed classes were successfully
loaded/redefined.
- InternalException(String) - Constructor for exception jdk.jshell.spi.ExecutionControl.InternalException
-
- invoke(Method) - Method in class jdk.jshell.execution.DirectExecutionControl
-
Invoke the specified "doit-method", a static method with no parameters.
- invoke(Method) - Method in class jdk.jshell.execution.LocalExecutionControl
-
- invoke(Method) - Method in class jdk.jshell.execution.RemoteExecutionControl
-
- invoke(String, String) - Method in class jdk.jshell.execution.DirectExecutionControl
-
- invoke(String, String) - Method in class jdk.jshell.execution.JDIDefaultExecutionControl
-
- invoke(String, String) - Method in class jdk.jshell.execution.StreamingExecutionControl
-
- invoke(String, String) - Method in interface jdk.jshell.spi.ExecutionControl
-
Invokes an executable Snippet by calling a method on the specified
wrapper class.
- isActive() - Method in enum jdk.jshell.Snippet.Status
-
- isComplete() - Method in enum jdk.jshell.SourceCodeAnalysis.Completeness
-
Indicates whether the first snippet of source is complete.
- isDefined() - Method in enum jdk.jshell.Snippet.Status
-
Indicates whether the snippet is currently part of the defined state
of the JShell.
- isError() - Method in class jdk.jshell.Diag
-
Indicates whether this diagnostic is an error (as opposed to a warning or
note).
- isExecutable() - Method in enum jdk.jshell.Snippet.SubKind
-
Indicates whether this SubKind
is executable.
- isPersistent() - Method in enum jdk.jshell.Snippet.Kind
-
Indicates whether this Kind
of Snippet is persistent.
- isResolvable() - Method in class jdk.jshell.SourceCodeAnalysis.QualifiedNames
-
Indicates whether the given simple name in the original code refers
to a resolvable element.
- isSignatureChange() - Method in class jdk.jshell.SnippetEvent
-
Indicates whether the signature has changed.
- isStatic() - Method in class jdk.jshell.ImportSnippet
-
Indicates whether this snippet represents a static import.
- isUpToDate() - Method in class jdk.jshell.SourceCodeAnalysis.QualifiedNames
-
Indicates whether the result is based on up-to-date data.
- setClasspath(String) - Method in class jdk.jshell.execution.DirectExecutionControl
-
- setClasspath(String) - Method in interface jdk.jshell.execution.LoaderDelegate
-
Sets the execution class path to the specified path.
- setClasspath(String) - Method in class jdk.jshell.execution.StreamingExecutionControl
-
- setClasspath(String) - Method in interface jdk.jshell.spi.ExecutionControl
-
Sets the execution class path to the specified path.
- signature() - Method in class jdk.jshell.MethodSnippet
-
The full type signature of the method, including return type.
- snippet() - Method in class jdk.jshell.SnippetEvent
-
The Snippet which has changed
- Snippet - Class in jdk.jshell
-
A Snippet represents a snippet of Java source code as passed to
JShell.eval
.
- Snippet.Kind - Enum in jdk.jshell
-
Describes the general kind of snippet.
- Snippet.Status - Enum in jdk.jshell
-
Describes the current state of a Snippet.
- Snippet.SubKind - Enum in jdk.jshell
-
The detailed variety of a snippet.
- SnippetEvent - Class in jdk.jshell
-
A description of a change to a Snippet.
- snippets() - Method in class jdk.jshell.JShell
-
Return all snippets.
- source() - Method in class jdk.jshell.Snippet
-
Return the source code of the snippet.
- source() - Method in interface jdk.jshell.SourceCodeAnalysis.CompletionInfo
-
Source code for the first Snippet of code input.
- source() - Method in interface jdk.jshell.SourceCodeAnalysis.SnippetWrapper
-
Returns the input that is wrapped.
- sourceCodeAnalysis() - Method in class jdk.jshell.JShell
-
Access to source code analysis functionality.
- SourceCodeAnalysis - Class in jdk.jshell
-
Provides analysis utilities for source code input.
- SourceCodeAnalysis.Completeness - Enum in jdk.jshell
-
Describes the completeness of the given input.
- SourceCodeAnalysis.CompletionInfo - Interface in jdk.jshell
-
The result of analyzeCompletion(String input)
.
- SourceCodeAnalysis.QualifiedNames - Class in jdk.jshell
-
List of possible qualified names.
- SourceCodeAnalysis.SnippetWrapper - Interface in jdk.jshell
-
The wrapping of a snippet of Java source into valid top-level Java
source.
- SourceCodeAnalysis.Suggestion - Interface in jdk.jshell
-
A candidate for continuation of the given user's input.
- sourceToWrappedPosition(int) - Method in interface jdk.jshell.SourceCodeAnalysis.SnippetWrapper
-
Maps character position within the source to character position
within the wrapped.
- SPIResolutionException - Exception in jdk.jshell.spi
-
The construction and throw of this exception is embedded in code generated by
the JShell core implementation in such a way that, upon executing a
RECOVERABLE_DEFINED
user method, this exception is thrown.
- SPIResolutionException(int) - Constructor for exception jdk.jshell.spi.SPIResolutionException
-
Constructs an SPI layer exception indicating that a
DeclarationSnippet
with unresolved references has been
encountered.
- StatementSnippet - Class in jdk.jshell
-
Snippet for a statement.
- status() - Method in class jdk.jshell.SnippetEvent
-
The after status.
- status(Snippet) - Method in class jdk.jshell.JShell
-
Return the status of the snippet.
- stop() - Method in class jdk.jshell.execution.DirectExecutionControl
-
Interrupts a running invoke.
- stop() - Method in class jdk.jshell.execution.JDIDefaultExecutionControl
-
Interrupts a running remote invoke by manipulating remote variables
and sending a stop via JDI.
- stop() - Method in class jdk.jshell.execution.LocalExecutionControl
-
- stop() - Method in class jdk.jshell.execution.RemoteExecutionControl
-
- stop() - Method in class jdk.jshell.execution.StreamingExecutionControl
-
- stop() - Method in class jdk.jshell.JShell
-
Attempt to stop currently running evaluation.
- stop() - Method in interface jdk.jshell.spi.ExecutionControl
-
Interrupts a running invoke.
- StoppedException() - Constructor for exception jdk.jshell.spi.ExecutionControl.StoppedException
-
- StreamingExecutionControl - Class in jdk.jshell.execution
-
An implementation of the
ExecutionControl
execution engine SPI which streams requests to a remote agent where
execution takes place.
- StreamingExecutionControl(ObjectOutput, ObjectInput) - Constructor for class jdk.jshell.execution.StreamingExecutionControl
-
Creates an instance.
- subKind() - Method in class jdk.jshell.Snippet
-
- value() - Method in class jdk.jshell.SnippetEvent
-
The result value of successful run.
- valueOf(String) - Static method in enum jdk.jshell.Snippet.Kind
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum jdk.jshell.Snippet.Status
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum jdk.jshell.Snippet.SubKind
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum jdk.jshell.SourceCodeAnalysis.Completeness
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum jdk.jshell.Snippet.Kind
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum jdk.jshell.Snippet.Status
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum jdk.jshell.Snippet.SubKind
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum jdk.jshell.SourceCodeAnalysis.Completeness
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- valueString(Object) - Static method in class jdk.jshell.execution.DirectExecutionControl
-
- variables() - Method in class jdk.jshell.JShell
-
Returns the active variable snippets.
- VarSnippet - Class in jdk.jshell
-
Snippet for a variable definition.
- varValue(String, String) - Method in class jdk.jshell.execution.DirectExecutionControl
-
- varValue(String, String) - Method in class jdk.jshell.execution.RemoteExecutionControl
-
- varValue(String, String) - Method in class jdk.jshell.execution.StreamingExecutionControl
-
- varValue(String, String) - Method in interface jdk.jshell.spi.ExecutionControl
-
Returns the value of a variable.
- varValue(VarSnippet) - Method in class jdk.jshell.JShell
-
Get the current value of a variable.
- vm() - Method in class jdk.jshell.execution.JDIDefaultExecutionControl
-
- vm() - Method in class jdk.jshell.execution.JDIExecutionControl
-
Returns the JDI VirtualMachine
instance.
- vm() - Method in class jdk.jshell.execution.JDIInitiator
-
Returns the resulting VirtualMachine
instance.