Class CallsiteContextVar

  • All Implemented Interfaces:
    Numberable

    public class CallsiteContextVar
    extends ContextVar
    A general interface for generating the traditional context sensitive variable representation.
    Author:
    xiao
    • Field Detail

      • context

        public CgEdge context
    • Constructor Detail

      • CallsiteContextVar

        public CallsiteContextVar()
      • CallsiteContextVar

        public CallsiteContextVar​(CgEdge c,
                                  Node v)
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • contains

        public boolean contains​(ContextVar cv)
        Description copied from class: ContextVar
        Test if current context variable contains the information for passed in variable
        Specified by:
        contains in class ContextVar
        Returns:
      • merge

        public boolean merge​(ContextVar cv)
        Description copied from class: ContextVar
        Merge two context variables if possible Merged information is written into current variable.
        Specified by:
        merge in class ContextVar
        Returns:
        true if mergable.
      • intersect

        public boolean intersect​(ContextVar cv)
        Description copied from class: ContextVar
        Two context sensitive variables have intersected contexts.
        Specified by:
        intersect in class ContextVar
        Returns: