Class MethodNodeUtils


  • public class MethodNodeUtils
    extends java.lang.Object
    Utility class for working with MethodNodes
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getPropertyName​(MethodNode mNode)
      For a method node potentially representing a property, returns the name of the property.
      static java.lang.String methodDescriptor​(MethodNode mNode)
      Return the method node's descriptor which includes its return type, name and parameter types without generics.
      static java.lang.String methodDescriptorWithoutReturnType​(MethodNode mNode)
      Return the method node's descriptor including its name and parameter types without generics.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • methodDescriptorWithoutReturnType

        public static java.lang.String methodDescriptorWithoutReturnType​(MethodNode mNode)
        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

        public static java.lang.String methodDescriptor​(MethodNode mNode)
        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

        public static java.lang.String getPropertyName​(MethodNode mNode)
        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