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

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

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

Util.appendTypeSignature介绍

暂无

代码示例

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

private static void appendArrayTypeSignature(char[] string, int start, StringBuffer buffer, boolean compact) {
  int length = string.length;
  // need a minimum 2 char
  if (start >= length - 1) {
    throw new IllegalArgumentException();
  }
  char c = string[start];
  if (c != Signature.C_ARRAY) {
    throw new IllegalArgumentException();
  }
  int index = start;
  c = string[++index];
  while(c == Signature.C_ARRAY) {
    // need a minimum 2 char
    if (index >= length - 1) {
      throw new IllegalArgumentException();
    }
    c = string[++index];
  }
  appendTypeSignature(string, index, buffer, compact);
  for(int i = 0, dims = index - start; i < dims; i++) {
    buffer.append('[').append(']');
  }
}
private static void appendClassTypeSignature(char[] string, int start, StringBuffer buffer, boolean compact) {

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

private static void appendArrayTypeSignature(char[] string, int start, StringBuffer buffer, boolean compact) {
  int length = string.length;
  // need a minimum 2 char
  if (start >= length - 1) {
    throw new IllegalArgumentException();
  }
  char c = string[start];
  if (c != Signature.C_ARRAY) {
    throw new IllegalArgumentException();
  }
  int index = start;
  c = string[++index];
  while(c == Signature.C_ARRAY) {
    // need a minimum 2 char
    if (index >= length - 1) {
      throw new IllegalArgumentException();
    }
    c = string[++index];
  }
  appendTypeSignature(string, index, buffer, compact);
  for(int i = 0, dims = index - start; i < dims; i++) {
    buffer.append('[').append(']');
  }
}
private static void appendClassTypeSignature(char[] string, int start, StringBuffer buffer, boolean compact) {

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

private static void appendArrayTypeSignature(char[] string, int start, StringBuffer buffer, boolean compact) {
  int length = string.length;
  // need a minimum 2 char
  if (start >= length - 1) {
    throw new IllegalArgumentException();
  }
  char c = string[start];
  if (c != Signature.C_ARRAY) {
    throw new IllegalArgumentException();
  }
  int index = start;
  c = string[++index];
  while(c == Signature.C_ARRAY) {
    // need a minimum 2 char
    if (index >= length - 1) {
      throw new IllegalArgumentException();
    }
    c = string[++index];
  }
  appendTypeSignature(string, index, buffer, compact);
  for(int i = 0, dims = index - start; i < dims; i++) {
    buffer.append('[').append(']');
  }
}
private static void appendClassTypeSignature(char[] string, int start, StringBuffer buffer, boolean compact) {

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

private static void appendArrayTypeSignature(char[] string, int start, StringBuffer buffer, boolean compact) {
  int length = string.length;
  // need a minimum 2 char
  if (start >= length - 1) {
    throw new IllegalArgumentException();
  }
  char c = string[start];
  if (c != Signature.C_ARRAY) {
    throw new IllegalArgumentException();
  }
  int index = start;
  c = string[++index];
  while(c == Signature.C_ARRAY) {
    // need a minimum 2 char
    if (index >= length - 1) {
      throw new IllegalArgumentException();
    }
    c = string[++index];
  }
  appendTypeSignature(string, index, buffer, compact);
  for(int i = 0, dims = index - start; i < dims; i++) {
    buffer.append('[').append(']');
  }
}
private static void appendClassTypeSignature(char[] string, int start, StringBuffer buffer, boolean compact) {

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

private String returnConstantClassName(IConstantPoolEntry constantClass) {
  char[] className = constantClass.getClassInfoName();
  if (className.length == 0) {
    return EMPTY_CLASS_NAME;
  }
  switch(className[0]) {
    case '[' :
      StringBuffer classNameBuffer = new StringBuffer();
      Util.appendTypeSignature(className, 0, classNameBuffer, isCompact());
      return classNameBuffer.toString();
    default:
      return returnClassName(className);
  }
}
private String returnClassName(char[] classInfoName) {

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

private String returnConstantClassName(IConstantPoolEntry constantClass) {
  char[] className = constantClass.getClassInfoName();
  if (className.length == 0) {
    return EMPTY_CLASS_NAME;
  }
  switch(className[0]) {
    case '[' :
      StringBuffer classNameBuffer = new StringBuffer();
      Util.appendTypeSignature(className, 0, classNameBuffer, isCompact());
      return classNameBuffer.toString();
    default:
      return returnClassName(className);
  }
}
private String returnClassName(char[] classInfoName) {

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

private String returnConstantClassName(IConstantPoolEntry constantClass) {
  char[] className = constantClass.getClassInfoName();
  if (className.length == 0) {
    return EMPTY_CLASS_NAME;
  }
  switch(className[0]) {
    case '[' :
      StringBuffer classNameBuffer = new StringBuffer();
      Util.appendTypeSignature(className, 0, classNameBuffer, isCompact());
      return classNameBuffer.toString();
    default:
      return returnClassName(className);
  }
}
private String returnClassName(char[] classInfoName) {

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

private String returnConstantClassName(IConstantPoolEntry constantClass) {
  char[] className = constantClass.getClassInfoName();
  if (className.length == 0) {
    return EMPTY_CLASS_NAME;
  }
  switch(className[0]) {
    case '[' :
      StringBuffer classNameBuffer = new StringBuffer();
      Util.appendTypeSignature(className, 0, classNameBuffer, isCompact());
      return classNameBuffer.toString();
    default:
      return returnClassName(className);
  }
}
private String returnClassName(char[] classInfoName) {

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

private String returnConstantClassName(IConstantPoolEntry constantClass) {
  char[] className = constantClass.getClassInfoName();
  if (className.length == 0) {
    return EMPTY_CLASS_NAME;
  }
  switch(className[0]) {
    case '[' :
      StringBuffer classNameBuffer = new StringBuffer();
      Util.appendTypeSignature(className, 0, classNameBuffer, isCompact());
      return classNameBuffer.toString();
    default:
      return returnClassName(className);
  }
}
private String returnClassName(char[] classInfoName) {

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

private String returnConstantClassName(IConstantPoolEntry constantClass) {
  char[] className = constantClass.getClassInfoName();
  if (className.length == 0) {
    return EMPTY_CLASS_NAME;
  }
  switch(className[0]) {
    case '[' :
      StringBuffer classNameBuffer = new StringBuffer();
      Util.appendTypeSignature(className, 0, classNameBuffer, isCompact());
      return classNameBuffer.toString();
    default:
      return returnClassName(className);
  }
}
private String returnClassName(char[] classInfoName) {

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

private String returnConstantClassName(IConstantPoolEntry constantClass) {
  char[] className = constantClass.getClassInfoName();
  if (className.length == 0) {
    return EMPTY_CLASS_NAME;
  }
  switch(className[0]) {
    case '[' :
      StringBuffer classNameBuffer = new StringBuffer();
      Util.appendTypeSignature(className, 0, classNameBuffer, isCompact());
      return classNameBuffer.toString();
    default:
      return returnClassName(className);
  }
}
private String returnClassName(char[] classInfoName) {

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

private static void appendArrayTypeSignature(char[] string, int start, StringBuffer buffer, boolean compact) {
  int length = string.length;
  // need a minimum 2 char
  if (start >= length - 1) {
    throw raiseIllegalSignatureException(string, start);
  }
  char c = string[start];
  if (c != Signature.C_ARRAY) {
    throw raiseUnexpectedCharacterException(string, start, c);
  }
  int index = start;
  c = string[++index];
  while(c == Signature.C_ARRAY) {
    // need a minimum 2 char
    if (index >= length - 1) {
      throw raiseIllegalSignatureException(string, start);
    }
    c = string[++index];
  }
  appendTypeSignature(string, index, buffer, compact);
  for(int i = 0, dims = index - start; i < dims; i++) {
    buffer.append('[').append(']');
  }
}
private static void appendClassTypeSignature(char[] string, int start, StringBuffer buffer, boolean compact) {

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

private static void appendArrayTypeSignature(char[] string, int start, StringBuffer buffer, boolean compact) {
  int length = string.length;
  // need a minimum 2 char
  if (start >= length - 1) {
    throw raiseIllegalSignatureException(string, start);
  }
  char c = string[start];
  if (c != Signature.C_ARRAY) {
    throw raiseUnexpectedCharacterException(string, start, c);
  }
  int index = start;
  c = string[++index];
  while(c == Signature.C_ARRAY) {
    // need a minimum 2 char
    if (index >= length - 1) {
      throw raiseIllegalSignatureException(string, start);
    }
    c = string[++index];
  }
  appendTypeSignature(string, index, buffer, compact);
  for(int i = 0, dims = index - start; i < dims; i++) {
    buffer.append('[').append(']');
  }
}
private static void appendClassTypeSignature(char[] string, int start, StringBuffer buffer, boolean compact) {

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

private static void appendArrayTypeSignature(char[] string, int start, StringBuffer buffer, boolean compact) {
  int length = string.length;
  // need a minimum 2 char
  if (start >= length - 1) {
    throw raiseIllegalSignatureException(string, start);
  }
  char c = string[start];
  if (c != Signature.C_ARRAY) {
    throw raiseUnexpectedCharacterException(string, start, c);
  }
  int index = start;
  c = string[++index];
  while(c == Signature.C_ARRAY) {
    // need a minimum 2 char
    if (index >= length - 1) {
      throw raiseIllegalSignatureException(string, start);
    }
    c = string[++index];
  }
  appendTypeSignature(string, index, buffer, compact);
  for(int i = 0, dims = index - start; i < dims; i++) {
    buffer.append('[').append(']');
  }
}
private static void appendClassTypeSignature(char[] string, int start, StringBuffer buffer, boolean compact) {

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

char[][] pts = Signature.getParameterTypes(methodSignature);
for (int i = 0, max = pts.length; i < max; i++) {
  appendTypeSignature(pts[i], 0 , buffer, compact);
  if (i != pts.length - 1) {
    buffer.append(',');
    appendTypeSignature(rts, 0 , buffer, compact);

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

char[][] pts = Signature.getParameterTypes(methodSignature);
for (int i = 0, max = pts.length; i < max; i++) {
  appendTypeSignature(pts[i], 0 , buffer, compact);
  if (i != pts.length - 1) {
    buffer.append(',');
    appendTypeSignature(rts, 0 , buffer, compact);

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

char[][] pts = Signature.getParameterTypes(methodSignature);
for (int i = 0, max = pts.length; i < max; i++) {
  appendTypeSignature(pts[i], 0 , buffer, compact);
  if (i != pts.length - 1) {
    buffer.append(',');
    appendTypeSignature(rts, 0 , buffer, compact);

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

char[][] pts = Signature.getParameterTypes(methodSignature);
for (int i = 0, max = pts.length; i < max; i++) {
  appendTypeSignature(pts[i], 0 , buffer, compact);
  if (i != pts.length - 1) {
    buffer.append(',');
    appendTypeSignature(rts, 0 , buffer, compact);

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

char[][] pts = Signature.getParameterTypes(methodSignature);
for (int i = 0, max = pts.length; i < max; i++) {
  appendTypeSignature(pts[i], 0 , buffer, compact);
  if (i != pts.length - 1) {
    buffer.append(',');
    appendTypeSignature(rts, 0 , buffer, compact);

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

char[][] pts = Signature.getParameterTypes(methodSignature);
for (int i = 0, max = pts.length; i < max; i++) {
  appendTypeSignature(pts[i], 0 , buffer, compact);
  if (i != pts.length - 1) {
    buffer.append(',');
    appendTypeSignature(rts, 0 , buffer, compact);

相关文章

Util类方法