org.eclipse.jdt.core.Signature.appendTypeSignature()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(9.1k)|赞(0)|评价(0)|浏览(97)

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

Signature.appendTypeSignature介绍

[英]Scans the given string for a type signature starting at the given index and appends it to the given buffer, and returns the index of the last character.
[中]扫描给定字符串,寻找从给定索引开始的类型签名,并将其附加到给定缓冲区,然后返回最后一个字符的索引。

代码示例

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core

/**
 * Scans the given string for a type signature starting at the given
 * index and appends it to the given buffer, and returns the index of the last
 * character.
 *
 * @param string the signature string
 * @param start the 0-based character index of the first character
 * @param fullyQualifyTypeNames <code>true</code> if type names should be fully
 *   qualified, and <code>false</code> to use only simple names
 * @param buffer the string buffer to append to
 * @return the 0-based character index of the last character
 * @exception IllegalArgumentException if this is not a type signature
 * @see Util#scanTypeSignature(char[], int)
 */
private static int appendTypeSignature(char[] string, int start, boolean fullyQualifyTypeNames, StringBuffer buffer) {
  return appendTypeSignature(string, start, fullyQualifyTypeNames, buffer, false);
}

代码示例来源:origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core

/**
 * Scans the given string for a type signature starting at the given
 * index and appends it to the given buffer, and returns the index of the last
 * character.
 *
 * @param string the signature string
 * @param start the 0-based character index of the first character
 * @param fullyQualifyTypeNames <code>true</code> if type names should be fully
 *   qualified, and <code>false</code> to use only simple names
 * @param buffer the string buffer to append to
 * @return the 0-based character index of the last character
 * @exception IllegalArgumentException if this is not a type signature
 * @see Util#scanTypeSignature(char[], int)
 */
private static int appendTypeSignature(char[] string, int start, boolean fullyQualifyTypeNames, StringBuffer buffer) {
  return appendTypeSignature(string, start, fullyQualifyTypeNames, buffer, false);
}

代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core

/**
 * Scans the given string for a type signature starting at the given
 * index and appends it to the given buffer, and returns the index of the last
 * character.
 *
 * @param string the signature string
 * @param start the 0-based character index of the first character
 * @param fullyQualifyTypeNames <code>true</code> if type names should be fully
 *   qualified, and <code>false</code> to use only simple names
 * @param buffer the string buffer to append to
 * @return the 0-based character index of the last character
 * @exception IllegalArgumentException if this is not a type signature
 * @see Util#scanTypeSignature(char[], int)
 */
private static int appendTypeSignature(char[] string, int start, boolean fullyQualifyTypeNames, StringBuffer buffer) {
  return appendTypeSignature(string, start, fullyQualifyTypeNames, buffer, false);
}

代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core

/**
 * Scans the given string for a type signature starting at the given
 * index and appends it to the given buffer, and returns the index of the last
 * character.
 *
 * @param string the signature string
 * @param start the 0-based character index of the first character
 * @param fullyQualifyTypeNames <code>true</code> if type names should be fully
 *   qualified, and <code>false</code> to use only simple names
 * @param buffer the string buffer to append to
 * @return the 0-based character index of the last character
 * @exception IllegalArgumentException if this is not a type signature
 * @see Util#scanTypeSignature(char[], int)
 */
private static int appendTypeSignature(char[] string, int start, boolean fullyQualifyTypeNames, StringBuffer buffer) {
  return appendTypeSignature(string, start, fullyQualifyTypeNames, buffer, false);
}

代码示例来源:origin: trylimits/Eclipse-Postfix-Code-Completion

/**
 * Scans the given string for a type signature starting at the given
 * index and appends it to the given buffer, and returns the index of the last
 * character.
 *
 * @param string the signature string
 * @param start the 0-based character index of the first character
 * @param fullyQualifyTypeNames <code>true</code> if type names should be fully
 *   qualified, and <code>false</code> to use only simple names
 * @param buffer the string buffer to append to
 * @return the 0-based character index of the last character
 * @exception IllegalArgumentException if this is not a type signature
 * @see Util#scanTypeSignature(char[], int)
 */
private static int appendTypeSignature(char[] string, int start, boolean fullyQualifyTypeNames, StringBuffer buffer) {
  return appendTypeSignature(string, start, fullyQualifyTypeNames, buffer, false);
}

代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core

