|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kohsuke.args4j.spi.MethodSetter
public final class MethodSetter
Setter
that sets to a Method
.
Constructor Summary | |
---|---|
MethodSetter(CmdLineParser parser,
java.lang.Object bean,
java.lang.reflect.Method m)
|
Method Summary | |
---|---|
void |
addValue(java.lang.Object value)
Adds/sets a value to the property of the option bean. |
java.lang.Class |
getType()
Gets the type of the underlying method/field. |
boolean |
isMultiValued()
Whether this setter is instrinsically multi-valued. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MethodSetter(CmdLineParser parser, java.lang.Object bean, java.lang.reflect.Method m)
Method Detail |
---|
public java.lang.Class getType()
Setter
getType
in interface Setter
public boolean isMultiValued()
Setter
isMultiValued
in interface Setter
public void addValue(java.lang.Object value) throws CmdLineException
Setter
A Setter
object has an implicit knowledge about the property it's setting,
and the instance of the option bean.
addValue
in interface Setter
CmdLineException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |