public class OptSwitch
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static int |
BOOL |
protected static int |
NONE |
boolean |
set |
java.lang.String |
val |
protected static int |
VAL |
Constructor and Description |
---|
OptSwitch() |
OptSwitch(java.lang.Character c,
int type)
Invocation with explicit Character switchname and type
|
OptSwitch(int c,
int type)
Invocation with explicit integer switchname and type
|
Modifier and Type | Method and Description |
---|---|
boolean |
acceptVal()
Return whether the option switch accepts values or no
|
void |
SetHasValue(int type)
Set the value type of the option switch to the type passed
|
void |
SetVal(boolean b)
Set the 'set' field of the option switch to 'b'.
|
void |
SetVal(java.lang.String s)
Set the 'val' field of the option switch to 's'.
|
protected static final int NONE
protected static final int BOOL
protected static final int VAL
public boolean set
public java.lang.String val
public OptSwitch()
public OptSwitch(java.lang.Character c, int type)
c
- type
- public OptSwitch(int c, int type)
c
- type
- public void SetHasValue(int type)
type
- type of value that switch may accept or bepublic boolean acceptVal()
public void SetVal(boolean b)
b
- set the 'set' boolean field to 'b'.public void SetVal(java.lang.String s)
s
- string to assign to 'val' field.