JSHELL API
DRAFT 9-internal+0-2016-08-10-220919.robert.dev
A B C D E F G H I J K L M N O P R S T U V W 

A

addToClasspath(String) - Method in class jdk.jshell.execution.DirectExecutionControl
 
addToClasspath(String) - Method in interface jdk.jshell.execution.LoaderDelegate
Adds the path to the execution class path.
addToClasspath(String) - Method in class jdk.jshell.execution.StreamingExecutionControl
 
addToClasspath(String) - Method in class jdk.jshell.JShell
The specified path is added to the end of the classpath used in eval().
addToClasspath(String) - Method in interface jdk.jshell.spi.ExecutionControl
Adds the path to the execution class path.
analyzeCompletion(String) - Method in class jdk.jshell.SourceCodeAnalysis
Given an input string, find the first snippet of code (one statement, definition, import, or expression) and evaluate if it is complete.
analyzeType(String, int) - Method in class jdk.jshell.SourceCodeAnalysis
Infer the type of the given expression.

B

build() - Method in class jdk.jshell.JShell.Builder
Builds a JShell state engine.
builder() - Static method in class jdk.jshell.JShell
Factory method for JShell.Builder which, in-turn, is used for creating instances of JShell.
bytecodes() - Method in class jdk.jshell.spi.ExecutionControl.ClassBytecodes
The bytecodes for the class.

C

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.
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
 
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.

D

DeclarationSnippet - Class in jdk.jshell
Grouping for all declaration Snippets: variable declarations (VarSnippet), method declarations (MethodSnippet), and type declarations (TypeDeclSnippet).
dependents(Snippet) - Method in class jdk.jshell.SourceCodeAnalysis
Returns a collection of Snippets which might need updating if the given Snippet is updated.
detectJDIExitEvent(VirtualMachine, Consumer<String>) - Static method in class jdk.jshell.execution.Util
Monitor the JDI event stream for VMDeathEvent and VMDisconnectEvent.
Diag - Class in jdk.jshell
Diagnostic information for a Snippet.
diagnostics(Snippet) - Method in class jdk.jshell.JShell
Return the diagnostics of the most recent evaluation of the snippet.
DirectExecutionControl - Class in jdk.jshell.execution
An ExecutionControl implementation that runs in the current process.
DirectExecutionControl() - Constructor for class jdk.jshell.execution.DirectExecutionControl
Create an instance using the default class loading.
DirectExecutionControl(LoaderDelegate) - Constructor for class jdk.jshell.execution.DirectExecutionControl
Creates an instance, delegating loader operations to the specified delegate.
documentation(String, int) - Method in class jdk.jshell.SourceCodeAnalysis
Compute a description/help string for the given user's input.
drop(PersistentSnippet) - Method in class jdk.jshell.JShell
Remove a declaration from the state.

E

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
An instance of UnresolvedReferenceException, if an unresolved reference was encountered, or an instance of EvalException if an exception was thrown during execution, otherwise null.
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
Defines a functional interface for creating ExecutionControl instances.
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.

F

failOverExecutionControlGenerator(ExecutionControl.Generator, ExecutionControl.Generator...) - Static method in class jdk.jshell.execution.Util
Create a composite ExecutionControl.Generator instance that, when generating, will try each specified generator until successfully creating an ExecutionControl instance, or, if all fail, will re-throw the first exception.
findClass(String) - Method in class jdk.jshell.execution.DirectExecutionControl
Finds the class with the specified binary name.
findClass(String) - Method in interface jdk.jshell.execution.LoaderDelegate
Finds the class with the specified binary name.
forwardExecutionControl(ExecutionControl, ObjectInput, ObjectOutput) - Static method in class jdk.jshell.execution.Util
Forward commands from the input to the specified ExecutionControl instance, then responses back on the output.
forwardExecutionControlAndIO(ExecutionControl, InputStream, OutputStream, Map<String, Consumer<OutputStream>>) - Static method in class jdk.jshell.execution.Util
Forward commands from the input to the specified ExecutionControl instance, then responses back on the output.
forwardInputToRemote(InputStream, OutputStream, Consumer<Exception>) - Static method in class jdk.jshell.execution.Util
Creates a Thread that will ship all input to the remote agent.
fullClassName() - Method in interface jdk.jshell.SourceCodeAnalysis.SnippetWrapper
Returns the fully qualified class name of the SourceCodeAnalysis.SnippetWrapper.wrapped() class.
fullname() - Method in class jdk.jshell.ImportSnippet
The qualified name of the import.

