Package com.nexirius.util

Examples of com.nexirius.util.TextToken.debugString()


                pushbackToken();

                return parseEnum();
            }

            throw new SyntaxException("class or enum", t.debugString());
        } catch (NoMoreTokensException ex) {
            return false;
        }
    }
View Full Code Here


        try {
            // check whether the next token is a 'enum'
            TextToken t = nextToken();

            if (!t.isIdentifier(ENUM)) {
                throw new SyntaxException(ENUM, t.debugString());
            }

            t = nextToken();

            if (!t.isIdentifier()) {
View Full Code Here

            }

            t = nextToken();

            if (!t.isIdentifier()) {
                throw new SyntaxException("enum name", t.debugString());
            }
//System.out.println("parsing enum " + t.getString());
            DataModelTypeEnum e = new DataModelTypeEnum(t.getString());

View Full Code Here


            t = nextToken();

            if (!t.isChar(OCURLY)) {
                throw new SyntaxException(OCURLY, t.debugString());
            }

            t = nextToken();

            while (true) {
View Full Code Here

                if (t.isChar(CCURLY)) {
                    break;
                }

                if (!t.isString()) {
                    throw new SyntaxException("enum value (string literal)", t.debugString());
                }

                e.addValue(t.getString());

                t = nextToken();
View Full Code Here

        try {
            // check whether the next token is a 'class'
            TextToken t = nextToken();

            if (!t.isIdentifier(CLASS)) {
                throw new SyntaxException(CLASS, t.debugString());
            }

            t = nextToken();

            if (!t.isIdentifier()) {
View Full Code Here

            }

            t = nextToken();

            if (!t.isIdentifier()) {
                throw new SyntaxException("class name", t.debugString());
            }
//System.out.println("parsing class " + t.getString());
            currentClass = new DataModelTypeClass(t.getString());

            t = nextToken();
View Full Code Here

            throws Exception {
        try {
            TextToken t = nextToken();

            if (!t.isChar(OCURLY)) {
                throw new SyntaxException(OCURLY, t.debugString());
            }

            while (true) {
                t = nextToken();
View Full Code Here

            throws Exception {
        // check whether the next token is a Identifier
        TextToken t = nextToken();

        if (!t.isIdentifier()) {
            throw new SyntaxException("type specifier", t.debugString());
        }

        String type = t.getString();

        t = nextToken();
View Full Code Here

            if (t.isChar(OBRACKET)) {
                t = nextToken();

                if (!t.isChar(CBRACKET)) {
                    throw new SyntaxException(CBRACKET, t.debugString());
                }

                currentClass.append(new DataModelTypeArray(type, memberName));

            } else if (t.isChar(OBRACE)) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.