java.lang.reflect.Executable.isVarArgs()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(149)

本文整理了Java中java.lang.reflect.Executable.isVarArgs()方法的一些代码示例,展示了Executable.isVarArgs()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Executable.isVarArgs()方法的具体详情如下:
包路径:java.lang.reflect.Executable
类名称:Executable
方法名:isVarArgs

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;

相关文章