G

generate(ExecutionEnv) - Method in interface jdk.jshell.spi.ExecutionControl.Generator
Generates an execution engine, given an execution environment.
getCode() - Method in class jdk.jshell.Diag
Returns a diagnostic code indicating the type of diagnostic.
getEndPosition() - Method in class jdk.jshell.Diag
Returns the character offset from the beginning of the file associated with this diagnostic that indicates the end of the problem.
getExceptionClassName() - Method in exception jdk.jshell.EvalException
Returns the name of the Throwable subclass which was thrown in the executing client.
getMessage(Locale) - Method in class jdk.jshell.Diag
Returns a localized message for the given locale.
getNames() - Method in class jdk.jshell.SourceCodeAnalysis.QualifiedNames
Known qualified names for the given simple name in the original code.
getPosition() - Method in class jdk.jshell.Diag
Returns a character offset from the beginning of the source object associated with this diagnostic that indicates the location of the problem.
getSimpleNameLength() - Method in class jdk.jshell.SourceCodeAnalysis.QualifiedNames
The length of the simple name in the original code for which the qualified names where gathered.
getSnippet() - Method in exception jdk.jshell.UnresolvedReferenceException
Return the Snippet which has the unresolved reference(s).
getStartPosition() - Method in class jdk.jshell.Diag
Returns the character offset from the beginning of the file associated with this diagnostic that indicates the start of the problem.

H

hasValue() - Method in enum jdk.jshell.Snippet.SubKind
Indicates whether this SubKind is executable and is non-void.

I

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
Indicates whether the Snippet is active, that is, will the snippet be re-evaluated when a new JShell.eval(String) or JShell.drop(PersistentSnippet) that could change its status is invoked.
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.

J

jdk.jshell - package jdk.jshell
Provides interfaces for creating tools, such as a Read-Eval-Print Loop (REPL), which interactively evaluate "snippets" of Java programming language code.
jdk.jshell.execution - package jdk.jshell.execution
Provides implementation support for building JShell execution engines.
JDIDefaultExecutionControl - Class in jdk.jshell.execution
The implementation of ExecutionControl that the JShell-core uses by default.
JDIExecutionControl - Class in jdk.jshell.execution
Abstract JDI implementation of ExecutionControl
JDIExecutionControl(ObjectOutput, ObjectInput) - Constructor for class jdk.jshell.execution.JDIExecutionControl
Create an instance.
JDIInitiator - Class in jdk.jshell.execution
Sets up a JDI connection, providing the resulting JDI VirtualMachine and the Process the remote agent is running in.
JDIInitiator(int, List<String>, String, boolean) - Constructor for class jdk.jshell.execution.JDIInitiator
Start the remote agent and establish a JDI connection to it.
JShell - Class in jdk.jshell
The JShell evaluation state engine.
JShell.Builder - Class in jdk.jshell
Builder for JShell instances.
JShell.Subscription - Class in jdk.jshell
Subscription is a token for referring to subscriptions so they can be unsubscribed.
JShellException - Exception in jdk.jshell
The superclass of JShell generated exceptions
jdk.jshell.spi - package jdk.jshell.spi
Defines the Service Provider Interface for pluggable JShell execution engines.

K

kind() - Method in class jdk.jshell.Snippet
The Snippet.Kind for the snippet.
kind() - Method in enum jdk.jshell.Snippet.SubKind
The Snippet.Kind that corresponds to this SubKind.
kind() - Method in interface jdk.jshell.SourceCodeAnalysis.SnippetWrapper

L

