Top Fields Constructors Methods
com.mchange.util.impl

public Class CommandLineParserImpl

extends Object
implements CommandLineParser
Class Inheritance
All Implemented Interfaces
com.mchange.util.CommandLineParser
Imports
com.mchange.util.*

Deprecated

Use com.mchange.v2.cmdline.CommandLineUtils instead

Field Summary

Modifier and TypeField and Description
pack-priv String[]
pack-priv String[]
pack-priv String[]
pack-priv char
pack-priv String[]

Constructor Summary

AccessConstructor and Description
public
CommandLineParserImpl(String[] argv, String[] validSwitches, String[] reqSwitches, String[] argSwitches, char switch_char)

public
CommandLineParserImpl(String[] argv, String[] validSwitches, String[] reqSwitches, String[] argSwitches)

Method Summary

Modifier and TypeMethod and Description
public boolean
pack-priv boolean
public boolean
pack-priv boolean
pack-priv boolean
private static boolean
contains(String string, String[] list)

public int
public String
public String[]
findUnswitchedArgs()

Implements com.mchange.util.CommandLineParser.findUnswitchedArgs.

Order of args is guaranteed to be maintained.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

argSwitchesback to summary
pack-priv String[] argSwitches
argvback to summary
pack-priv String[] argv
reqSwitchesback to summary
pack-priv String[] reqSwitches
switch_charback to summary
pack-priv char switch_char
validSwitchesback to summary
pack-priv String[] validSwitches

Constructor Detail

CommandLineParserImplback to summary
public CommandLineParserImpl(String[] argv, String[] validSwitches, String[] reqSwitches, String[] argSwitches, char switch_char)
CommandLineParserImplback to summary
public CommandLineParserImpl(String[] argv, String[] validSwitches, String[] reqSwitches, String[] argSwitches)

Method Detail

checkArgvback to summary
public boolean checkArgv()

Implements com.mchange.util.CommandLineParser.checkArgv.

checkRequiredSwitchesback to summary
pack-priv boolean checkRequiredSwitches()
checkSwitchback to summary
public boolean checkSwitch(String sw)

Implements com.mchange.util.CommandLineParser.checkSwitch.

checkSwitchArgSyntaxback to summary
pack-priv boolean checkSwitchArgSyntax()
checkValidSwitchesback to summary
pack-priv boolean checkValidSwitches()
containsback to summary
private static boolean contains(String string, String[] list)
findLastSwitchedback to summary
public int findLastSwitched()

Implements com.mchange.util.CommandLineParser.findLastSwitched.

findSwitchArgback to summary
public String findSwitchArg(String sw)

Implements com.mchange.util.CommandLineParser.findSwitchArg.

findUnswitchedArgsback to summary
public String[] findUnswitchedArgs()

Implements com.mchange.util.CommandLineParser.findUnswitchedArgs.

Doc from com.mchange.util.CommandLineParser.findUnswitchedArgs.

Order of args is guaranteed to be maintained.