aboutsummaryrefslogtreecommitdiff
path: root/core/testdata/java
diff options
context:
space:
mode:
Diffstat (limited to 'core/testdata/java')
-rw-r--r--core/testdata/java/annotatedAnnotation.java6
-rw-r--r--core/testdata/java/arrayType.java5
-rw-r--r--core/testdata/java/constructors.java5
-rw-r--r--core/testdata/java/deprecation.java6
-rw-r--r--core/testdata/java/enumValues.java3
-rw-r--r--core/testdata/java/field.java4
-rw-r--r--core/testdata/java/inheritorLinks.java7
-rw-r--r--core/testdata/java/innerClass.java4
-rw-r--r--core/testdata/java/javaLangObject.java3
-rw-r--r--core/testdata/java/member.java11
-rw-r--r--core/testdata/java/memberWithModifiers.java12
-rw-r--r--core/testdata/java/staticMethod.java4
-rw-r--r--core/testdata/java/superClass.java2
-rw-r--r--core/testdata/java/typeParameter.java3
-rw-r--r--core/testdata/java/varargs.java3
15 files changed, 78 insertions, 0 deletions
diff --git a/core/testdata/java/annotatedAnnotation.java b/core/testdata/java/annotatedAnnotation.java
new file mode 100644
index 00000000..6296e400
--- /dev/null
+++ b/core/testdata/java/annotatedAnnotation.java
@@ -0,0 +1,6 @@
+import java.lang.annotation.*;
+
+@Target({ElementType.FIELD, ElementType.TYPE, ElementType.METHOD})
+public @interface Attribute {
+ String value() default "";
+}
diff --git a/core/testdata/java/arrayType.java b/core/testdata/java/arrayType.java
new file mode 100644
index 00000000..dc42a207
--- /dev/null
+++ b/core/testdata/java/arrayType.java
@@ -0,0 +1,5 @@
+class Test {
+ public String[] arrayToString(int[] data) {
+ return null;
+ }
+}
diff --git a/core/testdata/java/constructors.java b/core/testdata/java/constructors.java
new file mode 100644
index 00000000..6f899d18
--- /dev/null
+++ b/core/testdata/java/constructors.java
@@ -0,0 +1,5 @@
+class Test {
+ public Test() {}
+
+ public Test(String s) {}
+}
diff --git a/core/testdata/java/deprecation.java b/core/testdata/java/deprecation.java
new file mode 100644
index 00000000..be8decd6
--- /dev/null
+++ b/core/testdata/java/deprecation.java
@@ -0,0 +1,6 @@
+class C {
+ /**
+ * @deprecated This should no longer be used
+ */
+ void fn() {}
+} \ No newline at end of file
diff --git a/core/testdata/java/enumValues.java b/core/testdata/java/enumValues.java
new file mode 100644
index 00000000..d8dda934
--- /dev/null
+++ b/core/testdata/java/enumValues.java
@@ -0,0 +1,3 @@
+enum E {
+ Foo
+} \ No newline at end of file
diff --git a/core/testdata/java/field.java b/core/testdata/java/field.java
new file mode 100644
index 00000000..d9ae75f9
--- /dev/null
+++ b/core/testdata/java/field.java
@@ -0,0 +1,4 @@
+class Test {
+ public int i;
+ public static final String s;
+}
diff --git a/core/testdata/java/inheritorLinks.java b/core/testdata/java/inheritorLinks.java
new file mode 100644
index 00000000..2378f5c6
--- /dev/null
+++ b/core/testdata/java/inheritorLinks.java
@@ -0,0 +1,7 @@
+class C {
+ public static class Foo {
+ }
+
+ public static class Bar extends Foo {
+ }
+}
diff --git a/core/testdata/java/innerClass.java b/core/testdata/java/innerClass.java
new file mode 100644
index 00000000..0f1be948
--- /dev/null
+++ b/core/testdata/java/innerClass.java
@@ -0,0 +1,4 @@
+class Test {
+ public class D {
+ }
+}
diff --git a/core/testdata/java/javaLangObject.java b/core/testdata/java/javaLangObject.java
new file mode 100644
index 00000000..be3dd570
--- /dev/null
+++ b/core/testdata/java/javaLangObject.java
@@ -0,0 +1,3 @@
+class Test {
+ public Object fn() { return null; }
+}
diff --git a/core/testdata/java/member.java b/core/testdata/java/member.java
new file mode 100644
index 00000000..d4f4b8d5
--- /dev/null
+++ b/core/testdata/java/member.java
@@ -0,0 +1,11 @@
+class Test {
+ /**
+ * Summary for Function
+ * @param name is String parameter
+ * @param value is int parameter
+ * @author yole
+ */
+ public void fn(String name, int value) {
+
+ }
+} \ No newline at end of file
diff --git a/core/testdata/java/memberWithModifiers.java b/core/testdata/java/memberWithModifiers.java
new file mode 100644
index 00000000..ea645c21
--- /dev/null
+++ b/core/testdata/java/memberWithModifiers.java
@@ -0,0 +1,12 @@
+public abstract class Test {
+ /**
+ * Summary for Function
+ * @param name is String parameter
+ * @param value is int parameter
+ */
+ protected final void fn(String name, int value) {
+
+ }
+
+ protected void openFn() {}
+} \ No newline at end of file
diff --git a/core/testdata/java/staticMethod.java b/core/testdata/java/staticMethod.java
new file mode 100644
index 00000000..a2ecd7f1
--- /dev/null
+++ b/core/testdata/java/staticMethod.java
@@ -0,0 +1,4 @@
+class C {
+ public static void foo() {
+ }
+}
diff --git a/core/testdata/java/superClass.java b/core/testdata/java/superClass.java
new file mode 100644
index 00000000..31b5fa96
--- /dev/null
+++ b/core/testdata/java/superClass.java
@@ -0,0 +1,2 @@
+public class Foo extends Exception implements Cloneable {
+}
diff --git a/core/testdata/java/typeParameter.java b/core/testdata/java/typeParameter.java
new file mode 100644
index 00000000..5a24b30a
--- /dev/null
+++ b/core/testdata/java/typeParameter.java
@@ -0,0 +1,3 @@
+class Foo<T extends Comparable<T>> {
+ public <E> E foo();
+}
diff --git a/core/testdata/java/varargs.java b/core/testdata/java/varargs.java
new file mode 100644
index 00000000..d184564e
--- /dev/null
+++ b/core/testdata/java/varargs.java
@@ -0,0 +1,3 @@
+class Foo {
+ public void bar(String... x);
+}