|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jetbrains.jet.util.QualifiedNamesUtil
public final class QualifiedNamesUtil
Common methods for working with qualified names.
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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 FqName combine(@NotNull
FqName first,
@NotNull
Name second)
@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)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||