org.crsh.cmdline.matcher
Class ParameterMatch<P extends ParameterDescriptor<B>,B extends TypeBinding>

java.lang.Object
  extended by org.crsh.cmdline.matcher.ParameterMatch<P,B>
Direct Known Subclasses:
ArgumentMatch, OptionMatch

public class ParameterMatch<P extends ParameterDescriptor<B>,B extends TypeBinding>
extends Object

Version:
$Revision$
Author:
Julien Viet

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<B> 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 CmdSyntaxException
Compute the value from the parameter metadata and the values list.

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


Copyright © 2012 eXo Platform SAS. All Rights Reserved.