use of com.google.devtools.j2objc.ast.AbstractTypeDeclaration in project j2objc by google.
the class PackagePrefixesTest method testGetFullNameWithInnerClassAndPrefix.
// Verify inner class name with prefix.
public void testGetFullNameWithInnerClassAndPrefix() {
String source = "package foo.bar; public class SomeClass { static class Inner {}}";
options.getPackagePrefixes().addPrefix("foo.bar", "FB");
CompilationUnit unit = translateType("SomeClass", source);
NameTable nameTable = unit.getEnv().nameTable();
AbstractTypeDeclaration decl = unit.getTypes().get(1);
assertEquals("FBSomeClass_Inner", nameTable.getFullName(decl.getTypeElement()));
}
Aggregations