Class CommandRef
java.lang.Object
org.eclipse.jgit.pgm.CommandRef
Description of a command (a
TextBuiltin
subclass).
These descriptions are lightweight compared to creating a command instance and are therefore suitable for catalogs of "known" commands without linking the command's implementation and creating a dummy instance of the command.
-
Method Details
-
getName
Get thename.- Returns:
- name the command is invoked as from the command line.
-
getUsage
-
isCommon
public boolean isCommon()Is this command commonly used- Returns:
- true if this command is considered to be commonly used.
-
getImplementationClassName
Get implementation class name- Returns:
- name of the Java class which implements this command.
-
getImplementationClassLoader
Get implementation class loader- Returns:
- loader for
getImplementationClassName().
-
create
Create an instance of the command implementation- Returns:
- a new instance of the command implementation.
-
toString
-