io.github.dmlloyd.classfile.extras.constant.ExtraClassDesc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jdk-classfile-backport Show documentation
Show all versions of jdk-classfile-backport Show documentation
An unofficial backport of the JDK Classfile API to Java 17
package io.github.dmlloyd.classfile.extras.constant;
import java.lang.constant.ClassDesc;
import java.util.Objects;
/**
*
*/
public final class ExtraClassDesc {
private ExtraClassDesc() {}
public static ClassDesc ofInternalName(String name) {
ConstantUtils.validateInternalClassName(Objects.requireNonNull(name));
return ClassDesc.ofDescriptor("L" + name + ";");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy