org.crsh.cmdline.matcher
Class ParameterMatch<P extends ParameterDescriptor<B>,B extends TypeBinding>
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parameter
private final P extends ParameterDescriptor<B> parameter
- .
values
private final List<LiteralValue> values
- .
strings
private List<String> strings
- .
ParameterMatch
public ParameterMatch(P parameter,
List<LiteralValue> values)
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.