com.martiansoftware.nailgun
public class Alias extends Object implements Comparable
mycommand
" command to the com.yourdomain.yourpackage.YourClass
class. Obviously, it's a lot easier to type "ng mycommand
" than the fully
qualified class name.
Constructor Summary | |
---|---|
Alias(String name, String description, Class clazz)
Creates a new Alias with the specified properties. |
Method Summary | |
---|---|
int | compareTo(Object o)
Compares Alias names - no other fields are compared. |
boolean | equals(Object o)
Checks whether two Aliases have the same name. |
Class | getAliasedClass()
Returns the Class object providing a static main() or nailMain() method
for this command. |
String | getDescription()
Returns a description for the aliased command |
String | getName()
Returns the name of the aliased command |
int | hashCode() |
Parameters: name the alias name (short command) description a description of the command clazz the class implementing the command
See Also: Comparable#compareTo(Object)
Parameters: o the other Alias to check
Returns: true if the specified Alias has the same name as this Alias.
Class
object providing a static main()
or nailMain()
method
for this command.Returns: the Class
object providing a static main()
or nailMain()
method
for this command.
Returns: a description for the aliased command
Returns: the name of the aliased command
See Also: Object#hashCode()