soot.util
Class CommandLine

java.lang.Object
  |
  +--soot.util.CommandLine

public class CommandLine
extends java.lang.Object


Inner Class Summary
protected  class CommandLine.Option
           
 
Field Summary
protected  java.lang.String[] args
          A copy of the original command line
protected  java.util.ArrayList nonOptions
          A list of the non-options (Instances of the class String)
protected  java.util.ArrayList options
          A list of the options (Instances of the class Option)
 
Constructor Summary
CommandLine(java.lang.String[] args)
           
 
Method Summary
 java.lang.String[] completeOptionsCheck()
          Check if some options are still not checked, and if so, considers these options as unknown and returns an error
 boolean contains(java.lang.String option)
           
 int getLength()
           
 java.util.List getNonOptionArguments()
           
 java.lang.String getValue()
           
 java.lang.String getValueOf(java.lang.String option)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

args

protected java.lang.String[] args
A copy of the original command line

options

protected java.util.ArrayList options
A list of the options (Instances of the class Option)

nonOptions

protected java.util.ArrayList nonOptions
A list of the non-options (Instances of the class String)
Constructor Detail

CommandLine

public CommandLine(java.lang.String[] args)
Method Detail

completeOptionsCheck

public java.lang.String[] completeOptionsCheck()
Check if some options are still not checked, and if so, considers these options as unknown and returns an error

contains

public boolean contains(java.lang.String option)

getLength

public int getLength()

getNonOptionArguments

public java.util.List getNonOptionArguments()

getValue

public java.lang.String getValue()

getValueOf

public java.lang.String getValueOf(java.lang.String option)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object