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

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

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

Signature.getTypeParameterBounds介绍

[英]Extracts the class and interface bounds from the given formal type parameter signature. The class bound, if present, is listed before the interface bounds. The signature is expected to be dot-based.
[中]

代码示例

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

/**
 * Extracts the class and interface bounds from the given formal type
 * parameter signature. The class bound, if present, is listed before
 * the interface bounds. The signature is expected to be dot-based.
 *
 * @param formalTypeParameterSignature the formal type parameter signature
 * @return the (possibly empty) list of type signatures for the bounds
 * @exception IllegalArgumentException if the signature is syntactically
 *   incorrect
 * @since 3.0
 */
public static String[] getTypeParameterBounds(String formalTypeParameterSignature) throws IllegalArgumentException {
  char[][] bounds = getTypeParameterBounds(formalTypeParameterSignature.toCharArray());
  return CharOperation.toStrings(bounds);
}

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

/**
 * Extracts the class and interface bounds from the given formal type
 * parameter signature. The class bound, if present, is listed before
 * the interface bounds. The signature is expected to be dot-based.
 *
 * @param formalTypeParameterSignature the formal type parameter signature
 * @return the (possibly empty) list of type signatures for the bounds
 * @exception IllegalArgumentException if the signature is syntactically
 *   incorrect
 * @since 3.0
 */
public static String[] getTypeParameterBounds(String formalTypeParameterSignature) throws IllegalArgumentException {
  char[][] bounds = getTypeParameterBounds(formalTypeParameterSignature.toCharArray());
  return CharOperation.toStrings(bounds);
}

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

/**
 * Extracts the class and interface bounds from the given formal type
 * parameter signature. The class bound, if present, is listed before
 * the interface bounds. The signature is expected to be dot-based.
 *
 * @param formalTypeParameterSignature the formal type parameter signature
 * @return the (possibly empty) list of type signatures for the bounds
 * @exception IllegalArgumentException if the signature is syntactically
 *   incorrect
 * @since 3.0
 */
public static String[] getTypeParameterBounds(String formalTypeParameterSignature) throws IllegalArgumentException {
  char[][] bounds = getTypeParameterBounds(formalTypeParameterSignature.toCharArray());
  return CharOperation.toStrings(bounds);
}

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

/**
 * Extracts the class and interface bounds from the given formal type
 * parameter signature. The class bound, if present, is listed before
 * the interface bounds. The signature is expected to be dot-based.
 *
 * @param formalTypeParameterSignature the formal type parameter signature
 * @return the (possibly empty) list of type signatures for the bounds
 * @exception IllegalArgumentException if the signature is syntactically
 *   incorrect
 * @since 3.0
 */
public static String[] getTypeParameterBounds(String formalTypeParameterSignature) throws IllegalArgumentException {
  char[][] bounds = getTypeParameterBounds(formalTypeParameterSignature.toCharArray());
  return CharOperation.toStrings(bounds);
}

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

/**
 * Extracts the class and interface bounds from the given formal type
 * parameter signature. The class bound, if present, is listed before
 * the interface bounds. The signature is expected to be dot-based.
 *
 * @param formalTypeParameterSignature the formal type parameter signature
 * @return the (possibly empty) list of type signatures for the bounds
 * @exception IllegalArgumentException if the signature is syntactically
 *   incorrect
 * @since 3.0
 */
public static String[] getTypeParameterBounds(String formalTypeParameterSignature) throws IllegalArgumentException {
  char[][] bounds = getTypeParameterBounds(formalTypeParameterSignature.toCharArray());
  return CharOperation.toStrings(bounds);
}

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

/**
 * Extracts the class and interface bounds from the given formal type
 * parameter signature. The class bound, if present, is listed before
 * the interface bounds. The signature is expected to be dot-based.
 *
 * @param formalTypeParameterSignature the formal type parameter signature
 * @return the (possibly empty) list of type signatures for the bounds
 * @exception IllegalArgumentException if the signature is syntactically
 *   incorrect
 * @since 3.0
 */
public static String[] getTypeParameterBounds(String formalTypeParameterSignature) throws IllegalArgumentException {
  char[][] bounds = getTypeParameterBounds(formalTypeParameterSignature.toCharArray());
  return CharOperation.toStrings(bounds);
}

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

char[] typeParameterName = Signature.getTypeVariable(typeParameterSignature);
CharOperation.replace(typeParameterSignature, '/', '.');
char[][] typeParameterBoundSignatures = Signature.getTypeParameterBounds(typeParameterSignature);
int boundLength = typeParameterBoundSignatures.length;
char[][] typeParameterBounds = new char[boundLength][];

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

char[] typeParameterName = Signature.getTypeVariable(typeParameterSignature);
CharOperation.replace(typeParameterSignature, '/', '.');
char[][] typeParameterBoundSignatures = Signature.getTypeParameterBounds(typeParameterSignature);
int boundLength = typeParameterBoundSignatures.length;
char[][] typeParameterBounds = new char[boundLength][];

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

char[] typeParameterName = Signature.getTypeVariable(typeParameterSignature);
CharOperation.replace(typeParameterSignature, '/', '.');
char[][] typeParameterBoundSignatures = Signature.getTypeParameterBounds(typeParameterSignature);
int boundLength = typeParameterBoundSignatures.length;
char[][] typeParameterBounds = new char[boundLength][];

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

char[] typeParameterName = Signature.getTypeVariable(typeParameterSignature);
CharOperation.replace(typeParameterSignature, '/', '.');
char[][] typeParameterBoundSignatures = Signature.getTypeParameterBounds(typeParameterSignature);
int boundLength = typeParameterBoundSignatures.length;
char[][] typeParameterBounds = new char[boundLength][];

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

char[] typeParameterName = Signature.getTypeVariable(typeParameterSignature);
CharOperation.replace(typeParameterSignature, '/', '.');
char[][] typeParameterBoundSignatures = Signature.getTypeParameterBounds(typeParameterSignature);
int boundLength = typeParameterBoundSignatures.length;
char[][] typeParameterBounds = new char[boundLength][];

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

char[] typeParameterName = Signature.getTypeVariable(typeParameterSignature);
CharOperation.replace(typeParameterSignature, '/', '.');
char[][] typeParameterBoundSignatures = Signature.getTypeParameterBounds(typeParameterSignature);
int boundLength = typeParameterBoundSignatures.length;
char[][] typeParameterBounds = new char[boundLength][];

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

final char[][] bounds = Signature.getTypeParameterBounds(typeParameters[i]);
final int boundsLength = bounds.length;
if (boundsLength != 0) {

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

final char[][] bounds = Signature.getTypeParameterBounds(typeParameters[i]);
final int boundsLength = bounds.length;
if (boundsLength != 0) {

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

final char[][] bounds = Signature.getTypeParameterBounds(typeParameters[i]);
final int boundsLength = bounds.length;
if (boundsLength != 0) {

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

final char[][] bounds = Signature.getTypeParameterBounds(typeParameters[i]);
final int boundsLength = bounds.length;
if (boundsLength != 0) {

代码示例来源:origin: com.vaadin/vaadin-client-compiler-deps

final char[][] bounds = Signature.getTypeParameterBounds(typeParameters[i]);
final int boundsLength = bounds.length;
if (boundsLength != 0) {

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

final char[][] bounds = Signature.getTypeParameterBounds(typeParameters[i]);
final int boundsLength = bounds.length;
if (boundsLength != 0) {

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

final char[][] bounds = Signature.getTypeParameterBounds(typeParameters[i]);
final int boundsLength = bounds.length;
if (boundsLength != 0) {

相关文章