本文整理了Java中org.eclipse.jdt.internal.core.util.Util.raiseUnexpectedCharacterException()
方法的一些代码示例,展示了Util.raiseUnexpectedCharacterException()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Util.raiseUnexpectedCharacterException()
方法的具体详情如下:
包路径:org.eclipse.jdt.internal.core.util.Util
类名称:Util
方法名:raiseUnexpectedCharacterException
暂无
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core
private static int appendCaptureTypeSignatureForAnchor(char[] string, int start, StringBuffer buffer) {
// need a minimum 2 char
if (start >= string.length - 1) {
throw raiseIllegalSignatureException(string, start);
}
char c = string[start];
if (c != Signature.C_CAPTURE) {
throw raiseUnexpectedCharacterException(string, start, c);
}
return appendTypeArgumentSignatureForAnchor(string, start + 1, buffer);
}
private static int appendArrayTypeSignatureForAnchor(char[] string, int start, StringBuffer buffer, boolean isVarArgs) {
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core
private static int appendCaptureTypeSignatureForAnchor(char[] string, int start, StringBuffer buffer) {
// need a minimum 2 char
if (start >= string.length - 1) {
throw raiseIllegalSignatureException(string, start);
}
char c = string[start];
if (c != Signature.C_CAPTURE) {
throw raiseUnexpectedCharacterException(string, start, c);
}
return appendTypeArgumentSignatureForAnchor(string, start + 1, buffer);
}
private static int appendArrayTypeSignatureForAnchor(char[] string, int start, StringBuffer buffer, boolean isVarArgs) {
代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core
private static int appendCaptureTypeSignatureForAnchor(char[] string, int start, StringBuffer buffer) {
// need a minimum 2 char
if (start >= string.length - 1) {
throw raiseIllegalSignatureException(string, start);
}
char c = string[start];
if (c != Signature.C_CAPTURE) {
throw raiseUnexpectedCharacterException(string, start, c);
}
return appendTypeArgumentSignatureForAnchor(string, start + 1, buffer);
}
private static int appendArrayTypeSignatureForAnchor(char[] string, int start, StringBuffer buffer, boolean isVarArgs) {
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core
throw raiseUnexpectedCharacterException(string, start, c);
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core
throw raiseUnexpectedCharacterException(string, start, c);
代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core
throw raiseUnexpectedCharacterException(string, start, c);
代码示例来源: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
throw raiseUnexpectedCharacterException(string, start, c);
代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core
throw raiseUnexpectedCharacterException(string, start, c);
代码示例来源: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.jdt/org.eclipse.jdt.core
throw raiseUnexpectedCharacterException(string, start, c);
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core
default:
throw raiseUnexpectedCharacterException(string, start, c);
代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core
default:
throw raiseUnexpectedCharacterException(string, start, c);
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core
default:
throw raiseUnexpectedCharacterException(string, start, c);
内容来源于网络,如有侵权,请联系作者删除!