Java Code Examples for com.sun.org.apache.xalan.internal.xsltc.compiler.util.ErrorMsg#UNKNOWN_SIG_TYPE_ERR

The following examples show how to use com.sun.org.apache.xalan.internal.xsltc.compiler.util.ErrorMsg#UNKNOWN_SIG_TYPE_ERR . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FunctionCall.java    From jdk1.8-source-analysis with Apache License 2.0 4 votes vote down vote up
/**
 * Compute the JVM signature for the class.
 */
static final String getSignature(Class clazz) {
    if (clazz.isArray()) {
        final StringBuffer sb = new StringBuffer();
        Class cl = clazz;
        while (cl.isArray()) {
            sb.append("[");
            cl = cl.getComponentType();
        }
        sb.append(getSignature(cl));
        return sb.toString();
    }
    else if (clazz.isPrimitive()) {
        if (clazz == Integer.TYPE) {
            return "I";
        }
        else if (clazz == Byte.TYPE) {
            return "B";
        }
        else if (clazz == Long.TYPE) {
            return "J";
        }
        else if (clazz == Float.TYPE) {
            return "F";
        }
        else if (clazz == Double.TYPE) {
            return "D";
        }
        else if (clazz == Short.TYPE) {
            return "S";
        }
        else if (clazz == Character.TYPE) {
            return "C";
        }
        else if (clazz == Boolean.TYPE) {
            return "Z";
        }
        else if (clazz == Void.TYPE) {
            return "V";
        }
        else {
            final String name = clazz.toString();
            ErrorMsg err = new ErrorMsg(ErrorMsg.UNKNOWN_SIG_TYPE_ERR,name);
            throw new Error(err.toString());
        }
    }
    else {
        return "L" + clazz.getName().replace('.', '/') + ';';
    }
}
 
Example 2
Source File: FunctionCall.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Compute the JVM signature for the class.
 */
static final String getSignature(Class clazz) {
    if (clazz.isArray()) {
        final StringBuffer sb = new StringBuffer();
        Class cl = clazz;
        while (cl.isArray()) {
            sb.append("[");
            cl = cl.getComponentType();
        }
        sb.append(getSignature(cl));
        return sb.toString();
    }
    else if (clazz.isPrimitive()) {
        if (clazz == Integer.TYPE) {
            return "I";
        }
        else if (clazz == Byte.TYPE) {
            return "B";
        }
        else if (clazz == Long.TYPE) {
            return "J";
        }
        else if (clazz == Float.TYPE) {
            return "F";
        }
        else if (clazz == Double.TYPE) {
            return "D";
        }
        else if (clazz == Short.TYPE) {
            return "S";
        }
        else if (clazz == Character.TYPE) {
            return "C";
        }
        else if (clazz == Boolean.TYPE) {
            return "Z";
        }
        else if (clazz == Void.TYPE) {
            return "V";
        }
        else {
            final String name = clazz.toString();
            ErrorMsg err = new ErrorMsg(ErrorMsg.UNKNOWN_SIG_TYPE_ERR,name);
            throw new Error(err.toString());
        }
    }
    else {
        return "L" + clazz.getName().replace('.', '/') + ';';
    }
}
 
Example 3
Source File: FunctionCall.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Compute the JVM signature for the class.
 */
static final String getSignature(Class clazz) {
    if (clazz.isArray()) {
        final StringBuffer sb = new StringBuffer();
        Class cl = clazz;
        while (cl.isArray()) {
            sb.append("[");
            cl = cl.getComponentType();
        }
        sb.append(getSignature(cl));
        return sb.toString();
    }
    else if (clazz.isPrimitive()) {
        if (clazz == Integer.TYPE) {
            return "I";
        }
        else if (clazz == Byte.TYPE) {
            return "B";
        }
        else if (clazz == Long.TYPE) {
            return "J";
        }
        else if (clazz == Float.TYPE) {
            return "F";
        }
        else if (clazz == Double.TYPE) {
            return "D";
        }
        else if (clazz == Short.TYPE) {
            return "S";
        }
        else if (clazz == Character.TYPE) {
            return "C";
        }
        else if (clazz == Boolean.TYPE) {
            return "Z";
        }
        else if (clazz == Void.TYPE) {
            return "V";
        }
        else {
            final String name = clazz.toString();
            ErrorMsg err = new ErrorMsg(ErrorMsg.UNKNOWN_SIG_TYPE_ERR,name);
            throw new Error(err.toString());
        }
    }
    else {
        return "L" + clazz.getName().replace('.', '/') + ';';
    }
}
 
