Package com.sun.tools.javac.tree.JCTree

Examples of com.sun.tools.javac.tree.JCTree.JCLiteral


        if (errors > 0)
            throw new Exception(errors + " errors found");
    }

    void test(Object value, int tag, Type type, Object constValue) {
        JCLiteral l = maker.Literal(value);
        if (l.type.tag != tag)
            error("unexpected tag: " + l.getTag() + ": expected: " + tag);
        if (!types.isSameType(l.type, type))
            error("unexpected type: " + l.type + ": expected: " + type);
        if (l.type.constValue().getClass() != constValue.getClass()
                || !constValue.equals(l.type.constValue()))  {
            error("unexpected const value: "
View Full Code Here

TOP

Related Classes of com.sun.tools.javac.tree.JCTree.JCLiteral

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.