Package io.quarkiverse.groovy.deployment
Class GroovyUtil
- java.lang.Object
-
- io.quarkiverse.groovy.deployment.GroovyUtil
-
public final class GroovyUtil extends Object
GroovyUtilis a utility class that provides methods that are specific to the Groovy language.
-
-
Field Summary
Fields Modifier and Type Field Description static org.jboss.jandex.DotNameDOTNAME_GROOVY_OBJECTTheDotNamecorresponding to theGroovyObject.static StringMETHOD_GET_META_CLASS_DESCRIPTORThe descriptor of the methodgetMetaClass()in asm terminology.static StringMETHOD_GET_META_CLASS_NAMEThe name of the specific method allowing to get the meta class.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisGetMetaClassMethod(String name, String descriptor)static booleanisGroovyClass(String name)static booleanisGroovyObject(org.jboss.jandex.ClassInfo classInfo)
-
-
-
Field Detail
-
DOTNAME_GROOVY_OBJECT
public static final org.jboss.jandex.DotName DOTNAME_GROOVY_OBJECT
TheDotNamecorresponding to theGroovyObject.
-
METHOD_GET_META_CLASS_NAME
public static final String METHOD_GET_META_CLASS_NAME
The name of the specific method allowing to get the meta class.- See Also:
- Constant Field Values
-
METHOD_GET_META_CLASS_DESCRIPTOR
public static final String METHOD_GET_META_CLASS_DESCRIPTOR
The descriptor of the methodgetMetaClass()in asm terminology.
-
-
Method Detail
-
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
public static boolean isGetMetaClassMethod(String name, String descriptor)
- 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
public static boolean isGroovyClass(String name)
- Parameters:
name- the full qualified name of the class to test.- Returns:
trueif the given class is part of the groovy library,falseotherwise.
-
-