Java Code Examples for com.sun.tools.javac.code.Symbol.PackageSymbol#isUnnamed()

The following examples show how to use com.sun.tools.javac.code.Symbol.PackageSymbol#isUnnamed() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Printer.java    From java-n-IDE-for-Android with Apache License 2.0 4 votes vote down vote up
@Override
public String visitPackageSymbol(PackageSymbol s, Locale locale) {
    return s.isUnnamed()
            ? localize(locale, "compiler.misc.unnamed.package")
            : s.fullname.toString();
}
 
Example 2
Source File: Printer.java    From javaide with GNU General Public License v3.0 4 votes vote down vote up
@Override
public String visitPackageSymbol(PackageSymbol s, Locale locale) {
    return s.isUnnamed()
            ? localize(locale, "compiler.misc.unnamed.package")
            : s.fullname.toString();
}
 
Example 3
Source File: TypePrinter.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public String visitPackageSymbol(PackageSymbol s, Locale locale) {
    return s.isUnnamed()
            ? "" // Unnamed package
            : s.fullname.toString();
}