Class StaticImports.StaticImportInfo

java.lang.Object
com.google.errorprone.bugpatterns.StaticImports.StaticImportInfo
Enclosing class:
StaticImports

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

    Constructors
    Constructor Description
    StaticImportInfo()  
  • Method Summary

    Modifier and Type Method Description
    abstract String canonicalName()
    The fully-qualified canonical name of the type.
    abstract String importedName()
    The fully qualified name used to import the type (possibly non-canonical).
    String importStatement()
    Builds the canonical import statement for the type.
    boolean isCanonical()
    Returns whether the import is canonical, i.e.
    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.
    abstract com.google.common.base.Optional<String> simpleName()
    The simple name of the imported member.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StaticImportInfo

      public StaticImportInfo()
  • Method Details

    • 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.