Parent.java revision 88b607994a148f4af5bffee163e39ce8296750c6
1/* 2 * Copyright (C) 2008 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 17package com.android.stubs; 18 19@Annot("asdf") 20public class Parent { 21 public static final byte public_static_final_byte = 42; 22 public static final short public_static_final_short = 43; 23 public static final int public_static_final_int = 44; 24 public static final long public_static_final_long = 45; 25 public static final char public_static_final_char = '\u1234'; 26 public static final float public_static_final_float = 42.1f; 27 public static final double public_static_final_double = 42.2; 28 public static int public_static_int = 1; 29 public static final String public_static_final_String = "ps\u1234fS"; 30 public static String public_static_String = "psS"; 31 public static Parent public_static_Parent = new Parent(); 32 public static final Parent public_static_final_Parent = new Parent(); 33 public static final Parent public_static_final_Parent_null = null; 34 35 public interface Interface { 36 void method(); 37 } 38 39 public Parent() { 40 } 41 42 public String methodString() { 43 return "yo"; 44 } 45 46 public int method(boolean b, char c, int i, long l, float f, double d) { 47 return 1; 48 } 49 50 protected void protectedMethod() { 51 } 52 53 void packagePrivateMethod() { 54 } 55 56 /** @hide */ 57 public void hiddenMethod() { 58 } 59} 60 61