aQute.bnd.osgi.Analyzer.getMethodSignature()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(4.6k)|赞(0)|评价(0)|浏览(111)

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

Analyzer.getMethodSignature介绍

暂无

代码示例

代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib

@Override
public String getGenericReturnType() {
  MethodSignature sig = analyzer.getMethodSignature((signature != null) ? signature : descriptor.toString());
  return sig.resultType.toString();
}

代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd

@Override
public String getGenericReturnType() {
  MethodSignature sig = analyzer.getMethodSignature((signature != null) ? signature : descriptor.toString());
  return sig.resultType.toString();
}

代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib

private MethodSignature getMethodSignature(MethodDef method) {
  String signature = method.getSignature();
  return analyzer.getMethodSignature((signature != null) ? signature
    : method.getDescriptor()
      .toString());
}

代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd

private MethodSignature getMethodSignature(MethodDef method) {
  String signature = method.getSignature();
  return analyzer.getMethodSignature((signature != null) ? signature
    : method.getDescriptor()
      .toString());
}

代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib

/**
 * This method parses method or field descriptors and calls
 * {@link #referTo(TypeRef, int)} for any types found therein.
 *
 * @param descriptor The to be parsed descriptor
 * @param modifiers
 * @see "https://docs.oracle.com/javase/specs/jvms/se9/html/jvms-4.html#jvms-4.3"
 */
public void parseDescriptor(String descriptor, int modifiers) {
  char c = descriptor.charAt(0);
  if (c != '(' && c != 'L' && c != '[' && c != '<' && c != 'T') {
    return;
  }
  Signature sig = (c == '(' || c == '<') ? analyzer.getMethodSignature(descriptor)
    : analyzer.getFieldSignature(descriptor);
  Set<String> binaryRefs = sig.erasedBinaryReferences();
  for (String binary : binaryRefs) {
    TypeRef ref = analyzer.getTypeRef(binary);
    if (cd != null) {
      cd.addReference(ref);
    }
    referTo(ref, modifiers);
  }
}

代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd

/**
 * This method parses method or field descriptors and calls
 * {@link #referTo(TypeRef, int)} for any types found therein.
 *
 * @param descriptor The to be parsed descriptor
 * @param modifiers
 * @see "https://docs.oracle.com/javase/specs/jvms/se9/html/jvms-4.html#jvms-4.3"
 */
public void parseDescriptor(String descriptor, int modifiers) {
  char c = descriptor.charAt(0);
  if (c != '(' && c != 'L' && c != '[' && c != '<' && c != 'T') {
    return;
  }
  Signature sig = (c == '(' || c == '<') ? analyzer.getMethodSignature(descriptor)
    : analyzer.getFieldSignature(descriptor);
  Set<String> binaryRefs = sig.erasedBinaryReferences();
  for (String binary : binaryRefs) {
    TypeRef ref = analyzer.getTypeRef(binary);
    if (cd != null) {
      cd.addReference(ref);
    }
    referTo(ref, modifiers);
  }
}

代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd

case CONSTRUCTOR :
case METHOD :
  sig = analyzer.getMethodSignature(signature);
  break;
default :

代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib

case CONSTRUCTOR :
case METHOD :
  sig = analyzer.getMethodSignature(signature);
  break;
default :

代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd

: member.getDescriptor()
    .toString();
MethodSignature methodSig = analyzer.getMethodSignature(signature);
MethodResolver resolver = new MethodResolver(classSig, methodSig);
Result result = resolver.resolveResult();

代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib

: member.getDescriptor()
    .toString();
MethodSignature methodSig = analyzer.getMethodSignature(signature);
MethodResolver resolver = new MethodResolver(classSig, methodSig);
Result result = resolver.resolveResult();

代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib

: member.getDescriptor()
    .toString();
MethodSignature methodSig = analyzer.getMethodSignature(signature);
MethodResolver resolver = new MethodResolver(classSig, methodSig);
if (methodSig.parameterTypes.length != 1)

代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd

: member.getDescriptor()
    .toString();
MethodSignature methodSig = analyzer.getMethodSignature(signature);
MethodResolver resolver = new MethodResolver(classSig, methodSig);
if (methodSig.parameterTypes.length != 1)

代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib

String signature = (member.getSignature() != null) ? member.getSignature() : member.getDescriptor()
  .toString();
MethodSignature methodSig = analyzer.getMethodSignature(signature);
resolver = new MethodResolver(classSig, methodSig);
JavaTypeSignature parameterType = ((MethodResolver) resolver).resolveParameter(parameter);

代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd

String signature = (member.getSignature() != null) ? member.getSignature() : member.getDescriptor()
  .toString();
MethodSignature methodSig = analyzer.getMethodSignature(signature);
resolver = new MethodResolver(classSig, methodSig);
JavaTypeSignature parameterType = ((MethodResolver) resolver).resolveParameter(parameter);

相关文章

Analyzer类方法