Package com.gatehill.apib.parser.model.result

Examples of com.gatehill.apib.parser.model.result.SourceCharactersRange


            /*
             * Extract the message and build SourceAnnotation.
             */
            final String detail = matcher.group(2);
            final String message;
            SourceCharactersRange range = null;

            final Matcher detailMatcher = DETAIL_PATTERN.matcher(detail);
            if (detailMatcher.matches()) {
                // split location from string
                message = detailMatcher.group(1);
                final String location = detailMatcher.group(2);
                final String length = detailMatcher.group(3);
                range = new SourceCharactersRange(Integer.parseInt(location), Integer.parseInt(length));

            } else {
                // fall back to using all of detail as message
                message = detail;
            }
View Full Code Here

TOP

Related Classes of com.gatehill.apib.parser.model.result.SourceCharactersRange

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.