Example 4
Source File: FunctionCall.java    From JDKSourceCode1.8 with MIT License 4 votes vote down vote up
/**
 * Compute the JVM signature for the class.
 */
static final String getSignature(Class clazz) {
    if (clazz.isArray()) {
        final StringBuffer sb = new StringBuffer();
        Class cl = clazz;
        while (cl.isArray()) {
            sb.append("[");
            cl = cl.getComponentType();
        }
        sb.append(getSignature(cl));
        return sb.toString();
    }
    else if (clazz.isPrimitive()) {
        if (clazz == Integer.TYPE) {
            return "I";
        }
        else if (clazz == Byte.TYPE) {
            return "B";
        }
        else if (clazz == Long.TYPE) {
            return "J";
        }
        else if (clazz == Float.TYPE) {
            return "F";
        }
        else if (clazz == Double.TYPE) {
            return "D";
        }
        else if (clazz == Short.TYPE) {
            return "S";
        }
        else if (clazz == Character.TYPE) {
            return "C";
        }
        else if (clazz == Boolean.TYPE) {
            return "Z";
        }
        else if (clazz == Void.TYPE) {
            return "V";
        }
        else {
            final String name = clazz.toString();
            ErrorMsg err = new ErrorMsg(ErrorMsg.UNKNOWN_SIG_TYPE_ERR,name);
            throw new Error(err.toString());
        }
    }
    else {
        return "L" + clazz.getName().replace('.', '/') + ';';
    }
}
 
Example 5
Source File: FunctionCall.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Compute the JVM signature for the class.
 */
static final String getSignature(Class clazz) {
    if (clazz.isArray()) {
        final StringBuffer sb = new StringBuffer();
        Class cl = clazz;
        while (cl.isArray()) {
            sb.append("[");
            cl = cl.getComponentType();
        }
        sb.append(getSignature(cl));
        return sb.toString();
    }
    else if (clazz.isPrimitive()) {
        if (clazz == Integer.TYPE) {
            return "I";
        }
        else if (clazz == Byte.TYPE) {
            return "B";
        }
        else if (clazz == Long.TYPE) {
            return "J";
        }
        else if (clazz == Float.TYPE) {
            return "F";
        }
        else if (clazz == Double.TYPE) {
            return "D";
        }
        else if (clazz == Short.TYPE) {
            return "S";
        }
        else if (clazz == Character.TYPE) {
            return "C";
        }
        else if (clazz == Boolean.TYPE) {
            return "Z";
        }
        else if (clazz == Void.TYPE) {
            return "V";
        }
        else {
            final String name = clazz.toString();
            ErrorMsg err = new ErrorMsg(ErrorMsg.UNKNOWN_SIG_TYPE_ERR,name);
            throw new Error(err.toString());
        }
    }
    else {
        return "L" + clazz.getName().replace('.', '/') + ';';
    }
}
 
Example 6
Source File: FunctionCall.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Compute the JVM signature for the class.
 */
