Package com.google.googlejavaformat.java
Class ImportOrderer.Import
java.lang.Object
com.google.googlejavaformat.java.ImportOrderer.Import
- Enclosing class:
ImportOrderer
An import statement.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) Stringimported()The name being imported, for examplejava.util.List.(package private) booleanTrue if this is an Android import per AOSP style.(package private) booleanisJava()True if this is a Java import per AOSP style.(package private) booleanisStatic()True if this isimport static.booleanTrue if this is a third-party import per AOSP style.(package private) StringtopLevel()The top-level package of the import.toString()(package private) Stringtrailing()The//comment lines after the final;, up to and including the line terminator of the last one.
-
Field Details
-
imported
-
isStatic
private final boolean isStatic -
trailing
-
-
Constructor Details
-
Import
-
-
Method Details
-
imported
String imported()The name being imported, for examplejava.util.List. -
isStatic
boolean isStatic()True if this isimport static. -
topLevel
String topLevel()The top-level package of the import. -
isAndroid
boolean isAndroid()True if this is an Android import per AOSP style. -
isJava
boolean isJava()True if this is a Java import per AOSP style. -
trailing
String trailing()The//comment lines after the final;, up to and including the line terminator of the last one. Note: In case two imports were separated by a space (which is disallowed by the style guide), the trailing whitespace of the first import does not include a line terminator. -
isThirdParty
public boolean isThirdParty()True if this is a third-party import per AOSP style. -
toString
-