Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pass command over query param. Tidied up console interface and hidden…
… context. Console status now more verbose.
- Loading branch information
1 parent
e1bee8e
commit 4002d57
Showing
17 changed files
with
159 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,22 @@ | ||
package javarepl.console; | ||
|
||
import com.googlecode.yadic.Container; | ||
import javarepl.completion.CompletionResult; | ||
import javarepl.rendering.ExpressionTemplate; | ||
|
||
public interface Console { | ||
|
||
ConsoleResult execute(String expression); | ||
|
||
Container context(); | ||
CompletionResult completion(String expression); | ||
|
||
ExpressionTemplate template(String expression); | ||
|
||
ConsoleStatus status(); | ||
|
||
ConsoleHistory history(); | ||
|
||
void start(); | ||
|
||
void shutdown(); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package javarepl.console; | ||
|
||
public enum ConsoleStatus { | ||
Idle, Starting, Running, Terminating, Terminated; | ||
|
||
public Boolean isRunning() { | ||
return this == Running; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/javarepl/client/ExpressionTemplate.java → ...avarepl/rendering/ExpressionTemplate.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.