List of usage examples for com.google.common.reflect Invokable isVarArgs
public abstract boolean isVarArgs();
From source file:org.jclouds.reflect.Invocation.java
/** * invocation without arguments./* w w w . j ava 2s . com*/ * * @throws IllegalArgumentException * if in invokable requires arguments */ public static Invocation create(Invokable<?, ?> invokable) { checkArgument( invokable.getParameters().size() == 0 || (invokable.getParameters().size() == 1 && invokable.isVarArgs()), "please specify arguments to %s", invokable); return create(invokable, ImmutableList.of()); }