org.crsh.cli.impl.invocation
Class ParameterMatch<P extends ParameterDescriptor>

java.lang.Object
  extended by org.crsh.cli.impl.invocation.ParameterMatch<P>
Direct Known Subclasses:
ArgumentMatch, OptionMatch

public class ParameterMatch<P extends ParameterDescriptor>
extends Object


Field Summary
private  P parameter
          .
private  List<String> strings
          .
private  List<LiteralValue> values
          .
 
Constructor Summary
ParameterMatch(P parameter, List<LiteralValue> values)
           
 
Method Summary
 Object computeValue()
          Compute the value from the parameter metadata and the values list.
 P getParameter()
           
 List<String> getStrings()
           
 List<LiteralValue> getValues()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parameter

private final P extends ParameterDescriptor parameter
.


values

private final List<LiteralValue> values
.


strings

private List<String> strings
.

Constructor Detail

ParameterMatch

public ParameterMatch(P parameter,
                      List<LiteralValue> values)
Method Detail

getParameter

public P getParameter()

getValues

public List<LiteralValue> getValues()

getStrings

public List<String> getStrings()

computeValue

public Object computeValue()
                    throws SyntaxException
Compute the value from the parameter metadata and the values list.

Returns:
the invocation value
Throws:
SyntaxException - anything that would prevent the value from being computed


Copyright © 2014 eXo Platform SAS. All Rights Reserved.