analysisfeatures.java

来自「A static analysis tool to find bugs in J」· Java 代码 · 共 82 行

JAVA
82
字号
/* * Bytecode Analysis Framework * Copyright (C) 2003,2004 University of Maryland *  * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. *  * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU * Lesser General Public License for more details. *  * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */package edu.umd.cs.findbugs.ba;/** * Boolean analysis properties for use in the AnalysisContext. * These can be used to enable or disable various analysis features * in the bytecode analysis framework. *  * @author David Hovemeyer */public interface AnalysisFeatures {	/**	 * Determine (1) what exceptions can be thrown on exception edges,	 * (2) which catch blocks are reachable, and (3) which exception	 * edges carry only "implicit" runtime exceptions.	 */	public static final int ACCURATE_EXCEPTIONS = 0;	/**	 * A boolean flag which if set means that analyses should try to	 * conserve space at the expense of precision.	 */	public static final int CONSERVE_SPACE = 1;	/**	 * If true, model the effect of instanceof checks in type analysis.	 */	public static final int MODEL_INSTANCEOF = 2;	/**	 * Skip generating CFG's and methodGen's for huge methods	 */	public static final int SKIP_HUGE_METHODS = 3;	/**	 * Perform interative opcode stack analysis	 */	public static final int INTERATIVE_OPCODE_STACK_ANALYSIS = 4;	/**	 * In the null pointer analysis, track null values that are	 * guaranteed to be dereferenced on some (non-implicit-exception) path.	 */	public static final int TRACK_GUARANTEED_VALUE_DEREFS_IN_NULL_POINTER_ANALYSIS = 5;	/**	 * In the null pointer analysis, track value numbers that are known to be	 * null.  This allows us to not lose track of null values that are not	 * currently in the stack frame but might be in a heap location	 * where the value is recoverable by redundant load elimination or	 * forward substitution.	 */	public static final int TRACK_VALUE_NUMBERS_IN_NULL_POINTER_ANALYSIS = 6;	/**	 * Number of boolean analysis properties reserved for the bytecode analysis framework.	 * Clients of the framework may use property values >= this value.	 */	public static final int NUM_BOOLEAN_ANALYSIS_PROPERTIES = 128; }// vim:ts=4

⌨️ 快捷键说明

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