Пример #1
0
 @Test(result = {"m1()", "m2()", "m2(int)"})
 Collection<MethodDeclaration> getMethods() {
   return nested.getMethods();
 }
Пример #2
0
 @Test(result = {"null"})
 ClassType objectHasNoSuperclass() {
   return object.getSuperclass();
 }
Пример #3
0
 @Test(result = "java.io.Serializable")
 Collection<InterfaceType> getSuperinterfaces() {
   return nested.getSuperinterfaces();
 }
Пример #4
0
 // Check for default constructor.
 // 4997614: visitConstructionDeclaration reports info when there is no ctor
 @Test(result = {"NestedClass()"})
 Collection<ConstructorDeclaration> getConstructors2() {
   return nested.getConstructors();
 }
Пример #5
0
 @Test(result = "ClassDecl.NestedClass")
 String getQualifiedName2() {
   return nested.getQualifiedName();
 }
Пример #6
0
 @Test(result = "java.lang.Object")
 String getQualifiedName3() {
   return object.getQualifiedName();
 }
Пример #7
0
 @Test(result = "java.lang")
 PackageDeclaration getPackage2() {
   return object.getPackage();
 }
Пример #8
0
 @Test(result = "T")
 Collection<TypeParameterDeclaration> getFormalTypeParameters2() {
   return nested.getFormalTypeParameters();
 }
Пример #9
0
 @Test(result = "ClassDecl")
 TypeDeclaration getDeclaringType2() {
   return nested.getDeclaringType();
 }
Пример #10
0
 @Test(result = "NestedClass")
 String getSimpleName2() {
   return nested.getSimpleName();
 }
Пример #11
0
 // Check that static nested class has "static" modifier, even though
 // the VM doesn't set that bit.
 @Test(result = {"private", "static", "strictfp"})
 Collection<Modifier> getModifiers2() {
   return nested.getModifiers();
 }