View Javadoc

1   /*
2    * Jour - bytecode instrumentation library
3    *
4    * Copyright (C) 2007 Vlad Skarzhevskyy
5    *
6    * This library is free software; you can redistribute it and/or
7    * modify it under the terms of the GNU Library General Public
8    * License as published by the Free Software Foundation; either
9    * version 2 of the License, or (at your option) any later version.
10   *
11   * This library is distributed in the hope that it will be useful,
12   * but WITHOUT ANY WARRANTY; without even the implied warranty of
13   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14   * Library General Public License for more details.
15   *
16   * You should have received a copy of the GNU Library General Public
17   * License along with this library; if not, write to the
18   * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19   * Boston, MA  02111-1307, USA.
20   * 
21   * @version $Id: APICompareConfig.java 100 2008-03-05 01:10:23Z vlads $
22   * 
23   */
24  package net.sf.jour.signature;
25  
26  /**
27   * @author vlads
28   * 
29   */
30  public class APICompareConfig {
31  
32  	/**
33  	 * Generate error if new API member with access level public or protected
34  	 * has been added to class.
35  	 * 
36  	 * @see allowPackageAPIextension
37  	 */
38  	public boolean allowAPIextension = false;
39  
40  	public boolean allowThrowsLess = false;
41  
42  	public String packages;
43  
44  	public int apiLevel = APIFilter.PROTECTED;
45  
46  	public void setCompareLevelPublic() {
47  		apiLevel = APIFilter.PUBLIC;
48  	}
49  
50  	public void setCompareLevelProtected() {
51  		apiLevel = APIFilter.PROTECTED;
52  	}
53  
54  	public void setCompareLevelPackage() {
55  		apiLevel = APIFilter.PACKAGE;
56  	}
57  
58  	public void setCompareLevelPrivate() {
59  		apiLevel = APIFilter.PRIVATE;
60  	}
61  }