/**
 * Scans the given string for a type signature starting at the given
 * index and appends it to the given buffer, and returns the index of the last
 * character.
 *
 * @param string the signature string
 * @param start the 0-based character index of the first character
 * @param fullyQualifyTypeNames <code>true</code> if type names should be fully
 *   qualified, and <code>false</code> to use only simple names
 * @param buffer the string buffer to append to
 * @return the 0-based character index of the last character
 * @exception IllegalArgumentException if this is not a type signature
 * @see Util#scanTypeSignature(char[], int)
 */
private static int appendTypeSignature(char[] string, int start, boolean fullyQualifyTypeNames, StringBuffer buffer) {
  return appendTypeSignature(string, start, fullyQualifyTypeNames, buffer, false);
}
/**

代码示例来源:origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core

case C_EXTENDS :
  buffer.append("? extends "); //$NON-NLS-1$
  return appendTypeSignature(string, start + 1, fullyQualifyTypeNames, buffer);
case C_SUPER :
  buffer.append("? super "); //$NON-NLS-1$
  return appendTypeSignature(string, start + 1, fullyQualifyTypeNames, buffer);
default :
  return appendTypeSignature(string, start, fullyQualifyTypeNames, buffer);

代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core

case C_EXTENDS :
  buffer.append("? extends "); //$NON-NLS-1$
  return appendTypeSignature(string, start + 1, fullyQualifyTypeNames, buffer);
case C_SUPER :
  buffer.append("? super "); //$NON-NLS-1$
  return appendTypeSignature(string, start + 1, fullyQualifyTypeNames, buffer);
default :
  return appendTypeSignature(string, start, fullyQualifyTypeNames, buffer);

代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core

case C_EXTENDS :
  buffer.append("? extends "); //$NON-NLS-1$
  return appendTypeSignature(string, start + 1, fullyQualifyTypeNames, buffer);
case C_SUPER :
  buffer.append("? super "); //$NON-NLS-1$
  return appendTypeSignature(string, start + 1, fullyQualifyTypeNames, buffer);
default :
  return appendTypeSignature(string, start, fullyQualifyTypeNames, buffer);

代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core

case C_EXTENDS :
  buffer.append("? extends "); //$NON-NLS-1$
  return appendTypeSignature(string, start + 1, fullyQualifyTypeNames, buffer);
case C_SUPER :
  buffer.append("? super "); //$NON-NLS-1$
  return appendTypeSignature(string, start + 1, fullyQualifyTypeNames, buffer);
default :
  return appendTypeSignature(string, start, fullyQualifyTypeNames, buffer);

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core

case C_EXTENDS :
  buffer.append("? extends "); //$NON-NLS-1$
  return appendTypeSignature(string, start + 1, fullyQualifyTypeNames, buffer);
case C_SUPER :
  buffer.append("? super "); //$NON-NLS-1$
  return appendTypeSignature(string, start + 1, fullyQualifyTypeNames, buffer);
default :
  return appendTypeSignature(string, start, fullyQualifyTypeNames, buffer);

代码示例来源:origin: trylimits/Eclipse-Postfix-Code-Completion

case C_EXTENDS :
  buffer.append("? extends "); //$NON-NLS-1$
  return appendTypeSignature(string, start + 1, fullyQualifyTypeNames, buffer);
case C_SUPER :
  buffer.append("? super "); //$NON-NLS-1$
  return appendTypeSignature(string, start + 1, fullyQualifyTypeNames, buffer);
default :
  return appendTypeSignature(string, start, fullyQualifyTypeNames, buffer);

代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core

int e = appendTypeSignature(string, index, fullyQualifyTypeNames, buffer);

代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core

int e = appendTypeSignature(string, index, fullyQualifyTypeNames, buffer);

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core

appendTypeSignature(signature, 0, true, buffer);
char[] result = new char[buffer.length()];
buffer.getChars(0, buffer.length(), result, 0);

代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core

appendTypeSignature(signature, 0, true, buffer);
char[] result = new char[buffer.length()];
buffer.getChars(0, buffer.length(), result, 0);

代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core

appendTypeSignature(signature, 0, true, buffer);
char[] result = new char[buffer.length()];
buffer.getChars(0, buffer.length(), result, 0);

代码示例来源:origin: trylimits/Eclipse-Postfix-Code-Completion

appendTypeSignature(signature, 0, true, buffer);
char[] result = new char[buffer.length()];
buffer.getChars(0, buffer.length(), result, 0);

代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core

appendTypeSignature(signature, 0, true, buffer);
char[] result = new char[buffer.length()];
buffer.getChars(0, buffer.length(), result, 0);

代码示例来源:origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core

appendTypeSignature(signature, 0, true, buffer);
char[] result = new char[buffer.length()];
buffer.getChars(0, buffer.length(), result, 0);

相关文章