org.eclipse.jdt.internal.compiler.util.Util.scanTypeBoundSignature()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(9.7k)|赞(0)|评价(0)|浏览(144)

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

Util.scanTypeBoundSignature介绍

[英]Scans the given string for a type bound signature starting at the given index and returns the index of the last character.

TypeBoundSignature: 
[-+] TypeSignature ; 
*

[中]从给定索引开始扫描给定字符串以查找类型绑定签名,并返回最后一个字符的索引

TypeBoundSignature: 
[-+] TypeSignature ; 
*

代码示例

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

/**
 * Scans the given string for a capture of a wildcard type signature starting at the given
 * index and returns the index of the last character.
 * <pre>
 * CaptureTypeSignature:
 *     <b>!</b> TypeBoundSignature
 * </pre>
 *
 * @param string the signature string
 * @param start the 0-based character index of the first character
 * @return the 0-based character index of the last character
 * @exception IllegalArgumentException if this is not a capture type signature
 */
public static int scanCaptureTypeSignature(char[] string, int start) {
  // need a minimum 2 char
  if (start >= string.length - 1) {
    throw new IllegalArgumentException();
  }
  char c = string[start];
  if (c != C_CAPTURE) {
    throw new IllegalArgumentException();
  }
  return scanTypeBoundSignature(string, start + 1);
}

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

/**
 * Scans the given string for a capture of a wildcard type signature starting at the given
 * index and returns the index of the last character.
 * <pre>
 * CaptureTypeSignature:
 *     <b>!</b> TypeBoundSignature
 * </pre>
 *
 * @param string the signature string
 * @param start the 0-based character index of the first character
 * @return the 0-based character index of the last character
 * @exception IllegalArgumentException if this is not a capture type signature
 */
public static int scanCaptureTypeSignature(char[] string, int start) {
  // need a minimum 2 char
  if (start >= string.length - 1) {
    throw new IllegalArgumentException();
  }
  char c = string[start];
  if (c != C_CAPTURE) {
    throw new IllegalArgumentException();
  }
  return scanTypeBoundSignature(string, start + 1);
}

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

/**
 * Scans the given string for a capture of a wildcard type signature starting at the given
 * index and returns the index of the last character.
 * <pre>
 * CaptureTypeSignature:
 *     <b>!</b> TypeBoundSignature
 * </pre>
 *
 * @param string the signature string
 * @param start the 0-based character index of the first character
 * @return the 0-based character index of the last character
 * @exception IllegalArgumentException if this is not a capture type signature
 */
public static int scanCaptureTypeSignature(char[] string, int start) {
  // need a minimum 2 char
  if (start >= string.length - 1) {
    throw new IllegalArgumentException();
  }
  char c = string[start];
  if (c != C_CAPTURE) {
    throw new IllegalArgumentException();
  }
  return scanTypeBoundSignature(string, start + 1);
}

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

/**
 * Scans the given string for a capture of a wildcard type signature starting at the given
 * index and returns the index of the last character.
 * <pre>
 * CaptureTypeSignature:
 *     <b>!</b> TypeBoundSignature
 * </pre>
 *
 * @param string the signature string
 * @param start the 0-based character index of the first character
 * @return the 0-based character index of the last character
 * @exception IllegalArgumentException if this is not a capture type signature
 */
public static int scanCaptureTypeSignature(char[] string, int start) {
  // need a minimum 2 char
  if (start >= string.length - 1) {
    throw new IllegalArgumentException();
  }
  char c = string[start];
  if (c != C_CAPTURE) {
    throw new IllegalArgumentException();
  }
  return scanTypeBoundSignature(string, start + 1);
}

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

/**
 * Scans the given string for a capture of a wildcard type signature starting at the given
 * index and returns the index of the last character.
 * <pre>
 * CaptureTypeSignature:
 *     <b>!</b> TypeBoundSignature
 * </pre>
 *
 * @param string the signature string
 * @param start the 0-based character index of the first character
 * @return the 0-based character index of the last character
 * @exception IllegalArgumentException if this is not a capture type signature
 */
public static int scanCaptureTypeSignature(char[] string, int start) {
  // need a minimum 2 char
  if (start >= string.length - 1) {
    throw new IllegalArgumentException();
  }
  char c = string[start];
  if (c != C_CAPTURE) {
    throw new IllegalArgumentException();
  }
  return scanTypeBoundSignature(string, start + 1);
}

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

/**
 * Scans the given string for a capture of a wildcard type signature starting at the given
 * index and returns the index of the last character.
 * <pre>
 * CaptureTypeSignature:
 *     <b>!</b> TypeBoundSignature
 * </pre>
 *
 * @param string the signature string
 * @param start the 0-based character index of the first character
 * @return the 0-based character index of the last character
 * @exception IllegalArgumentException if this is not a capture type signature
 */
