Class CallSiteNode


  • public class CallSiteNode
    extends CPGNode
    CPG node wrapping an invoke instruction, exposing its resolved target signature.
    • Constructor Detail

      • CallSiteNode

        public CallSiteNode​(long id,
                            InvokeInstruction invoke)
        Creates a node for an invoke instruction.
        Parameters:
        id - the unique node id
        invoke - the wrapped invoke instruction
    • Method Detail

      • getTargetOwner

        public String getTargetOwner()
        Returns:
        the target owner
      • getTargetName

        public String getTargetName()
        Returns:
        the target name
      • getTargetDescriptor

        public String getTargetDescriptor()
        Returns:
        the target 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
      • getFullTarget

        public String getFullTarget()
        Returns:
        the target as owner.name plus descriptor
      • getInvokeType

        public InvokeType getInvokeType()
        Returns:
        the invoke dispatch kind
      • isStatic

        public boolean isStatic()
        Returns:
        whether this is an invokestatic call
      • isVirtual

        public boolean isVirtual()
        Returns:
        whether this is an invokevirtual call
      • isInterface

        public boolean isInterface()
        Returns:
        whether this is an invokeinterface call
      • isSpecial

        public boolean isSpecial()
        Returns:
        whether this is an invokespecial call
      • getArgumentCount

        public int getArgumentCount()
        Returns:
        the number of call arguments