1 package sun.hotspot.parser; 2 3 public class DiagnosticCommand { 4 5 public enum DiagnosticArgumentType { 6 JLONG, BOOLEAN, STRING, NANOTIME, STRINGARRAY, MEMORYSIZE 7 } 8 9 private String name; 10 private String desc; 11 private DiagnosticArgumentType type; 12 private boolean mandatory; 13 private String defaultValue; 14 15 public DiagnosticCommand(String name, String desc, DiagnosticArgumentType type, 16 boolean mandatory, String defaultValue) { 17 this.name = name; 18 this.desc = desc; 19 this.type = type; 20 this.mandatory = mandatory; 21 this.defaultValue = defaultValue; 22 } 23 24 public String getName() { 25 return name; 26 } 27 28 public String getDesc() { 29 return desc; 30 } 31 32 public DiagnosticArgumentType getType() { 33 return type; 34 } 35 36 public boolean isMandatory() { 37 return mandatory; 38 } 39 40 public String getDefaultValue() { 41 return defaultValue; 42 } 43 }