public class EngineImportUtil
extends java.lang.Object
Constructor and Description |
---|
EngineImportUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
getAnnotationHook(java.lang.annotation.Annotation[] annotations,
HookType hookType,
java.lang.Class interfaceExpected,
EngineImportService engineImportService)
Returns an instance of a hook as specified by an annotation.
|
static java.lang.Object |
resolveIdentAsEnumConst(java.lang.String constant,
EngineImportService engineImportService,
boolean isAnnotation)
Resolve a string constant as a possible enumeration value, returning null if not resolved.
|
public static java.lang.Object resolveIdentAsEnumConst(java.lang.String constant, EngineImportService engineImportService, boolean isAnnotation) throws ExprValidationException
constant
- to resolveengineImportService
- for engine-level use to resolve enums, can be nullisAnnotation
- whether we are in an annotationExprValidationException
- if there is an error accessing the enumpublic static java.lang.Object getAnnotationHook(java.lang.annotation.Annotation[] annotations, HookType hookType, java.lang.Class interfaceExpected, EngineImportService engineImportService) throws ExprValidationException
annotations
- to searchhookType
- type to look forinterfaceExpected
- interface requiredengineImportService
- for resolving referencesExprValidationException
- if instantiation failed