Class MethodNodeUtils
java.lang.Object
org.apache.groovy.ast.tools.MethodNodeUtils
Utility class for working with MethodNodes
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetPropertyName(MethodNode mNode) For a method node potentially representing a property, returns the name of the property.static StringmethodDescriptor(MethodNode mNode) Return the method node's descriptor which includes its return type, name and parameter types without generics.static StringReturn the method node's descriptor including its name and parameter types without generics.
-
Method Details
-
methodDescriptorWithoutReturnType
Return the method node's descriptor including its name and parameter types without generics.- Parameters:
mNode- the method node- Returns:
- the method node's abbreviated descriptor excluding the return type
-
methodDescriptor
Return the method node's descriptor which includes its return type, name and parameter types without generics.- Parameters:
mNode- the method node- Returns:
- the method node's descriptor
-
getPropertyName
For a method node potentially representing a property, returns the name of the property.- Parameters:
mNode- a MethodNode- Returns:
- the property name without the get/set/is prefix if a property or null
-