Class Builtin

java.lang.Object
org.apache.felix.gogo.shell.Builtin

public class Builtin extends Object
gosh built-in commands.
  • Field Details

    • functions

      static final String[] functions
    • packages

      private static final String[] packages
    • KEYWORDS

      private static final Set<String> KEYWORDS
  • Constructor Details

    • Builtin

      public Builtin()
  • Method Details

    • format

      public CharSequence format(org.apache.felix.service.command.CommandSession session)
    • format

      public CharSequence format(org.apache.felix.service.command.CommandSession session, Object arg)
    • getopt

      public Option getopt(List<Object> spec, Object[] args)
      script access to Options.
      Parameters:
      spec - the spec
      args - the args
      Returns:
      Option
    • _new

      public Object _new(org.apache.felix.service.command.CommandSession session, Object name, Object[] argv) throws Exception
      Throws:
      Exception
    • loadClass

      private Class<?> loadClass(org.apache.felix.service.command.CommandSession session, String name) throws ClassNotFoundException
      Throws:
      ClassNotFoundException
    • set

      public void set(org.apache.felix.service.command.CommandSession session, String[] argv)
    • tac

      public Object tac(org.apache.felix.service.command.CommandSession session, String[] argv) throws IOException
      Throws:
      IOException
    • type

      public boolean type(org.apache.felix.service.command.CommandSession session, String[] argv) throws Exception
      Throws:
      Exception
    • getCommands

      static Set<String> getCommands(org.apache.felix.service.command.CommandSession session)
    • isClosure

      private boolean isClosure(Object target)
    • isCommand

      private boolean isCommand(Object target)
    • getClosureSource

      private CharSequence getClosureSource(org.apache.felix.service.command.CommandSession session, String name) throws Exception
      Throws:
      Exception
    • getMethods

      private List<Method> getMethods(org.apache.felix.service.command.CommandSession session, String scmd) throws Exception
      Throws:
      Exception