Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright (C) 2015 The Pennsylvania State University and the University of Wisconsin
   * Systems and Internet Infrastructure Security Laboratory
   *
   * Author: Damien Octeau
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
  *
  * http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
 package edu.psu.cse.siis.coal;
 
The command line arguments for the analysis.
 
 public class CommandLineArguments {
   private CommandLine commandLine;
   private String model;
   private String compiledModel;
   private String classpath;
   private String input;
   private String output;
   private boolean traverseModeled = false;

  
Sets the CommandLine object this depends on.

Parameters:
commandLine A CommandLine object.
 
   public void setCommandLine(CommandLine commandLine) {
     this. = commandLine;
   }

  
Gets the path to the directory containing the model.

Returns:
The path to the model.
 
   public String getModel() {
     return ;
   }

  
Sets the path to the directory containing the model. This should be a single directory containing all COAL specifications.

Parameters:
model The path to the model.
See also:
getModel()
 
   public void setModel(String model) {
     this. = model;
   }

  
Gets the path to the compiled model.

Returns:
The path to the compiled model.
See also:
setCompiledModel(java.lang.String)
 
   public String getCompiledModel() {
     return ;
   }

  
Sets the path to the compiled model.

Parameters:
compiledModel The path to the compiled model.
See also:
getCompiledModel()
 
   public void setCompiledModel(String compiledModel) {
     this. = compiledModel;
   }

  
Gets the classpath for the analysis.

Returns:
The classpath for the analysis.
See also:
setClasspath(java.lang.String)
 
   public String getClasspath() {
     return ;
   }

  
Sets the classpath for the analysis. The directories and jar files on the classpath should contain all classes that are referenced by the input classes but through which propagation should not be performed. For example, this includes library or framework classes. Multiple paths should be separated with :.

Parameters:
classpath The classpath for the analysis.
See also:
getClasspath()
  public void setClasspath(String classpath) {
    this. = classpath;
  }

  
Gets the input directory or file for the analysis.

Returns:
The input directory or file for the analysis.
See also:
setInput(java.lang.String)
  public String getInput() {
    return ;
  }

  
Sets the input directories or files for the analysis. They should contain all classes through which the propagation should be performed. Multiple entries should be separated with :.

Parameters:
input The input directory or file
See also:
getInput()
  public void setInput(String input) {
    this. = input;
  }

  
Gets the output directory or file for the analysis.

Returns:
The output directory or file
See also:
setOutput(java.lang.String)
  public String getOutput() {
    return ;
  }

  
Sets the output directory or file for the analysis.

Parameters:
output The output directory or file.
See also:
getOutput()
  public void setOutput(String output) {
    this. = output;
  }

  
Sets the flag that determines if propagation should be done through the modeled classes.

Parameters:
traverseModeled The value of the flag.
  public void setTraverseModeled(boolean traverseModeled) {
    this. = traverseModeled;
  }

  
Determines whether the propagation should be done through the modeled classes. This is equivalent to adding the modeled classes to the list of analysis classes.

Returns:
True if the propagation should be performed through the analysis classes.
  public boolean traverseModeled() {
    return ;
  }

  
Determines if an option has been set.

Parameters:
opt Character name of the option.
Returns:
True if the option has been set.
  public boolean hasOption(char opt) {
    return .hasOption(opt);
  }

  
Determines if an option has been set.

Parameters:
opt Name of the option.
Returns:
True if the option has been set.
  public boolean hasOption(String opt) {
    return .hasOption(opt);
  }

  
Retrieves the argument, if any, of an option.

Parameters:
opt Character name of the option.
Returns:
The value of the argument if the option is set and has an argument, otherwise null.
  public String getOptionValue(char opt) {
    return .getOptionValue(opt);
  }

  
Retrieves the argument, if any, of an option.

Parameters:
opt Name of the option.
Returns:
The value of the argument if the option is set and has an argument, otherwise null.
  public String getOptionValue(String opt) {
    return .getOptionValue(opt);
  }

  
Retrieves the argument, if any, of an option.

Parameters:
opt Character name of the option.
defaultValue The default value to be returned if the option is not specified.
Returns:
The value of the argument if the option is set and has an argument, otherwise defaultValue.
  public String getOptionValue(char optString defaultValue) {
    return .getOptionValue(optdefaultValue);
  }

  
Retrieves the argument, if any, of an option.

Parameters:
opt Name of the option.
defaultValue The default value to be returned if the option is not specified.
Returns:
The value of the argument if the option is set and has an argument, otherwise defaultValue.
  public String getOptionValue(String optString defaultValue) {
    return .getOptionValue(optdefaultValue);
  }

  
Retrieves the array of values, if any, of an option.

Parameters:
opt Name of the option.
Returns:
The values of the argument if the option is set and has an argument, otherwise null.
  public String[] getOptionValues(char opt) {
    return .getOptionValues(opt);
  }

  
Retrieves the array of values, if any, of an option.

Parameters:
opt Character name of the option.
Returns:
The values of the argument if the option is set and has an argument, otherwise null.
  public String[] getOptionValues(String opt) {
    return .getOptionValues(opt);
  }

  
Retrieves a version of an option converted to a particular type.

Parameters:
opt Name of the option.
Returns:
The value of the argument if the option is set and has an argument, otherwise null.
Throws:
org.apache.commons.cli.ParseException if the argument value cannot be converted to the specified type.
  public Object getParsedOptionValue(String optthrows ParseException {
    return .getParsedOptionValue(opt);
  }
New to GrepCode? Check out our FAQ X