Class StaticImports.StaticImportInfo

  • Enclosing class:
    StaticImports

    public abstract static class StaticImports.StaticImportInfo
    extends Object
    Information about a static import.
    • Constructor Detail

      • StaticImportInfo

        public StaticImportInfo()
    • Method Detail

      • importedName

        public abstract String importedName()
        The fully qualified name used to import the type (possibly non-canonical).
      • canonicalName

        public abstract String canonicalName()
        The fully-qualified canonical name of the type.
      • simpleName

        public abstract com.google.common.base.Optional<String> simpleName()
        The simple name of the imported member.
      • members

        public abstract com.google.common.collect.ImmutableSet<com.sun.tools.javac.code.Symbol> members()
        The field or variable symbol for a static non-type member import.
      • isCanonical

        public boolean isCanonical()
        Returns whether the import is canonical, i.e. the fully qualified name used to import the type matches the scopes it was declared in.
      • importStatement

        public String importStatement()
        Builds the canonical import statement for the type.