launch() - Static method in class jdk.jshell.execution.JDIDefaultExecutionControl
Creates an ExecutionControl instance based on a JDI LaunchingConnector.
listen() - Static method in class jdk.jshell.execution.JDIDefaultExecutionControl
Creates an ExecutionControl instance based on a JDI ListeningConnector.
listQualifiedNames(String, int) - Method in class jdk.jshell.SourceCodeAnalysis
List qualified names known for the simple name in the given code immediately to the left of the given cursor position.
load(ExecutionControl.ClassBytecodes[]) - Method in class jdk.jshell.execution.DirectExecutionControl
 
load(ExecutionControl.ClassBytecodes[]) - Method in interface jdk.jshell.execution.LoaderDelegate
Attempts to load new classes.
load(ExecutionControl.ClassBytecodes[]) - Method in class jdk.jshell.execution.StreamingExecutionControl
 
load(ExecutionControl.ClassBytecodes[]) - Method in interface jdk.jshell.spi.ExecutionControl
Attempts to load new classes.
LoaderDelegate - Interface in jdk.jshell.execution
This interface specifies the loading specific subset of ExecutionControl.
LocalExecutionControl - Class in jdk.jshell.execution
An implementation of ExecutionControl which executes in the same JVM as the JShell-core.
LocalExecutionControl() - Constructor for class jdk.jshell.execution.LocalExecutionControl
Create an instance using the default class loading.
LocalExecutionControl(LoaderDelegate) - Constructor for class jdk.jshell.execution.LocalExecutionControl
Creates an instance, delegating loader operations to the specified delegate.

M

main(String[]) - Static method in class jdk.jshell.execution.RemoteExecutionControl
Launch the agent, connecting to the JShell-core over the socket specified in the command-line argument.
matchesType() - Method in interface jdk.jshell.SourceCodeAnalysis.Suggestion
Indicates whether input continuation matches the target type and is thus more likely to be the desired continuation.
methods() - Method in class jdk.jshell.JShell
Returns the active method snippets.
MethodSnippet - Class in jdk.jshell
Snippet for a method definition.

N

name() - Method in class jdk.jshell.ExpressionSnippet
Variable name which is the value of the expression.
name() - Method in class jdk.jshell.ImportSnippet
The identifying name of the import.
name() - Method in class jdk.jshell.PersistentSnippet
Name of the Snippet.
name() - Method in class jdk.jshell.spi.ExecutionControl.ClassBytecodes
The class name.
NOPOS - Static variable in class jdk.jshell.Diag
Used to signal that no position is available.
NotImplementedException(String) - Constructor for exception jdk.jshell.spi.ExecutionControl.NotImplementedException
 

O

