本文整理了Java中java.lang.reflect.Executable.isVarArgs()
方法的一些代码示例,展示了Executable.isVarArgs()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Executable.isVarArgs()
方法的具体详情如下:
包路径:java.lang.reflect.Executable
类名称:Executable
方法名:isVarArgs
暂无
代码示例来源:origin: com.oracle.truffle/truffle-api
protected SingleMethodDesc(Executable executable) {
this.varArgs = executable.isVarArgs();
this.parameterTypes = executable.getParameterTypes();
this.genericParameterTypes = executable.getGenericParameterTypes();
}
代码示例来源:origin: org.graalvm.truffle/truffle-api
protected SingleMethod(Executable executable) {
this.varArgs = executable.isVarArgs();
this.parameterTypes = executable.getParameterTypes();
this.genericParameterTypes = executable.getGenericParameterTypes();
}
代码示例来源:origin: beanshell/beanshell
/** Package private abstract executing invocable constructor.
* Collects an executable member entity as common executing invocable
* apparatus. Applies implementation for varargs specifics.
* @param member an executable member entity */
<M extends Executable & Member> ExecutingInvocable(M member) {
super(member);
parameterTypes = member.getParameterTypes();
parameterCount = member.getParameterCount();
isVarargs = member.isVarArgs();
lastParameterIndex = parameterCount > 1 ? parameterCount -1 : 0;
varArgsType = isVarArgs()
? getParameterTypes()[lastParameterIndex] : Void.TYPE;
}
代码示例来源:origin: io.permazen/permazen-parse
if (!executable.isVarArgs()) {
if (mparamTypes.length != paramTypes.length)
continue;
if (executable.isVarArgs() && i >= mparamTypes.length - 1) {
final Class<?> lastParamType = mparamTypes[mparamTypes.length - 1];
代码示例来源:origin: org.jsimpledb/jsimpledb-parse
if (!executable.isVarArgs()) {
if (mparamTypes.length != paramTypes.length)
continue;
if (executable.isVarArgs() && i >= mparamTypes.length - 1) {
final Class<?> lastParamType = mparamTypes[mparamTypes.length - 1];
代码示例来源:origin: org.jsimpledb/jsimpledb-parse
protected void fixupVarArgs(ParamInfo paramInfo, T executable) {
if (!executable.isVarArgs())
return;
代码示例来源:origin: io.permazen/permazen-parse
protected void fixupVarArgs(ParamInfo paramInfo, T executable) {
if (!executable.isVarArgs())
return;
内容来源于网络,如有侵权,请联系作者删除!