All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.cryptomorin.xseries.reflection.jvm.classes.PackageHandle Maven / Gradle / Ivy

There is a newer version: 12.1.0
Show newest version
package com.cryptomorin.xseries.reflection.jvm.classes;

import org.intellij.lang.annotations.Language;
import org.jetbrains.annotations.ApiStatus;

import javax.annotation.Nonnull;

/**
 * A handle that can provide base package names or translate names based on current mappings.
 */
public interface PackageHandle {
    @Language("RegExp")
    @ApiStatus.Internal
    String JAVA_PACKAGE_PATTERN = "(\\p{javaJavaIdentifierStart}\\p{javaJavaIdentifierPart}*\\.)*\\p{javaJavaIdentifierStart}\\p{javaJavaIdentifierPart}*";

    @Language("RegExp")
    @ApiStatus.Internal
    String JAVA_IDENTIFIER_PATTERN = "\\p{javaJavaIdentifierStart}\\p{javaJavaIdentifierPart}*";

    @Nonnull
    String packageId();

    @Nonnull
    String getBasePackageName();

    @Nonnull
    String getPackage(@Nonnull String packageName);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy