edu.toronto.cs.util
Class Clapi.BooleanOpt

java.lang.Object
  extended by edu.toronto.cs.util.Clapi.Opt
      extended by edu.toronto.cs.util.Clapi.BooleanOpt
Enclosing class:
Clapi

public static class Clapi.BooleanOpt
extends Clapi.Opt


Constructor Summary
Clapi.BooleanOpt(Clapi.OptSpec _spec)
           
 
Method Summary
 Clapi.BooleanOpt defaultValue(boolean v)
           
 Clapi.ArgumentParser getArgumentParser()
           
 boolean getBoolean(Clapi.OptResult result)
           
 boolean[] getBooleanArray(Clapi.OptResult result)
           
protected  boolean toBoolean(java.lang.Boolean v)
           
 
Methods inherited from class edu.toronto.cs.util.Clapi.Opt
checkArity, get, getArgumentsSpec, getList, getObjectArray, getOptionSpecifiers, getSpec, getToken, isTerminal, parseArguments, printArgumentsSpec, tag, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Clapi.BooleanOpt

public Clapi.BooleanOpt(Clapi.OptSpec _spec)
Method Detail

defaultValue

public Clapi.BooleanOpt defaultValue(boolean v)

getArgumentParser

public Clapi.ArgumentParser getArgumentParser()
Specified by:
getArgumentParser in class Clapi.Opt

toBoolean

protected boolean toBoolean(java.lang.Boolean v)

getBoolean

public boolean getBoolean(Clapi.OptResult result)

getBooleanArray

public boolean[] getBooleanArray(Clapi.OptResult result)