public class ReflectionUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
protected static String |
getFileName(Path path)
Get file name without suffix.
|
static String |
getFileSuffix(Path path)
Get file suffix.
|
static boolean |
isApacheThriftFile(Path file) |
static boolean |
isDeclaredType(net.morimekta.providence.descriptor.PDeclaredDescriptor<?> descriptor) |
static boolean |
isProvidenceFile(File file)
Deprecated.
|
static boolean |
isProvidenceFile(Path file) |
static boolean |
isProvidenceFile(String filePath)
Deprecated.
|
static boolean |
isProvidenceFileSuffix(String suffix) |
static boolean |
isThriftBasedFileSyntax(Path file) |
static boolean |
isThriftFile(File file)
Deprecated.
|
static boolean |
isThriftFile(String filePath)
Deprecated.
|
static boolean |
isThriftFileSuffix(String suffix) |
static String |
longestCommonPrefixPath(Collection<String> paths) |
static String |
programNameFromPath(Path filePath) |
static String |
programNameFromPath(String filePath)
Deprecated.
|
static List<String> |
stripCommonPrefix(List<String> paths) |
public static boolean isDeclaredType(net.morimekta.providence.descriptor.PDeclaredDescriptor<?> descriptor)
descriptor - A declared type descriptor.@Deprecated public static boolean isThriftFile(@Nonnull File file)
@Deprecated public static boolean isThriftFile(@Nonnull String filePath)
@Deprecated public static boolean isProvidenceFile(@Nonnull File file)
@Deprecated public static boolean isProvidenceFile(@Nonnull String filePath)
@Nonnull @Deprecated public static String programNameFromPath(@Nonnull String filePath)
@Nonnull protected static String getFileName(@Nonnull Path path)
path - The file path.@Nonnull public static String getFileSuffix(@Nonnull Path path)
path - The file path.@Nonnull public static String longestCommonPrefixPath(Collection<String> paths)
Copyright © 2015–2020 morimekta.net. All rights reserved.