onShutdown(Consumer<JShell>) - Method in class jdk.jshell.JShell
Register a callback to be called when this JShell instance terminates.
onSnippetEvent(Consumer<SnippetEvent>) - Method in class jdk.jshell.JShell
Register a callback to be called when the Status of a snippet changes.
out(PrintStream) - Method in class jdk.jshell.JShell.Builder
Sets the output for the running evaluation (it's System.out).
OuterImportSnippetWrap - Class in jdk.jshell
The outer wrap for a set of snippets wrapped in a generated class
OuterSnippetsClassWrap - Class in jdk.jshell
The outer wrap for a set of snippets wrapped in a generated class
OuterWrapMap - Class in jdk.jshell
 

P

parameterTypes() - Method in class jdk.jshell.MethodSnippet
A String representation of the parameter types of the method.
PersistentSnippet - Class in jdk.jshell
Grouping for Snippets which persist and influence future code.
previousStatus() - Method in class jdk.jshell.SnippetEvent
The status before the transition.
probableKind() - Method in class jdk.jshell.ErroneousSnippet
Returns what appears to be the intended Kind in this erroneous snippet.
process() - Method in class jdk.jshell.execution.JDIInitiator
Returns the launched process.

R

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.
RemoteExecutionControl - Class in jdk.jshell.execution
The remote agent runs in the execution process (separate from the main JShell process).
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.
remoteInput(InputStream, Map<String, OutputStream>) - Static method in class jdk.jshell.execution.Util
Reads from an InputStream which has been packetized and write its contents to the out and err OutputStreams; Copies the command stream.
remoteVMOptions(String...) - Method in class jdk.jshell.JShell.Builder
Sets additional VM options for launching the VM.
ResolutionException(int, StackTraceElement[]) - Constructor for exception jdk.jshell.spi.ExecutionControl.ResolutionException
Constructs an exception indicating that a DeclarationSnippet with unresolved references has been encountered.

S

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
Return the Snippet.SubKind of snippet.

T

tempVariableNameGenerator(Supplier<String>) - Method in class jdk.jshell.JShell.Builder
Sets a generator of temp variable names for VarSnippet of Snippet.SubKind.TEMP_VAR_EXPRESSION_SUBKIND.
throwConvertedInvocationException(Throwable) - Method in class jdk.jshell.execution.DirectExecutionControl
Converts incoming exceptions in user code into instances of subtypes of ExecutionControl.ExecutionControlException and throws the converted exception.
throwConvertedInvocationException(Throwable) - Method in class jdk.jshell.execution.RemoteExecutionControl
 
throwConvertedOtherException(Throwable) - Method in class jdk.jshell.execution.DirectExecutionControl
Converts incoming exceptions in agent code into instances of subtypes of ExecutionControl.ExecutionControlException and throws the converted exception.
throwConvertedOtherException(Throwable) - Method in class jdk.jshell.execution.RemoteExecutionControl
 
toString() - Method in class jdk.jshell.MethodSnippet
 
toString() - Method in class jdk.jshell.OuterImportSnippetWrap
 
toString() - Method in class jdk.jshell.OuterSnippetsClassWrap
 
toString() - Method in class jdk.jshell.Snippet
 
toString() - Method in class jdk.jshell.SnippetEvent
Return a string representation of the event
TypeDeclSnippet - Class in jdk.jshell
Snippet for a type definition (a class, interface, enum, or annotation interface definition).
typeName() - Method in class jdk.jshell.ExpressionSnippet
Type of the expression
typeName() - Method in class jdk.jshell.VarSnippet
A String representation of the type of the variable.
types() - Method in class jdk.jshell.JShell
Returns the active type declaration (class, interface, annotation type, and enum) snippets.

U

unresolvedDependencies(DeclarationSnippet) - Method in class jdk.jshell.JShell
For RECOVERABLE_DEFINED or RECOVERABLE_NOT_DEFINED declarations, the names of current unresolved dependencies for the snippet.
UnresolvedReferenceException - Exception in jdk.jshell
Exception reported on attempting to execute a RECOVERABLE_DEFINED snippet.
unsubscribe(JShell.Subscription) - Method in class jdk.jshell.JShell
Cancel a callback subscription.
userErr() - Method in interface jdk.jshell.spi.ExecutionEnv
Returns the user's error stream.
UserException(String, String, StackTraceElement[]) - Constructor for exception jdk.jshell.spi.ExecutionControl.UserException
 
userIn() - Method in interface jdk.jshell.spi.ExecutionEnv
Returns the user's input stream.
userOut() - Method in interface jdk.jshell.spi.ExecutionEnv
Returns the user's output stream.
Util - Class in jdk.jshell.execution
Miscellaneous utility methods for setting-up implementations of ExecutionControl.

V

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.

W

wrapLineToSnippet(int) - Method in class jdk.jshell.OuterSnippetsClassWrap
 
wrapped() - Method in interface jdk.jshell.SourceCodeAnalysis.SnippetWrapper
Returns a Java class definition that wraps the SourceCodeAnalysis.SnippetWrapper.source() or, if an import, the import source.
wrappedToSourcePosition(int) - Method in interface jdk.jshell.SourceCodeAnalysis.SnippetWrapper
Maps character position within the wrapped to character position within the source.
wrapper(Snippet) - Method in class jdk.jshell.SourceCodeAnalysis
Returns the wrapper information for the Snippet.
wrappers(String) - Method in class jdk.jshell.SourceCodeAnalysis
Returns the wrapper information for the snippet within the input source string.
A B C D E F G H I J K L M N O P R S T U V W 
Skip navigation links
JSHELL API
DRAFT 9-internal+0-2016-08-10-220919.robert.dev


Copyright © 2015, 2016, Oracle and/or its affiliates. All rights reserved.

DRAFT 9-internal+0-2016-08-10-220919.robert.dev