- CLASS_SUBKIND - jdk.jshell.Snippet.SubKind
-
A class declaration.
- COMPLETE - jdk.jshell.SourceCodeAnalysis.Completeness
-
The input is a complete source snippet (declaration or statement) as is.
- COMPLETE_WITH_SEMI - jdk.jshell.SourceCodeAnalysis.Completeness
-
With this addition of a semicolon the input is a complete source snippet.
- CONSIDERED_INCOMPLETE - jdk.jshell.SourceCodeAnalysis.Completeness
-
A statement with a trailing (non-terminated) empty statement.
- ClassBytecodes(String, byte[]) - Constructor for class jdk.jshell.spi.ExecutionControl.ClassBytecodes
-
Creates a name/bytecode pair.
- ClassInstallException(String, boolean[]) - Constructor for exception jdk.jshell.spi.ExecutionControl.ClassInstallException
-
- causeExceptionClass() - Method in exception jdk.jshell.spi.ExecutionControl.UserException
-
Returns the class of the user exception.
- causeSnippet() - Method in class jdk.jshell.SnippetEvent
-
Either the snippet whose change caused this update or
null
.
- className() - Method in class jdk.jshell.OuterSnippetsClassWrap
-
- clientCodeEnter() - Method in class jdk.jshell.execution.DirectExecutionControl
-
Marks entry into user code.
- clientCodeEnter() - Method in class jdk.jshell.execution.LocalExecutionControl
-
- clientCodeEnter() - Method in class jdk.jshell.execution.RemoteExecutionControl
-
- clientCodeLeave() - Method in class jdk.jshell.execution.DirectExecutionControl
-
Marks departure from user code.
- clientCodeLeave() - Method in class jdk.jshell.execution.LocalExecutionControl
-
- clientCodeLeave() - Method in class jdk.jshell.execution.RemoteExecutionControl
-
- close() - Method in class jdk.jshell.execution.DirectExecutionControl
-
- close() - Method in class jdk.jshell.execution.JdiDefaultExecutionControl
-
- close() - Method in class jdk.jshell.execution.StreamingExecutionControl
-
Closes the execution engine.
- close() - Method in class jdk.jshell.JShell
-
Close this state engine.
- close() - Method in interface jdk.jshell.spi.ExecutionControl
-
Shuts down this execution engine.
- closeDown() - Method in interface jdk.jshell.spi.ExecutionEnv
-
Reports that the execution engine has shutdown.
- compilerOptions(String...) - Method in class jdk.jshell.JShell.Builder
-
Adds compiler options.
- completeness() - Method in interface jdk.jshell.SourceCodeAnalysis.CompletionInfo
-
The analyzed completeness of the input.
- completionSuggestions(String, int, int[]) - Method in class jdk.jshell.SourceCodeAnalysis
-
Compute possible follow-ups for the given input.
- continuation() - Method in interface jdk.jshell.SourceCodeAnalysis.Suggestion
-
The candidate continuation of the given user's input.
- create() - Static method in class jdk.jshell.execution.LocalExecutionControl
-
Creates a local ExecutionControl instance.
- create() - Static method in class jdk.jshell.JShell
-
Create a new JShell state engine.
- create(String, boolean, String, int) - Static method in class jdk.jshell.execution.JdiDefaultExecutionControl
-
Creates a JDI based ExecutionControl instance.
- ErroneousSnippet - Class in jdk.jshell
-
A snippet of code that is not valid Java programming language code.
- EvalException - Exception in jdk.jshell
-
Wraps an exception thrown in the remotely executing client.
- 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.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.
- ExpressionSnippet - Class in jdk.jshell
-
Snippet for an assignment or variable-value expression.
- EMPTY - jdk.jshell.SourceCodeAnalysis.Completeness
-
An empty input.
- ENUM_SUBKIND - jdk.jshell.Snippet.SubKind
-
An enum declaration.
- ERRONEOUS - jdk.jshell.Snippet.Kind
-
A syntactically incorrect input for which the specific
kind could not be determined.
- EXPRESSION - jdk.jshell.Snippet.Kind
-
An expression, with or without side-effects.
- ExecutionControl - Interface in jdk.jshell.spi
-
This interface specifies the functionality that must provided to implement a
pluggable JShell execution engine.
- ExecutionControl.Generator - Interface in jdk.jshell.spi
-
- ExecutionEnv - Interface in jdk.jshell.spi
-
Functionality made available to a pluggable JShell execution engine.
- EngineTerminationException(String) - Constructor for exception jdk.jshell.spi.ExecutionControl.EngineTerminationException
-
- ExecutionControlException(String) - Constructor for exception jdk.jshell.spi.ExecutionControl.ExecutionControlException
-
- err(PrintStream) - Method in class jdk.jshell.JShell.Builder
-
Sets the error output for the running evaluation (it's
System.err
).
- eval(String) - Method in class jdk.jshell.JShell
-
Evaluate the input String, including definition and/or execution, if
applicable.
- exception() - Method in class jdk.jshell.SnippetEvent
-
- executionEngine(ExecutionControl.Generator) - Method in class jdk.jshell.JShell.Builder
-
Sets the custom engine for execution.
- 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.
- ImportSnippet - Class in jdk.jshell
-
Snippet for an import declaration.
- IMPORT - jdk.jshell.Snippet.Kind
-
An import declaration: import
...
- INTERFACE_SUBKIND - jdk.jshell.Snippet.SubKind
-
An interface declaration.
- InternalException(String) - Constructor for exception jdk.jshell.spi.ExecutionControl.InternalException
-
- 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.
- 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.
- 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.
- RemoteExecutionControl - Class in jdk.jshell.execution
-
The remote agent runs in the execution process (separate from the main JShell
process).
- RECOVERABLE_DEFINED - jdk.jshell.Snippet.Status
-
The snippet is a declaration snippet with potentially recoverable
unresolved references or other issues in its body
(in the context of current JShell
state).
- RECOVERABLE_NOT_DEFINED - jdk.jshell.Snippet.Status
-
The snippet is a declaration snippet with potentially recoverable
unresolved references or other issues
(in the context of current JShell
state).
- REJECTED - jdk.jshell.Snippet.Status
-
The snippet is inactive because it failed compilation on initial
evaluation and it is not capable of becoming valid with further
changes to the JShell state.
- RemoteExecutionControl() - Constructor for class jdk.jshell.execution.RemoteExecutionControl
-
Create an instance using the default class loading.
- RemoteExecutionControl(LoaderDelegate) - Constructor for class jdk.jshell.execution.RemoteExecutionControl
-
Creates an instance, delegating loader operations to the specified
delegate.
- ResolutionException(int, StackTraceElement[]) - Constructor for exception jdk.jshell.spi.ExecutionControl.ResolutionException
-
Constructs an exception indicating that a DeclarationSnippet
with unresolved references has been encountered.
- redefine(ExecutionControl.ClassBytecodes[]) - Method in class jdk.jshell.execution.DirectExecutionControl
-
- redefine(ExecutionControl.ClassBytecodes[]) - Method in class jdk.jshell.execution.JdiExecutionControl
-
Redefine the specified classes.
- redefine(ExecutionControl.ClassBytecodes[]) - Method in class jdk.jshell.execution.StreamingExecutionControl
-
- redefine(ExecutionControl.ClassBytecodes[]) - Method in interface jdk.jshell.spi.ExecutionControl
-
Attempts to redefine previously loaded classes.
- referenceType(VirtualMachine, String) - Method in class jdk.jshell.execution.JdiExecutionControl
-
Returns the JDI ReferenceType
corresponding to the specified
class name.
- remaining() - Method in interface jdk.jshell.SourceCodeAnalysis.CompletionInfo
-
Input remaining after the complete part of the source.
- remoteInputOutput(InputStream, OutputStream, Map<String, OutputStream>, Map<String, InputStream>, BiFunction<ObjectInput, ObjectOutput, ExecutionControl>) - Static method in class jdk.jshell.execution.Util
-
Creates an ExecutionControl for given packetized input and output.
- remoteVMOptions(String...) - Method in class jdk.jshell.JShell.Builder
-
Sets additional VM options for launching the VM.
- Snippet - Class in jdk.jshell
-
A Snippet represents a snippet of Java source code as passed to
JShell.eval
.
- SnippetEvent - Class in jdk.jshell
-
A description of a change to a Snippet.
- SourceCodeAnalysis - Class in jdk.jshell
-
Provides analysis utilities for source code input.
- SourceCodeAnalysis.QualifiedNames - Class in jdk.jshell
-
List of possible qualified names.
- 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.
- StatementSnippet - Class in jdk.jshell
-
Snippet for a statement.
- 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.
- 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.
- SourceCodeAnalysis.Completeness - Enum in jdk.jshell
-
Describes the completeness of the given input.
- SINGLE_STATIC_IMPORT_SUBKIND - jdk.jshell.Snippet.SubKind
-
Single-Static-Import Declaration.
- SINGLE_TYPE_IMPORT_SUBKIND - jdk.jshell.Snippet.SubKind
-
Single-Type-Import Declaration.
- STATEMENT - jdk.jshell.Snippet.Kind
-
A statement.
- STATEMENT_SUBKIND - jdk.jshell.Snippet.SubKind
-
A statement.
- STATIC_IMPORT_ON_DEMAND_SUBKIND - jdk.jshell.Snippet.SubKind
-
Static-Import-on-Demand Declaration.
- SourceCodeAnalysis.CompletionInfo - Interface in jdk.jshell
-
The result of analyzeCompletion(String input)
.
- SourceCodeAnalysis.Documentation - Interface in jdk.jshell
-
A documentation for a candidate for continuation of the given user's input.
- 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.
- SPIResolutionException(int) - Constructor for exception jdk.jshell.spi.SPIResolutionException
-
Constructs an SPI layer exception indicating that a
DeclarationSnippet
with unresolved references has been
encountered.
- StoppedException() - Constructor for exception jdk.jshell.spi.ExecutionControl.StoppedException
-
- StreamingExecutionControl(ObjectOutput, ObjectInput) - Constructor for class jdk.jshell.execution.StreamingExecutionControl
-
Creates an instance.
- 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.
- signature() - Method in interface jdk.jshell.SourceCodeAnalysis.Documentation
-
The signature of the given element.
- snippet() - Method in class jdk.jshell.SnippetEvent
-
The Snippet which has changed
- 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.
- sourceToWrappedPosition(int) - Method in interface jdk.jshell.SourceCodeAnalysis.SnippetWrapper
-
Maps character position within the source to character position
within the wrapped.
- 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.
- subKind() - Method in class jdk.jshell.Snippet
-
- VarSnippet - Class in jdk.jshell
-
Snippet for a variable definition.
- VALID - jdk.jshell.Snippet.Status
-
The snippet is a valid snippet
(in the context of current JShell
state).
- VAR - jdk.jshell.Snippet.Kind
-
One variable declaration.
- VAR_DECLARATION_SUBKIND - jdk.jshell.Snippet.SubKind
-
A variable declaration without initializer.
- VAR_DECLARATION_WITH_INITIALIZER_SUBKIND - jdk.jshell.Snippet.SubKind
-
A variable declaration with an initializer expression.
- VAR_VALUE_SUBKIND - jdk.jshell.Snippet.SubKind
-
A simple variable reference expression.
- 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.
- 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.