com.github.croesch.micro_debug.mic1.mem
Class IJVMCommand

java.lang.Object
  extended by com.github.croesch.micro_debug.mic1.mem.IJVMCommand

public final class IJVMCommand
extends Object

Wrapper class for a ijvm command and its arguments.

Since:
Date: Jan 22, 2012
Author:
croesch

Constructor Summary
IJVMCommand(String n, IJVMCommandArgument... arguments)
          Constructs a new command with the given name and arguments.
 
Method Summary
 boolean equals(Object obj)
           
 List<IJVMCommandArgument> getArgs()
          Returns a List of arguments that are required for this command.
 String getName()
          Returns the name of this command as viewed to the user.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IJVMCommand

public IJVMCommand(String n,
                   IJVMCommandArgument... arguments)
Constructs a new command with the given name and arguments.

Parameters:
n - the name of the command,
may not be null
mustn't contain only whitespaces
arguments - the required IJVMCommandArguments, for this command
may be omitted, if this command needs no arguments.
Since:
Date: Jan 22, 2012
Method Detail

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getName

public String getName()
Returns the name of this command as viewed to the user.

Returns:
the String representing the name of this command.
Since:
Date: Jan 22, 2012

getArgs

public List<IJVMCommandArgument> getArgs()
Returns a List of arguments that are required for this command.

Returns:
a List containing the required IJVMCommandArguments for this command. Ensured to be not null and to contain no null-values.
Since:
Date: Jan 22, 2012


Copyright © 2012. All Rights Reserved.