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

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

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

Analyzer.getFieldSignature介绍

暂无

代码示例

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

public String getGenericReturnType() {
  FieldSignature sig = analyzer.getFieldSignature((signature != null) ? signature : descriptor.toString());
  return sig.type.toString();
}

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

public String getGenericReturnType() {
  FieldSignature sig = analyzer.getFieldSignature((signature != null) ? signature : descriptor.toString());
  return sig.type.toString();
}

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

private FieldSignature getFieldSignature(FieldDef field) {
  String signature = field.getSignature();
  if (signature != null) {
    return analyzer.getFieldSignature(signature);
  }
  signature = field.getDescriptor()
    .toString();
  switch (signature.charAt(0)) {
    case 'L' : // ClassTypeSignature
    case 'T' : // TypeVariableSignature
    case '[' : // ArrayTypeSignature
      return analyzer.getFieldSignature(signature);
    default : // BaseType
      return null;
  }
}

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

private FieldSignature getFieldSignature(FieldDef field) {
  String signature = field.getSignature();
  if (signature != null) {
    return analyzer.getFieldSignature(signature);
  }
  signature = field.getDescriptor()
    .toString();
  switch (signature.charAt(0)) {
    case 'L' : // ClassTypeSignature
    case 'T' : // TypeVariableSignature
    case '[' : // ArrayTypeSignature
      return analyzer.getFieldSignature(signature);
    default : // BaseType
      return null;
  }
}

代码示例来源: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.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.bndlib

break;
case FIELD :
  sig = analyzer.getFieldSignature(signature);
  break;
case CONSTRUCTOR :

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

break;
case FIELD :
  sig = analyzer.getFieldSignature(signature);
  break;
case CONSTRUCTOR :

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

if (signature == null) {
  try {
    fieldSig = analyzer.getFieldSignature(member.getDescriptor()
      .toString());
  } catch (IllegalArgumentException iae) {
  fieldSig = analyzer.getFieldSignature(signature);

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

if (signature == null) {
  try {
    fieldSig = analyzer.getFieldSignature(member.getDescriptor()
      .toString());
  } catch (IllegalArgumentException iae) {
  fieldSig = analyzer.getFieldSignature(signature);

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

if (signature == null) {
  try {
    fieldSig = analyzer.getFieldSignature(member.getDescriptor()
      .toString());
  } catch (IllegalArgumentException iae) {
  fieldSig = analyzer.getFieldSignature(signature);

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

if (signature == null) {
  try {
    fieldSig = analyzer.getFieldSignature(member.getDescriptor()
      .toString());
  } catch (IllegalArgumentException iae) {
  fieldSig = analyzer.getFieldSignature(signature);

相关文章

Analyzer类方法