Tabnine Logo
JoptOptionParser
Code IndexAdd Tabnine to your IDE (free)

How to use
JoptOptionParser
in
com.gemstone.gemfire.management.internal.cli.parser.jopt

Best Java code snippets using com.gemstone.gemfire.management.internal.cli.parser.jopt.JoptOptionParser (Showing top 8 results out of 315)

origin: io.snappydata/gemfire-core

/**
 * For the time being this method returns a {@link JoptOptionParser} object
 * but in the future we can change which optionParser should be returned.
 * 
 * @return {@link GfshOptionParser}
 */
private GfshOptionParser getOptionParser() {
 return new JoptOptionParser();
}
origin: org.apache.geode/gemfire-core

public void setOptions(LinkedList<Option> options) {
 this.options = options;
 for (Option option : options) {
  addJoptOptionObject(option);
 }
}
origin: org.apache.geode/gemfire-core

if (userInput != null) {
 TrimmedInput input = PreprocessorUtils.trim(userInput);
 String[] preProcessedInput = preProcess(input.getString());
 joptsimple.OptionSet joptOptionSet = null;
 CliCommandOptionException ce = null;
 } catch (Exception e) {
  if (e instanceof OptionException) {
   ce = processException(e);
   joptOptionSet = ((OptionException) e).getDetected();
    unknownString = unknownString.substring(0, unknownString.indexOf('='));
   ce = processException(OptionException.createUnrecognizedOptionException(unknownString, joptOptionSet));
        List<String> optionList = new ArrayList<String>(1);
        optionList.add(string);
        ce = processException(new MultipleArgumentsForOptionException(optionList, joptOptionSet));
       } else if ((arguments.size() == 1 && !(option.getConverter() instanceof MultipleValueConverter)) || option.getValueSeparator() == null) {
        optionSet.put(option, arguments.get(0).toString().trim());
origin: io.snappydata/gemfire-core

private CliCommandOptionException processException(Exception e) {
 CliCommandOptionException ce = null;
 if (e instanceof OptionException) {
  ce = (CliCommandOptionException) ExceptionGenerator
    .generate((OptionException) e);
  if (ce != null) {
   if (ce instanceof CliCommandOptionException) {
    ((CliCommandOptionException) ce)
      .setOption(getOption((OptionException) e));
   }
  }
 }
 return ce;
}
origin: io.snappydata/gemfire-core

if (userInput != null) {
 TrimmedInput input = PreprocessorUtils.trim(userInput);
 String[] preProcessedInput = preProcess(input.getString());
 joptsimple.OptionSet joptOptionSet = null;
 CliCommandOptionException ce = null;
 } catch (Exception e) {
  if (e instanceof OptionException) {
   ce = processException(e);
   joptOptionSet = ((OptionException) e).getDetected();
    unknownString = unknownString.substring(0, unknownString.indexOf('='));
   ce = processException(OptionException.createUnrecognizedOptionException(unknownString, joptOptionSet));
        List<String> optionList = new ArrayList<String>(1);
        optionList.add(string);
        ce = processException(new MultipleArgumentsForOptionException(optionList, joptOptionSet));
       } else if ((arguments.size() == 1 && !(option.getConverter() instanceof MultipleValueConverter)) || option.getValueSeparator() == null) {
        optionSet.put(option, arguments.get(0).toString().trim());
origin: org.apache.geode/gemfire-core

private CliCommandOptionException processException(Exception e) {
 CliCommandOptionException ce = null;
 if (e instanceof OptionException) {
  ce = (CliCommandOptionException) ExceptionGenerator
    .generate((OptionException) e);
  if (ce != null) {
   if (ce instanceof CliCommandOptionException) {
    ((CliCommandOptionException) ce)
      .setOption(getOption((OptionException) e));
   }
  }
 }
 return ce;
}
origin: org.apache.geode/gemfire-core

/**
 * For the time being this method returns a {@link JoptOptionParser} object
 * but in the future we can change which optionParser should be returned.
 * 
 * @return {@link GfshOptionParser}
 */
private GfshOptionParser getOptionParser() {
 return new JoptOptionParser();
}
origin: io.snappydata/gemfire-core

public void setOptions(LinkedList<Option> options) {
 this.options = options;
 for (Option option : options) {
  addJoptOptionObject(option);
 }
}
com.gemstone.gemfire.management.internal.cli.parser.joptJoptOptionParser

Javadoc

Implementation of GfshOptionParser which internally makes use of com.gemstone.joptsimple.OptionParser

Most used methods

  • <init>
    Constructor
  • addJoptOptionObject
  • getOption
  • preProcess
  • processException

Popular in Java

  • Reading from database using SQL prepared statement
  • compareTo (BigDecimal)
  • getSupportFragmentManager (FragmentActivity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now