Class StaticImports.StaticImportInfo
java.lang.Object
com.google.errorprone.bugpatterns.StaticImports.StaticImportInfo
- Enclosing class:
StaticImports
Information about a static import.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract String
The fully-qualified canonical name of the type.abstract String
The fully qualified name used to import the type (possibly non-canonical).Builds the canonical import statement for the type.boolean
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> The simple name of the imported member.
-
Constructor Details
-
StaticImportInfo
public StaticImportInfo()
-
-
Method Details
-
importedName
The fully qualified name used to import the type (possibly non-canonical). -
canonicalName
The fully-qualified canonical name of the type. -
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
Builds the canonical import statement for the type.
-