org.jikesrvm
Class CommandLineArgs.Prefix

java.lang.Object
  extended by org.jikesrvm.CommandLineArgs.Prefix
All Implemented Interfaces:
Comparable<CommandLineArgs.Prefix>
Enclosing class:
CommandLineArgs

private static final class CommandLineArgs.Prefix
extends Object
implements Comparable<CommandLineArgs.Prefix>

Represent a single command line prefix


Field Summary
 int count
          Number of arguments of this type seen
 CommandLineArgs.PrefixType type
          A number that describes the type of the argument
 String value
          The command line string e.g.
 
Constructor Summary
CommandLineArgs.Prefix(String v, CommandLineArgs.PrefixType t)
          Construct a prefix with the given argument string and type
 
Method Summary
 int compareTo(CommandLineArgs.Prefix o)
          Sorting method for Comparable.
 boolean equals(Object o)
          Equals method to be consistent with Comparable
 int hashCode()
          Hashcode to be consistent with Comparable
 String toString()
          Command line string representation of the prefix
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

value

public final String value
The command line string e.g. "-X:irc:"


type

public final CommandLineArgs.PrefixType type
A number that describes the type of the argument


count

public int count
Number of arguments of this type seen

Constructor Detail

CommandLineArgs.Prefix

public CommandLineArgs.Prefix(String v,
                              CommandLineArgs.PrefixType t)
Construct a prefix with the given argument string and type

Parameters:
v - argument string
t - type of prefix, must be non-null
Method Detail

compareTo

public int compareTo(CommandLineArgs.Prefix o)
Sorting method for Comparable. Sort by string value

Specified by:
compareTo in interface Comparable<CommandLineArgs.Prefix>

equals

public boolean equals(Object o)
Equals method to be consistent with Comparable

Overrides:
equals in class Object

hashCode

public int hashCode()
Hashcode to be consistent with Comparable

Overrides:
hashCode in class Object

toString

public String toString()
Command line string representation of the prefix

Overrides:
toString in class Object