Back to index

lightning-sunbird  0.9+nobinonly
Test2.java
Go to the documentation of this file.
00001 
00002 /* ***** BEGIN LICENSE BLOCK *****
00003  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
00004  *
00005  * The contents of this file are subject to the Mozilla Public License Version
00006  * 1.1 (the "License"); you may not use this file except in compliance with
00007  * the License. You may obtain a copy of the License at
00008  * http://www.mozilla.org/MPL/
00009  *
00010  * Software distributed under the License is distributed on an "AS IS" basis,
00011  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00012  * for the specific language governing rights and limitations under the
00013  * License.
00014  *
00015  * The Original Code is mozilla.org code.
00016  *
00017  * The Initial Developer of the Original Code is
00018  * Sun Microsystems, Inc.
00019  * Portions created by the Initial Developer are Copyright (C) 1999
00020  * the Initial Developer. All Rights Reserved.
00021  *
00022  * Contributor(s):
00023  *
00024  * Alternatively, the contents of this file may be used under the terms of
00025  * either the GNU General Public License Version 2 or later (the "GPL"), or
00026  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
00027  * in which case the provisions of the GPL or the LGPL are applicable instead
00028  * of those above. If you wish to allow use of your version of this file only
00029  * under the terms of either the GPL or the LGPL, and not to allow others to
00030  * use your version of this file under the terms of the MPL, indicate your
00031  * decision by deleting the provisions above and replace them with the notice
00032  * and other provisions required by the GPL or the LGPL. If you do not delete
00033  * the provisions above, a recipient may use your version of this file under
00034  * the terms of any one of the MPL, the GPL or the LGPL.
00035  *
00036  * ***** END LICENSE BLOCK ***** */
00037 public class Test2{
00038 private int int_field_super = 1;
00039 public int name_int_super = 1;
00040 public String name_string_super = "aaa";
00041 public final int public_super_int = 1;
00042 protected int protected_super_int = 1;
00043 protected static int protected_static_super_int = 1;
00044 public static int public_static_super_int = 1;
00045 public static String public_static_super_object;
00046 
00047 
00048 protected Test2(){
00049 }
00050 
00051 public Test2(String s){
00052   System.out.println("Set name_string_super to "+s);
00053   name_string_super = s;
00054 
00055 }
00056 
00057 public void Set_int_field_super(int field){
00058     System.out.println("set method - int_field_super = "+int_field_super);
00059     int_field_super = field;
00060 }
00061 
00062 public int Get_int_field_super(){
00063     System.out.println("IN super class! +" +int_field_super);
00064     return int_field_super;
00065 }
00066 
00067 private int Get_int_field_super_private(){
00068     System.out.println("aaaaaaaaaa");
00069     return 20;
00070 }
00071 
00072 private int Get_int_field_super_private_static(){
00073     System.out.println("aaaaaaaaaa");
00074     return 20;
00075 }
00076 
00077 public static int Get_int_field_super_static(){
00078     System.out.println("Get_int_field_super_static");
00079     return 0;
00080 }
00081 
00082 public int Test2_override(int i){
00083      return i;
00084 }
00085 
00086 public static int Test2_override_static(int i){
00087      return i;
00088 }
00089 
00090 protected void Print_string_super_protected(String s){
00091     System.out.println("The String is: "+s);
00092 }
00093 
00094 void Print_string_super_nomod(String s){
00095     System.out.println("The String is: "+s);
00096 }
00097 
00098 protected static void Print_string_super_protected_static(String s){
00099     System.out.println("The String is: "+s);
00100 }
00101 
00102 static void Print_string_super_nomod_static(String s){
00103     System.out.println("The String is: "+s);
00104 }
00105 
00106 public int Test1_method3_override(boolean bb, byte by, char ch, short sh, int in, long lg, float fl, double db, String str, String strarr[]){
00107       System.out.println("Test1_method3 passed!");
00108       return 11;
00109 }
00110 
00111 public int Test2_method3(boolean bb, byte by, char ch, short sh, int in, long lg, float fl, double db, String str, String strarr[]){
00112     System.out.println("Test2_method3 passed!");
00113     return 121;
00114 }
00115 
00116 private int Test2_method31(boolean bb, byte by, char ch, short sh, int in, long lg, float fl, double db, String str, String strarr[]){
00117     System.out.println("Test2_method31 passed!");
00118     return 121;
00119 }
00120 
00121 protected int Test2_method32(boolean bb, byte by, char ch, short sh, int in, long lg, float fl, double db, String str, String strarr[]){
00122     System.out.println("Test2_method32 passed!");
00123     return 121;
00124 }
00125 
00126 int Test2_method33(boolean bb, byte by, char ch, short sh, int in, long lg, float fl, double db, String str, String strarr[]){
00127     System.out.println("Test2_method33 passed!");
00128     return 121;
00129 }
00130 
00131 public static int Test2_method3_static(boolean bb, byte by, char ch, short sh, int in, long lg, float fl, double db, String str, String strarr[]){
00132     System.out.println("Test2_method3_static passed!");
00133     return 121;
00134 }
00135 
00136 private static int Test2_method31_static(boolean bb, byte by, char ch, short sh, int in, long lg, float fl, double db, String str, String strarr[]){
00137     System.out.println("Test2_method31_static passed!");
00138     return 121;
00139 }
00140 
00141 protected static int Test2_method32_static(boolean bb, byte by, char ch, short sh, int in, long lg, float fl, double db, String str, String strarr[]){
00142     System.out.println("Test2_method32_static passed!");
00143     return 121;
00144 }
00145 
00146 static int Test2_method33_static(boolean bb, byte by, char ch, short sh, int in, long lg, float fl, double db, String str, String strarr[]){
00147     System.out.println("Test2_method33_static passed!");
00148     return 121;
00149 }
00150 
00151 }