public static int scanCaptureTypeSignature(char[] string, int start) {
  // need a minimum 2 char
  if (start >= string.length - 1) {
    throw new IllegalArgumentException();
  }
  char c = string[start];
  if (c != C_CAPTURE) {
    throw new IllegalArgumentException();
  }
  return scanTypeBoundSignature(string, start + 1);
}

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

/**
 * Scans the given string for a capture of a wildcard type signature starting at the given
 * index and returns the index of the last character.
 * <pre>
 * CaptureTypeSignature:
 *     <b>!</b> TypeBoundSignature
 * </pre>
 *
 * @param string the signature string
 * @param start the 0-based character index of the first character
 * @return the 0-based character index of the last character
 * @exception IllegalArgumentException if this is not a capture type signature
 */
public static int scanCaptureTypeSignature(char[] string, int start) {
  // need a minimum 2 char
  if (start >= string.length - 1) {
    throw new IllegalArgumentException();
  }
  char c = string[start];
  if (c != C_CAPTURE) {
    throw new IllegalArgumentException();
  }
  return scanTypeBoundSignature(string, start + 1);
}

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

/**
 * Scans the given string for a capture of a wildcard type signature starting at the given
 * index and returns the index of the last character.
 * <pre>
 * CaptureTypeSignature:
 *     <b>!</b> TypeBoundSignature
 * </pre>
 *
 * @param string the signature string
 * @param start the 0-based character index of the first character
 * @return the 0-based character index of the last character
 * @exception IllegalArgumentException if this is not a capture type signature
 */
public static int scanCaptureTypeSignature(char[] string, int start) {
  // need a minimum 2 char
  if (start >= string.length - 1) {
    throw new IllegalArgumentException();
  }
  char c = string[start];
  if (c != C_CAPTURE) {
    throw new IllegalArgumentException();
  }
  return scanTypeBoundSignature(string, start + 1);
}

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

/**
 * Scans the given string for a capture of a wildcard type signature starting at the given
 * index and returns the index of the last character.
 * <pre>
 * CaptureTypeSignature:
 *     <b>!</b> TypeBoundSignature
 * </pre>
 *
 * @param string the signature string
 * @param start the 0-based character index of the first character
 * @return the 0-based character index of the last character
 * @exception IllegalArgumentException if this is not a capture type signature
 */
public static int scanCaptureTypeSignature(char[] string, int start) {
  // need a minimum 2 char
  if (start >= string.length - 1) {
    throw new IllegalArgumentException();
  }
  char c = string[start];
  if (c != C_CAPTURE) {
    throw new IllegalArgumentException();
  }
  return scanTypeBoundSignature(string, start + 1);
}

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

/**
 * Scans the given string for a capture of a wildcard type signature starting at the given
 * index and returns the index of the last character.
 * <pre>
 * CaptureTypeSignature:
 *     <b>!</b> TypeBoundSignature
 * </pre>
 *
 * @param string the signature string
 * @param start the 0-based character index of the first character
 * @return the 0-based character index of the last character
 * @exception IllegalArgumentException if this is not a capture type signature
 */
public static int scanCaptureTypeSignature(char[] string, int start) {
  // need a minimum 2 char
  if (start >= string.length - 1) {
    throw new IllegalArgumentException();
  }
  char c = string[start];
  if (c != C_CAPTURE) {
    throw new IllegalArgumentException();
  }
  return scanTypeBoundSignature(string, start + 1);
}

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

case C_EXTENDS :
case C_SUPER :
  return scanTypeBoundSignature(string, start);
default :
  return scanTypeSignature(string, start);

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

case C_EXTENDS :
case C_SUPER :
  return scanTypeBoundSignature(string, start);
default :
  return scanTypeSignature(string, start);

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

case C_EXTENDS :
case C_SUPER :
  return scanTypeBoundSignature(string, start);
default :
  return scanTypeSignature(string, start);

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

case C_EXTENDS :
case C_SUPER :
  return scanTypeBoundSignature(string, start);
default :
  return scanTypeSignature(string, start);

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

case C_EXTENDS :
case C_SUPER :
  return scanTypeBoundSignature(string, start);
default :
  return scanTypeSignature(string, start);

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

case C_EXTENDS :
case C_SUPER :
  return scanTypeBoundSignature(string, start);
default :
  return scanTypeSignature(string, start);

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

case C_EXTENDS :
case C_SUPER :
  return scanTypeBoundSignature(string, start);
default :
  return scanTypeSignature(string, start);

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

case C_EXTENDS :
case C_SUPER :
  return scanTypeBoundSignature(string, start);
default :
  return scanTypeSignature(string, start);

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

case C_EXTENDS :
case C_SUPER :
  return scanTypeBoundSignature(string, start);
default :
  return scanTypeSignature(string, start);

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

case C_EXTENDS :
case C_SUPER :
  return scanTypeBoundSignature(string, start);
default :
  return scanTypeSignature(string, start);

相关文章