Package com.google.googlejavaformat.java
Class ImportOrderer.Import
- java.lang.Object
-
- com.google.googlejavaformat.java.ImportOrderer.Import
-
- Enclosing class:
- ImportOrderer
class ImportOrderer.Import extends java.lang.ObjectAn import statement.
-
-
Constructor Summary
Constructors Constructor Description Import(java.lang.String imported, java.lang.String trailing, boolean isStatic)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) java.lang.Stringimported()The name being imported, for examplejava.util.List.(package private) booleanisAndroid()True 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.booleanisThirdParty()True if this is a third-party import per AOSP style.(package private) java.lang.StringtopLevel()The top-level package of the import.java.lang.StringtoString()(package private) java.lang.Stringtrailing()The//comment lines after the final;, up to and including the line terminator of the last one.
-
-
-
Method Detail
-
imported
java.lang.String imported()
The name being imported, for examplejava.util.List.
-
isStatic
boolean isStatic()
True if this isimport static.
-
topLevel
java.lang.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
java.lang.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
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-