org.crsh.jcr.command
Class JCRCommand

java.lang.Object
  extended by org.crsh.command.AbstractCommand
      extended by org.crsh.command.BaseCommand
          extended by org.crsh.lang.groovy.command.GroovyCommand
              extended by org.crsh.command.CRaSHCommand
                  extended by org.crsh.jcr.command.JCRCommand
All Implemented Interfaces:
groovy.lang.GroovyObject, Completer, ShellCommand, PathCompleter

public abstract class JCRCommand
extends CRaSHCommand
implements PathCompleter


Field Summary
 
Fields inherited from class org.crsh.command.BaseCommand
unmatched
 
Fields inherited from class org.crsh.command.AbstractCommand
context, out
 
Constructor Summary
protected JCRCommand()
           
 
Method Summary
 Completion complete(ParameterDescriptor parameter, String prefix)
          Query the completer for a set of completions for the given prefix.
 
Methods inherited from class org.crsh.lang.groovy.command.GroovyCommand
getMetaClass, getProperty, invokeMethod, setMetaClass, setProperty, toScript, unwrap
 
Methods inherited from class org.crsh.command.BaseCommand
complete, describe, execute, getDescriptor, getUnmatched, readLine, readLine, resolveInvoker, resolveInvoker, resolveInvoker
 
Methods inherited from class org.crsh.command.AbstractCommand
peekContext, popContext, pushContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JCRCommand

protected JCRCommand()
              throws IntrospectionException
Throws:
IntrospectionException
Method Detail

complete

public Completion complete(ParameterDescriptor parameter,
                           String prefix)
                    throws Exception
Description copied from interface: Completer

Query the completer for a set of completions for the given prefix. The returned Completion object provides the possible completion matching the prefix argument.

Specified by:
complete in interface Completer
Parameters:
parameter - the completed parameter
prefix - the prefix to complete
Returns:
the possible suffix map
Throws:
Exception - any exception that would prevent completion to perform correctly


Copyright © 2013 eXo Platform SAS. All Rights Reserved.