1 /* 2 * Copyright (C) 2014 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 public abstract class NonInf { 18 19 public int publicField; 20 private int privateField; 21 protected int protectedField; 22 static int staticField; 23 transient int transientField; 24 volatile int volatileField; 25 final int finalField; 26 NonInf()27 public NonInf() { 28 publicField = 0; 29 privateField = 1; 30 protectedField = 2; 31 staticField = 3; 32 transientField = 4; 33 volatileField = 5; 34 finalField = 6; 35 } 36 nativeMethod()37 public native void nativeMethod(); 38 privateMethod()39 private int privateMethod() { 40 return 0; 41 } 42 protectedMethod()43 protected int protectedMethod() { 44 return 0; 45 } 46 publicMethod()47 public int publicMethod() { 48 return 0; 49 } 50 abstractMethod()51 public abstract int abstractMethod(); 52 synchronizedMethod()53 public synchronized int synchronizedMethod() { 54 return 0; 55 } 56 staticMethod()57 public static int staticMethod() { 58 return 0; 59 } 60 strictfpMethod()61 public strictfp double strictfpMethod() { 62 return 0.0; 63 } 64 varargsMethod(Object... args)65 public int varargsMethod(Object... args) { 66 return 0; 67 } 68 finalMethod()69 public final int finalMethod() { 70 return 0; 71 } 72 }