Package ganymede.shell
Class Builtin
- java.lang.Object
-
- ganymede.notebook.AbstractMagic
-
- ganymede.shell.Builtin
-
- All Implemented Interfaces:
AnnotatedMagic,Magic
public abstract class Builtin extends AbstractMagic
- Author:
- Allen D. Ball
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface ganymede.notebook.Magic
Magic.Application, Magic.completeness
-
-
Constructor Summary
Constructors Constructor Description Builtin()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidexecute(Shell shell, InputStream in, PrintStream out, PrintStream err, Magic.Application application)Shellexecution method.voidexecute(String line0, String code, JsonNode metadata)JShellexecution method.-
Methods inherited from class ganymede.notebook.AbstractMagic
configure, getUsage, isComplete, parse
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ganymede.notebook.AnnotatedMagic
getDescription, getMagicNames, getUsage
-
-
-
-
Constructor Detail
-
Builtin
public Builtin()
-
-
Method Detail
-
execute
public abstract void execute(Shell shell, InputStream in, PrintStream out, PrintStream err, Magic.Application application) throws Exception
Shellexecution method.- Parameters:
shell- TheShell.in- TheinInputStream.out- TheoutPrintStream.err- TheerrPrintStream.application- TheMagic.Applicationinstance.- Throws:
Exception
-
execute
public void execute(String line0, String code, JsonNode metadata) throws Exception
Description copied from interface:MagicJShellexecution method.- Parameters:
line0- The initial magic line.code- The remainder of the cell.metadata- The metadata from the Jupyterexecute_request.- Throws:
Exception
-
-