Package com.sk89q.worldedit.internal.expression.lexer.tokens

Examples of com.sk89q.worldedit.internal.expression.lexer.tokens.NumberToken


            final Matcher numberMatcher = numberPattern.matcher(expression.substring(position));
            if (numberMatcher.lookingAt()) {
                String numberPart = numberMatcher.group(1);
                if (!numberPart.isEmpty()) {
                    try {
                        tokens.add(new NumberToken(position, Double.parseDouble(numberPart)));
                    } catch (NumberFormatException e) {
                        throw new LexerException(position, "Number parsing failed", e);
                    }

                    position += numberPart.length();
View Full Code Here

TOP

Related Classes of com.sk89q.worldedit.internal.expression.lexer.tokens.NumberToken

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.