static final String getSignature(Class clazz) {
    if (clazz.isArray()) {
        final StringBuffer sb = new StringBuffer();
        Class cl = clazz;
        while (cl.isArray()) {
            sb.append("[");
            cl = cl.getComponentType();
        }
        sb.append(getSignature(cl));
        return sb.toString();
    }
    else if (clazz.isPrimitive()) {
        if (clazz == Integer.TYPE) {
            return "I";
        }
        else if (clazz == Byte.TYPE) {
            return "B";
        }
        else if (clazz == Long.TYPE) {
            return "J";
        }
        else if (clazz == Float.TYPE) {
            return "F";
        }
        else if (clazz == Double.TYPE) {
            return "D";
        }
        else if (clazz == Short.TYPE) {
            return "S";
        }
        else if (clazz == Character.TYPE) {
            return "C";
        }
        else if (clazz == Boolean.TYPE) {
            return "Z";
        }
        else if (clazz == Void.TYPE) {
            return "V";
        }
        else {
            final String name = clazz.toString();
            ErrorMsg err = new ErrorMsg(ErrorMsg.UNKNOWN_SIG_TYPE_ERR,name);
            throw new Error(err.toString());
        }
    }
    else {
        return "L" + clazz.getName().replace('.', '/') + ';';
    }
}
 
Example 7
Source File: FunctionCall.java    From Bytecoder with Apache License 2.0 4 votes vote down vote up
/**
 * Compute the JVM signature for the class.
 */
static final String getSignature(Class<?> clazz) {
    if (clazz.isArray()) {
        final StringBuffer sb = new StringBuffer();
        Class<?> cl = clazz;
        while (cl.isArray()) {
            sb.append("[");
            cl = cl.getComponentType();
        }
        sb.append(getSignature(cl));
        return sb.toString();
    }
    else if (clazz.isPrimitive()) {
        if (clazz == Integer.TYPE) {
            return "I";
        }
        else if (clazz == Byte.TYPE) {
            return "B";
        }
        else if (clazz == Long.TYPE) {
            return "J";
        }
        else if (clazz == Float.TYPE) {
            return "F";
        }
        else if (clazz == Double.TYPE) {
            return "D";
        }
        else if (clazz == Short.TYPE) {
            return "S";
        }
        else if (clazz == Character.TYPE) {
            return "C";
        }
        else if (clazz == Boolean.TYPE) {
            return "Z";
        }
        else if (clazz == Void.TYPE) {
            return "V";
        }
        else {
            final String name = clazz.toString();
            ErrorMsg err = new ErrorMsg(ErrorMsg.UNKNOWN_SIG_TYPE_ERR,name);
            throw new Error(err.toString());
        }
    }
    else {
        return "L" + clazz.getName().replace('.', '/') + ';';
    }
}
 
Example 8
Source File: FunctionCall.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Compute the JVM signature for the class.
 */
static final String getSignature(Class clazz) {
    if (clazz.isArray()) {
        final StringBuffer sb = new StringBuffer();
        Class cl = clazz;
        while (cl.isArray()) {
            sb.append("[");
            cl = cl.getComponentType();
        }
        sb.append(getSignature(cl));
        return sb.toString();
    }
    else if (clazz.isPrimitive()) {
        if (clazz == Integer.TYPE) {
            return "I";
        }
        else if (clazz == Byte.TYPE) {
            return "B";
        }
        else if (clazz == Long.TYPE) {
            return "J";
        }
        else if (clazz == Float.TYPE) {
            return "F";
        }
        else if (clazz == Double.TYPE) {
            return "D";
        }
        else if (clazz == Short.TYPE) {
            return "S";
        }
        else if (clazz == Character.TYPE) {
            return "C";
        }
        else if (clazz == Boolean.TYPE) {
            return "Z";
        }
        else if (clazz == Void.TYPE) {
            return "V";
        }
        else {
            final String name = clazz.toString();
            ErrorMsg err = new ErrorMsg(ErrorMsg.UNKNOWN_SIG_TYPE_ERR,name);
            throw new Error(err.toString());
        }
    }
    else {
        return "L" + clazz.getName().replace('.', '/') + ';';
    }
}
 
Example 9
Source File: FunctionCall.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Compute the JVM signature for the class.
 */
