public class MetadataUtils
extends java.lang.Object
Constructor and Description |
---|
MetadataUtils() |
Modifier and Type | Method and Description |
---|---|
static java.util.Optional<AOTModule> |
findMetadata(java.lang.Class<?> clazz)
Returns the AOT module annotation for a class, if present.
|
static Option |
findOption(java.lang.Class<?> clazz,
java.lang.String name)
Returns the option with the corresponding name.
|
static boolean |
isEnabledOn(Runtime runtime,
AOTCodeGenerator module) |
static boolean |
isEnabledOn(Runtime runtime,
AOTModule module) |
static java.lang.String |
toPropertiesSample(Option option)
Returns a string representation of the option, for
use in properties files.
|
public static java.util.Optional<AOTModule> findMetadata(java.lang.Class<?> clazz)
clazz
- the class to look forpublic static Option findOption(java.lang.Class<?> clazz, java.lang.String name)
AOTModule
invocation will fail.clazz
- the AOT module classname
- the name of the optionpublic static java.lang.String toPropertiesSample(Option option)
option
- the option to convert to sample text.public static boolean isEnabledOn(Runtime runtime, AOTCodeGenerator module)