hotspot/src/share/tools/whitebox/sun/hotspot/parser/DiagnosticCommand.java
changeset 15834 89c34ec6d638
parent 15833 81737a0a6546
parent 15832 6c7a82c0b538
child 15836 e7427054542d
equal deleted inserted replaced
15833:81737a0a6546 15834:89c34ec6d638
     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 }