org.jetbrains.kotlin.cli.jvm.repl
Class ReplInterpreter.LineResult

java.lang.Object
  extended by org.jetbrains.kotlin.cli.jvm.repl.ReplInterpreter.LineResult
Enclosing class:
ReplInterpreter

public static class ReplInterpreter.LineResult
extends java.lang.Object


Method Summary
static ReplInterpreter.LineResult compileError(java.lang.String errorText)
           
 java.lang.String getErrorText()
           
 ReplInterpreter.LineResultType getType()
           
 java.lang.Object getValue()
           
static ReplInterpreter.LineResult incomplete()
           
 boolean isUnit()
           
static ReplInterpreter.LineResult runtimeError(java.lang.String errorText)
           
static ReplInterpreter.LineResult successful(java.lang.Object value, boolean unit)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getType

@NotNull
public ReplInterpreter.LineResultType getType()

getValue

public java.lang.Object getValue()

isUnit

public boolean isUnit()

getErrorText

@NotNull
public java.lang.String getErrorText()

successful

@NotNull
public static ReplInterpreter.LineResult successful(java.lang.Object value,
                                                            boolean unit)

compileError

@NotNull
public static ReplInterpreter.LineResult compileError(@NotNull
                                                              java.lang.String errorText)

runtimeError

@NotNull
public static ReplInterpreter.LineResult runtimeError(@NotNull
                                                              java.lang.String errorText)

incomplete

public static ReplInterpreter.LineResult incomplete()