public Map<String, Object> getSession() { return outter.getSession(); }
public Map<String, Object> getSession() { return ctx.getSession(); }
public Map<String, Object> getSession() { if (current == null) { throw new IllegalStateException("Not under context"); } else { return current.getSession(); } } public Map<String, Object> getAttributes() {
public static PipeLineClosure resolveProperty(final InvocationContext context, final String property) { CRaSH crash = (CRaSH)context.getSession().get("crash"); if (crash != null) { try { Command<?> cmd = crash.getCommand(property); if (cmd != null) { return new PipeLineClosure(context, property, cmd); } else { return null; } } catch (CommandException e) { throw new InvokerInvocationException(e); } } else { return null; } }
public static SafeCallable resolveMethodInvocation(final InvocationContext context, final String name, final Object args) { CRaSH crash = (CRaSH)context.getSession().get("crash"); if (crash != null) { final Command<?> cmd; try { cmd = crash.getCommand(name); } catch (CommandException ce) { throw new InvokerInvocationException(ce); } if (cmd != null) { return new SafeCallable() { @Override public Object call() { PipeLineClosure closure = new PipeLineClosure(context, name, cmd); return closure.call((Object[])args); } }; } } return null; } }
public Map<String, Object> getSession() { return outter.getSession(); }
public Map<String, Object> getSession() { return outter.getSession(); }
public Map<String, Object> getSession() { return ctx.getSession(); }
public Map<String, Object> getSession() { return ctx.getSession(); }
public Map<String, Object> getSession() { return ctx.getSession(); }
public Map<String, Object> getSession() { return outter.getSession(); }
CRaSH crash = (CRaSH)context.getSession().get("crash"); for (Map.Entry<String, String> command : crash.getCommands()) { try {
public Map<String, Object> getSession() { if (current == null) { throw new IllegalStateException("Not under context"); } else { return current.getSession(); } } public Map<String, Object> getAttributes() {
public Map<String, Object> getSession() { if (current == null) { throw new IllegalStateException("Not under context"); } else { return current.getSession(); } } public Map<String, Object> getAttributes() {
@Usage("the optional repl name") String name) throws Exception { ShellSession session = (ShellSession)context.getSession(); Repl current = session.getRepl(); if (name != null) {
public static PipeLineClosure resolveProperty(final InvocationContext context, final String property) { CRaSH crash = (CRaSH)context.getSession().get("crash"); if (crash != null) { try { Command<?> cmd = crash.getCommand(property); if (cmd != null) { return new PipeLineClosure(context, property, cmd); } else { return null; } } catch (CommandException e) { throw new InvokerInvocationException(e); } } else { return null; } }
public static PipeLineClosure resolveProperty(final InvocationContext context, final String property) { CRaSH crash = (CRaSH)context.getSession().get("crash"); if (crash != null) { try { Command<?> cmd = crash.getCommand(property); if (cmd != null) { return new PipeLineClosure(context, property, cmd); } else { return null; } } catch (CommandException e) { throw new InvokerInvocationException(e); } } else { return null; } }
public static SafeCallable resolveMethodInvocation(final InvocationContext context, final String name, final Object args) { CRaSH crash = (CRaSH)context.getSession().get("crash"); if (crash != null) { final Command<?> cmd; try { cmd = crash.getCommand(name); } catch (CommandException ce) { throw new InvokerInvocationException(ce); } if (cmd != null) { return new SafeCallable() { @Override public Object call() { PipeLineClosure closure = new PipeLineClosure(context, name, cmd); return closure.call((Object[])args); } }; } } return null; } }
public static SafeCallable resolveMethodInvocation(final InvocationContext context, final String name, final Object args) { CRaSH crash = (CRaSH)context.getSession().get("crash"); if (crash != null) { final Command<?> cmd; try { cmd = crash.getCommand(name); } catch (CommandException ce) { throw new InvokerInvocationException(ce); } if (cmd != null) { return new SafeCallable() { @Override public Object call() { PipeLineClosure closure = new PipeLineClosure(context, name, cmd); return closure.call((Object[])args); } }; } } return null; } }
CRaSH crash = (CRaSH)context.getSession().get("crash"); java.util.ArrayList<Map.Entry<String, String>> commands = new java.util.ArrayList<>(); crash.getCommands().iterator().forEachRemaining(commands::add);