Package org.pkl.core.util
Class CodeGeneratorUtils
java.lang.Object
org.pkl.core.util.CodeGeneratorUtils
Utilities shared across Java dnd Kotlin code generators.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisRepresentableAsEnum(PType type, @Nullable Set<String> collector) static booleanisRepresentableAsString(PType type) toEnumConstantName(String pklStringLiteral) Converts the given Pkl string literal to an idiomatic enum constant name.
-
Method Details
-
isRepresentableAsEnum
-
isRepresentableAsString
-
toEnumConstantName
Converts the given Pkl string literal to an idiomatic enum constant name. Returns null if and only if the string literal could not be converted.
-