ZomicASTCompiler.java 文件源码

java
阅读 26 收藏 0 点赞 0 评论 0

项目:vzome-core 作者:
Axis generate() {
            try {
                Axis axis = namingConvention.getAxis(axisColor, indexFullName() );
                // This check has been moved into a thorough unit test instead of a runtime check.
                // but I'll leave the code commented out here in case additional colors are eventually supported and need debugging
//              String check = namingConvention.getName( axis );
//              if ( axis != namingConvention.getAxis(axisColor, check ) ) {
//                  log( axisColor + " " + indexFullName() + " mapped to " + check );
//              }
                if(axis == null) {
                    InputMismatchException imex = new InputMismatchException(parser);
                    logger.log(Level.WARNING, imex.getMessage(), imex);
                    throw imex;
                }
                return axis;
            //} catch( ArrayIndexOutOfBoundsException ex ){
            //} catch( NullPointerException  ex ) {
            } catch( RuntimeException ex) {
                String msg = "bad axis specification: '" + axisColor + " " + indexFullName() + "'";
                logger.warning(msg);
                throw new RuntimeException( msg, ex);
            } 
        }
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号