org.crsh.cli.impl.invocation
Class ParameterMatch<P extends ParameterDescriptor>
java.lang.Object
org.crsh.cli.impl.invocation.ParameterMatch<P>
- Direct Known Subclasses:
- ArgumentMatch, OptionMatch
public class ParameterMatch<P extends ParameterDescriptor>
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parameter
private final P extends ParameterDescriptor 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 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.