Package org.eclipse.jgit.pgm
Class CommandRef
- java.lang.Object
-
- org.eclipse.jgit.pgm.CommandRef
-
public class CommandRef extends Object
Description of a command (aTextBuiltin
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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TextBuiltin
create()
Create an instance of the command implementationClassLoader
getImplementationClassLoader()
Get implementation class loaderString
getImplementationClassName()
Get implementation class nameString
getName()
Get thename
.String
getUsage()
Getusage
.boolean
isCommon()
Is this command commonly usedString
toString()
-
-
-
Method Detail
-
getName
public String getName()
Get thename
.- Returns:
- name the command is invoked as from the command line.
-
getUsage
public String getUsage()
Getusage
.- Returns:
- one line description of the command's feature set.
-
isCommon
public boolean isCommon()
Is this command commonly used- Returns:
- true if this command is considered to be commonly used.
-
getImplementationClassName
public String getImplementationClassName()
Get implementation class name- Returns:
- name of the Java class which implements this command.
-
getImplementationClassLoader
public ClassLoader getImplementationClassLoader()
Get implementation class loader- Returns:
- loader for
getImplementationClassName()
.
-
create
public TextBuiltin create()
Create an instance of the command implementation- Returns:
- a new instance of the command implementation.
-
-