Package io.quarkiverse.groovy.deployment
Class GroovyUtil
java.lang.Object
io.quarkiverse.groovy.deployment.GroovyUtil
GroovyUtil is a utility class that provides methods that are specific to the Groovy language.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisGetMetaClassMethod(String name, String descriptor) static booleanisGroovyClass(String name) static booleanisGroovyObject(org.jboss.jandex.ClassInfo classInfo)
-
Field Details
-
DOTNAME_GROOVY_OBJECT
public static final org.jboss.jandex.DotName DOTNAME_GROOVY_OBJECTTheDotNamecorresponding to theGroovyObject. -
METHOD_GET_META_CLASS_NAME
The name of the specific method allowing to get the meta class.- See Also:
-
METHOD_GET_META_CLASS_DESCRIPTOR
The descriptor of the methodgetMetaClass()in asm terminology.
-
-
Method Details
-
isGroovyObject
public static boolean isGroovyObject(org.jboss.jandex.ClassInfo classInfo) - Parameters:
classInfo- the class to test.- Returns:
trueif the given class is a Groovy object,falseotherwise.
-
isGetMetaClassMethod
- Parameters:
name- the name of the method to test.descriptor- the descriptor of the method to test in asm terminology.- Returns:
trueif the given method name and description match with theGroovyObject.getMetaClass(),falseotherwise.
-
isGroovyClass
- Parameters:
name- the full qualified name of the class to test.- Returns:
trueif the given class is part of the groovy library,falseotherwise.
-