public final class QualifiedNamesUtil extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static FqName |
combine(FqName first,
Name second) |
static java.lang.String |
getFirstSegment(java.lang.String fqn) |
static boolean |
isImported(ImportPath alreadyImported,
FqName fqName) |
static boolean |
isImported(ImportPath alreadyImported,
ImportPath newImport) |
static boolean |
isImported(java.lang.Iterable<ImportPath> imports,
ImportPath newImport) |
static boolean |
isOneSegmentFQN(FqName fqn) |
static boolean |
isOneSegmentFQN(java.lang.String fqn) |
static boolean |
isSubpackageOf(FqName subpackageName,
FqName packageName) |
static boolean |
isValidJavaFqName(java.lang.String qualifiedName) |
static FqName |
plusOneSegment(FqName fqn,
FqName fullFQN)
Add one segment of nesting to given qualified name according to the full qualified name.
|
static java.lang.String |
tail(FqName headFQN,
FqName fullFQN)
Get tail part of the full fqn by subtracting head part.
|
static FqName |
withoutFirstSegment(FqName fqName) |
static FqName |
withoutLastSegment(FqName fqName) |
public static boolean isSubpackageOf(@NotNull FqName subpackageName, @NotNull FqName packageName)
public static boolean isOneSegmentFQN(@NotNull java.lang.String fqn)
public static boolean isOneSegmentFQN(@NotNull FqName fqn)
@NotNull public static java.lang.String getFirstSegment(@NotNull java.lang.String fqn)
@NotNull public static FqName withoutLastSegment(@NotNull FqName fqName)
@NotNull public static FqName withoutFirstSegment(@NotNull FqName fqName)
@NotNull public static java.lang.String tail(@NotNull FqName headFQN, @NotNull FqName fullFQN)
headFQN
- fullFQN
- @Nullable public static FqName plusOneSegment(@NotNull FqName fqn, @NotNull FqName fullFQN)
fqn
- fullFQN
- public static boolean isImported(@NotNull ImportPath alreadyImported, @NotNull FqName fqName)
public static boolean isImported(@NotNull ImportPath alreadyImported, @NotNull ImportPath newImport)
public static boolean isImported(@NotNull java.lang.Iterable<ImportPath> imports, @NotNull ImportPath newImport)
public static boolean isValidJavaFqName(@Nullable java.lang.String qualifiedName)