static final String getSignature(Class clazz) {
    if (clazz.isArray()) {
        final StringBuffer sb = new StringBuffer();
        Class cl = clazz;
        while (cl.isArray()) {
            sb.append("[");
            cl = cl.getComponentType();
        }
        sb.append(getSignature(cl));
        return sb.toString();
    }
    else if (clazz.isPrimitive()) {
        if (clazz == Integer.TYPE) {
            return "I";
        }
        else if (clazz == Byte.TYPE) {
            return "B";
        }
        else if (clazz == Long.TYPE) {
            return "J";
        }
        else if (clazz == Float.TYPE) {
            return "F";
        }
        else if (clazz == Double.TYPE) {
            return "D";
        }
        else if (clazz == Short.TYPE) {
            return "S";
        }
        else if (clazz == Character.TYPE) {
            return "C";
        }
        else if (clazz == Boolean.TYPE) {
            return "Z";
        }
        else if (clazz == Void.TYPE) {
            return "V";
        }
        else {
            final String name = clazz.toString();
            ErrorMsg err = new ErrorMsg(ErrorMsg.UNKNOWN_SIG_TYPE_ERR,name);
            throw new Error(err.toString());
        }
    }
    else {
        return "L" + clazz.getName().replace('.', '/') + ';';
    }
}
 
Example 10
Source File: FunctionCall.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Compute the JVM signature for the class.
 */
static final String getSignature(Class clazz) {
    if (clazz.isArray()) {
        final StringBuffer sb = new StringBuffer();
        Class cl = clazz;
        while (cl.isArray()) {
            sb.append("[");
            cl = cl.getComponentType();
        }
        sb.append(getSignature(cl));
        return sb.toString();
    }
    else if (clazz.isPrimitive()) {
        if (clazz == Integer.TYPE) {
            return "I";
        }
        else if (clazz == Byte.TYPE) {
            return "B";
        }
        else if (clazz == Long.TYPE) {
            return "J";
        }
        else if (clazz == Float.TYPE) {
            return "F";
        }
        else if (clazz == Double.TYPE) {
            return "D";
        }
        else if (clazz == Short.TYPE) {
            return "S";
        }
        else if (clazz == Character.TYPE) {
            return "C";
        }
        else if (clazz == Boolean.TYPE) {
            return "Z";
        }
        else if (clazz == Void.TYPE) {
            return "V";
        }
        else {
            final String name = clazz.toString();
            ErrorMsg err = new ErrorMsg(ErrorMsg.UNKNOWN_SIG_TYPE_ERR,name);
            throw new Error(err.toString());
        }
    }
    else {
        return "L" + clazz.getName().replace('.', '/') + ';';
    }
}
 
Example 11
Source File: FunctionCall.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Compute the JVM signature for the class.
 */
static final String getSignature(Class clazz) {
    if (clazz.isArray()) {
        final StringBuffer sb = new StringBuffer();
        Class cl = clazz;
        while (cl.isArray()) {
            sb.append("[");
            cl = cl.getComponentType();
        }
        sb.append(getSignature(cl));
        return sb.toString();
    }
    else if (clazz.isPrimitive()) {
        if (clazz == Integer.TYPE) {
            return "I";
        }
        else if (clazz == Byte.TYPE) {
            return "B";
        }
        else if (clazz == Long.TYPE) {
            return "J";
        }
        else if (clazz == Float.TYPE) {
            return "F";
        }
        else if (clazz == Double.TYPE) {
            return "D";
        }
        else if (clazz == Short.TYPE) {
            return "S";
        }
        else if (clazz == Character.TYPE) {
            return "C";
        }
        else if (clazz == Boolean.TYPE) {
            return "Z";
        }
        else if (clazz == Void.TYPE) {
            return "V";
        }
        else {
            final String name = clazz.toString();
            ErrorMsg err = new ErrorMsg(ErrorMsg.UNKNOWN_SIG_TYPE_ERR,name);
            throw new Error(err.toString());
        }
    }
    else {
        return "L" + clazz.getName().replace('.', '/') + ';';
    }
}