Debian Codegraph @

org.eclipse.jdt.compiler.apt.tests/resources/targets/model8/X.java

raw
1 /*******************************************************************************
2 * Copyright (c) 2013, 2016 IBM Corporation.
3 *
4 * This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License 2.0
6 * which accompanies this distribution, and is available at
7 * https://www.eclipse.org/legal/epl-2.0/
8 *
9 * SPDX-License-Identifier: EPL-2.0
10 *
11 * Contributors:
12 * IBM Corporation - initial API and implementation
13 *******************************************************************************/
14 package targets.model8;
15
16 import org.eclipse.jdt.compiler.apt.tests.annotations.Type;
17 import org.eclipse.jdt.compiler.apt.tests.annotations.Type1;
18 import org.eclipse.jdt.compiler.apt.tests.annotations.Type$1;
19 import org.eclipse.jdt.compiler.apt.tests.annotations.Type.One;
20
21 @Type("c")
22 public class X extends @Type("s") Object implements @Type("i1") I, @Type("i2") J {
23 @Type("f") String _field = null;
24 @Type("f1") X _field1 = null;
25 @Type("f1") X _field11 = null;
26 @Type$1 @One String _field2 = null;
27 X _field3 = null;
28 X. @Type("xy") XY xy;
29 int _i = 10;
30 public void noAnnotationHere() {
31 }
32 @Deprecated @Type("m") String foo() {
33 return null;
34 }
35 void bar(@Type("p1") String p1, @Type("p2") String p2) {}
36 public void bar2(@Type("receiver") X this) {}
37 // Static methods and top level constructors do not have receivers
38 public static void main(String[] args) {}
39 @Type("constr1") public X(){}
40 @Type1("constr2") public X(int i){}
41 class XY {
42 XY(@Type("receiver") X X.this) {}
43 }
44 }
45
46 interface I {}
47 interface J {}