Class MethodNode


  • public class MethodNode
    extends CPGNode
    CPG node wrapping a lifted IR method together with its owner class.
    • Constructor Detail

      • MethodNode

        public MethodNode​(long id,
                          IRMethod method,
                          String owner)
        Creates a node for a lifted method.
        Parameters:
        id - the unique node id
        method - the wrapped IR method
        owner - the declaring class internal name
    • Method Detail

      • getMethod

        public IRMethod getMethod()
        Returns:
        the method
      • getOwner

        public String getOwner()
        Returns:
        the owner
      • getName

        public String getName()
        Returns:
        the name
      • getDescriptor

        public String getDescriptor()
        Returns:
        the descriptor
      • getLabel

        public String getLabel()
        Specified by:
        getLabel in class CPGNode
        Returns:
        a short human-readable display label
      • getUnderlying

        public <T> T getUnderlying()
        Specified by:
        getUnderlying in class CPGNode
        Type Parameters:
        T - the expected underlying type
        Returns:
        the wrapped IR or analysis object
      • getFullSignature

        public String getFullSignature()
        Returns:
        the signature as owner.name plus descriptor
      • isStatic

        public boolean isStatic()
        Returns:
        whether the method is static
      • getParameterCount

        public int getParameterCount()
        Returns:
        the number of declared parameters
      • getBlockCount

        public int getBlockCount()
        Returns:
        the number of basic blocks in the method