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

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

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

Util.toUnresolvedTypeSignature介绍

暂无

代码示例

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

  1. private static char[] toUnresolvedTypeSignature(char[] signature) {
  2. int length = signature.length;
  3. if (length <= 1)
  4. return signature;
  5. StringBuffer buffer = new StringBuffer(length);
  6. toUnresolvedTypeSignature(signature, 0, length, buffer);
  7. int bufferLength = buffer.length();
  8. char[] result = new char[bufferLength];
  9. buffer.getChars(0, bufferLength, result, 0);
  10. return result;
  11. }

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

  1. private static char[] toUnresolvedTypeSignature(char[] signature) {
  2. int length = signature.length;
  3. if (length <= 1)
  4. return signature;
  5. StringBuffer buffer = new StringBuffer(length);
  6. toUnresolvedTypeSignature(signature, 0, length, buffer);
  7. int bufferLength = buffer.length();
  8. char[] result = new char[bufferLength];
  9. buffer.getChars(0, bufferLength, result, 0);
  10. return result;
  11. }

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

  1. private static char[] toUnresolvedTypeSignature(char[] signature) {
  2. int length = signature.length;
  3. if (length <= 1)
  4. return signature;
  5. StringBuffer buffer = new StringBuffer(length);
  6. toUnresolvedTypeSignature(signature, 0, length, buffer);
  7. int bufferLength = buffer.length();
  8. char[] result = new char[bufferLength];
  9. buffer.getChars(0, bufferLength, result, 0);
  10. return result;
  11. }

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

  1. private static char[] toUnresolvedTypeSignature(char[] signature) {
  2. int length = signature.length;
  3. if (length <= 1)
  4. return signature;
  5. StringBuffer buffer = new StringBuffer(length);
  6. toUnresolvedTypeSignature(signature, 0, length, buffer);
  7. int bufferLength = buffer.length();
  8. char[] result = new char[bufferLength];
  9. buffer.getChars(0, bufferLength, result, 0);
  10. return result;
  11. }

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

  1. private static char[] toUnresolvedTypeSignature(char[] signature) {
  2. int length = signature.length;
  3. if (length <= 1)
  4. return signature;
  5. StringBuffer buffer = new StringBuffer(length);
  6. toUnresolvedTypeSignature(signature, 0, length, buffer);
  7. int bufferLength = buffer.length();
  8. char[] result = new char[bufferLength];
  9. buffer.getChars(0, bufferLength, result, 0);
  10. return result;
  11. }

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

  1. private static char[] toUnresolvedTypeSignature(char[] signature) {
  2. int length = signature.length;
  3. if (length <= 1)
  4. return signature;
  5. StringBuffer buffer = new StringBuffer(length);
  6. toUnresolvedTypeSignature(signature, 0, length, buffer);
  7. int bufferLength = buffer.length();
  8. char[] result = new char[bufferLength];
  9. buffer.getChars(0, bufferLength, result, 0);
  10. return result;
  11. }

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

  1. private static char[] toUnresolvedTypeSignature(char[] signature) {
  2. int length = signature.length;
  3. if (length <= 1)
  4. return signature;
  5. StringBuffer buffer = new StringBuffer(length);
  6. toUnresolvedTypeSignature(signature, 0, length, buffer);
  7. int bufferLength = buffer.length();
  8. char[] result = new char[bufferLength];
  9. buffer.getChars(0, bufferLength, result, 0);
  10. return result;
  11. }

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

  1. private static int toUnresolvedTypeSignature(char[] signature, int start, int length, StringBuffer buffer) {
  2. if (signature[start] == Signature.C_RESOLVED)
  3. buffer.append(Signature.C_UNRESOLVED);
  4. else
  5. buffer.append(signature[start]);
  6. for (int i = start+1; i < length; i++) {
  7. char c = signature[i];
  8. switch (c) {
  9. case '/':
  10. case Signature.C_DOLLAR:
  11. buffer.append(Signature.C_DOT);
  12. break;
  13. case Signature.C_GENERIC_START:
  14. buffer.append(Signature.C_GENERIC_START);
  15. i = toUnresolvedTypeSignature(signature, i+1, length, buffer);
  16. break;
  17. case Signature.C_GENERIC_END:
  18. buffer.append(Signature.C_GENERIC_END);
  19. return i;
  20. default:
  21. buffer.append(c);
  22. break;
  23. }
  24. }
  25. return length;
  26. }
  27. private static void appendArrayTypeSignature(char[] string, int start, StringBuffer buffer, boolean compact) {

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

  1. private static int toUnresolvedTypeSignature(char[] signature, int start, int length, StringBuffer buffer) {
  2. if (signature[start] == Signature.C_RESOLVED)
  3. buffer.append(Signature.C_UNRESOLVED);
  4. else
  5. buffer.append(signature[start]);
  6. for (int i = start+1; i < length; i++) {
  7. char c = signature[i];
  8. switch (c) {
  9. case '/':
  10. case Signature.C_DOLLAR:
  11. buffer.append(Signature.C_DOT);
  12. break;
  13. case Signature.C_GENERIC_START:
  14. buffer.append(Signature.C_GENERIC_START);
  15. i = toUnresolvedTypeSignature(signature, i+1, length, buffer);
  16. break;
  17. case Signature.C_GENERIC_END:
  18. buffer.append(Signature.C_GENERIC_END);
  19. return i;
  20. default:
  21. buffer.append(c);
  22. break;
  23. }
  24. }
  25. return length;
  26. }
  27. private static void appendArrayTypeSignature(char[] string, int start, StringBuffer buffer, boolean compact) {

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

  1. private static int toUnresolvedTypeSignature(char[] signature, int start, int length, StringBuffer buffer) {
  2. if (signature[start] == Signature.C_RESOLVED)
  3. buffer.append(Signature.C_UNRESOLVED);
  4. else
  5. buffer.append(signature[start]);
  6. for (int i = start+1; i < length; i++) {
  7. char c = signature[i];
  8. switch (c) {
  9. case '/':
  10. case Signature.C_DOLLAR:
  11. buffer.append(Signature.C_DOT);
  12. break;
  13. case Signature.C_GENERIC_START:
  14. buffer.append(Signature.C_GENERIC_START);
  15. i = toUnresolvedTypeSignature(signature, i+1, length, buffer);
  16. break;
  17. case Signature.C_GENERIC_END:
  18. buffer.append(Signature.C_GENERIC_END);
  19. return i;
  20. default:
  21. buffer.append(c);
  22. break;
  23. }
  24. }
  25. return length;
  26. }
  27. private static void appendArrayTypeSignature(char[] string, int start, StringBuffer buffer, boolean compact) {

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

  1. private static int toUnresolvedTypeSignature(char[] signature, int start, int length, StringBuffer buffer) {
  2. if (signature[start] == Signature.C_RESOLVED)
  3. buffer.append(Signature.C_UNRESOLVED);
  4. else
  5. buffer.append(signature[start]);
  6. for (int i = start+1; i < length; i++) {
  7. char c = signature[i];
  8. switch (c) {
  9. case '/':
  10. case Signature.C_DOLLAR:
  11. buffer.append(Signature.C_DOT);
  12. break;
  13. case Signature.C_GENERIC_START:
  14. buffer.append(Signature.C_GENERIC_START);
  15. i = toUnresolvedTypeSignature(signature, i+1, length, buffer);
  16. break;
  17. case Signature.C_GENERIC_END:
  18. buffer.append(Signature.C_GENERIC_END);
  19. return i;
  20. default:
  21. buffer.append(c);
  22. break;
  23. }
  24. }
  25. return length;
  26. }
  27. private static void appendArrayTypeSignature(char[] string, int start, StringBuffer buffer, boolean compact) {

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

  1. private static int toUnresolvedTypeSignature(char[] signature, int start, int length, StringBuffer buffer) {
  2. if (signature[start] == Signature.C_RESOLVED)
  3. buffer.append(Signature.C_UNRESOLVED);
  4. else
  5. buffer.append(signature[start]);
  6. for (int i = start+1; i < length; i++) {
  7. char c = signature[i];
  8. switch (c) {
  9. case '/':
  10. case Signature.C_DOLLAR:
  11. buffer.append(Signature.C_DOT);
  12. break;
  13. case Signature.C_GENERIC_START:
  14. buffer.append(Signature.C_GENERIC_START);
  15. i = toUnresolvedTypeSignature(signature, i+1, length, buffer);
  16. break;
  17. case Signature.C_GENERIC_END:
  18. buffer.append(Signature.C_GENERIC_END);
  19. return i;
  20. default:
  21. buffer.append(c);
  22. break;
  23. }
  24. }
  25. return length;
  26. }
  27. private static void appendArrayTypeSignature(char[] string, int start, StringBuffer buffer, boolean compact) {

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

  1. private static int toUnresolvedTypeSignature(char[] signature, int start, int length, StringBuffer buffer) {
  2. if (signature[start] == Signature.C_RESOLVED)
  3. buffer.append(Signature.C_UNRESOLVED);
  4. else
  5. buffer.append(signature[start]);
  6. for (int i = start+1; i < length; i++) {
  7. char c = signature[i];
  8. switch (c) {
  9. case '/':
  10. case Signature.C_DOLLAR:
  11. buffer.append(Signature.C_DOT);
  12. break;
  13. case Signature.C_GENERIC_START:
  14. buffer.append(Signature.C_GENERIC_START);
  15. i = toUnresolvedTypeSignature(signature, i+1, length, buffer);
  16. break;
  17. case Signature.C_GENERIC_END:
  18. buffer.append(Signature.C_GENERIC_END);
  19. return i;
  20. default:
  21. buffer.append(c);
  22. break;
  23. }
  24. }
  25. return length;
  26. }
  27. private static void appendArrayTypeSignature(char[] string, int start, StringBuffer buffer, boolean compact) {

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

  1. private static int toUnresolvedTypeSignature(char[] signature, int start, int length, StringBuffer buffer) {
  2. if (signature[start] == Signature.C_RESOLVED)
  3. buffer.append(Signature.C_UNRESOLVED);
  4. else
  5. buffer.append(signature[start]);
  6. for (int i = start+1; i < length; i++) {
  7. char c = signature[i];
  8. switch (c) {
  9. case '/':
  10. case Signature.C_DOLLAR:
  11. buffer.append(Signature.C_DOT);
  12. break;
  13. case Signature.C_GENERIC_START:
  14. buffer.append(Signature.C_GENERIC_START);
  15. i = toUnresolvedTypeSignature(signature, i+1, length, buffer);
  16. break;
  17. case Signature.C_GENERIC_END:
  18. buffer.append(Signature.C_GENERIC_END);
  19. return i;
  20. default:
  21. buffer.append(c);
  22. break;
  23. }
  24. }
  25. return length;
  26. }
  27. private static void appendArrayTypeSignature(char[] string, int start, StringBuffer buffer, boolean compact) {

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

  1. signature = CharOperation.replaceOnCopy(signature, '/', '.');
  2. } else {
  3. signature = toUnresolvedTypeSignature(signature);

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

  1. signature = CharOperation.replaceOnCopy(signature, '/', '.');
  2. } else {
  3. signature = toUnresolvedTypeSignature(signature);

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

  1. signature = CharOperation.replaceOnCopy(signature, '/', '.');
  2. } else {
  3. signature = toUnresolvedTypeSignature(signature);

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

  1. signature = CharOperation.replaceOnCopy(signature, '/', '.');
  2. } else {
  3. signature = toUnresolvedTypeSignature(signature);

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

  1. signature = CharOperation.replaceOnCopy(signature, '/', '.');
  2. } else {
  3. signature = toUnresolvedTypeSignature(signature);

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

  1. signature = CharOperation.replaceOnCopy(signature, '/', '.');
  2. } else {
  3. signature = toUnresolvedTypeSignature(signature);

相关文章

Util类方法