expressionhelper.java

来自「Java的面向对象数据库系统的源代码」· Java 代码 · 共 66 行

JAVA
66
字号
// You can redistribute this software and/or modify it under the terms of// the Infozone Software License version 2 published by the Infozone Group// (http://www.infozone-group.org).//// Copyright (C) @year@ by The Infozone Group. All rights reserved.//// $Id: ExpressionHelper.java,v 1.1 2002/05/10 08:59:12 per_nyfelt Exp $package org.infozone.tools.janalyzer;import koala.dynamicjava.tree.*;import java.util.List;import java.util.ListIterator;/** * This class is a part of the JavaCodeAnalyzer class. * It's out sourced to lower the pure mass of data in the analyzer class. * Are subclasses of expression, type, condition from package koala.dynamicjava.tree * handled here. * * <pre> * * TODO: *  - more documentation *  - metric'S *     - method counting and so on * </pre> * * @version $Revision: 1.1 $ $Date: 2002/05/10 08:59:12 $ * @author <a href="http://www.softwarebuero.de">SMB</a> * @see org.infozone.tools.janalyzer.JavaCodeAnalyzer */public final class ExpressionHelper extends java.lang.Object {        //    // data    //        /** The output class */    private JavaCodeOutput jco;    /** The Analyzer class for analyzing bugs */    private JavaCodeAnalyzer jca;    /** The level to help correct parentheses to binary expressions */    private int currentBinaryExpressionLevel = 0;            public ExpressionHelper( JavaCodeAnalyzer aAnalyzer, JavaCodeOutput aOutputClass ) {        jca = aAnalyzer;        // output class        jco = aOutputClass;    }            /**     * The representation of a Expression.     *     */    private void addExpressionString( Expression aExp ) {        //        printLog("addExpression"+aExp);        //        System.err.println("addExpression" + aExp);        if (aExp == null) {            return;        }         // ....

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?