Package soot.JastAddJ

Class ArrayInit

    • Field Detail

      • computeDABefore_int_Variable_values

        protected Map computeDABefore_int_Variable_values
      • computeDUbefore_int_Variable_values

        protected Map computeDUbefore_int_Variable_values
      • type_computed

        protected boolean type_computed
      • type_value

        protected TypeDecl type_value
      • declType_computed

        protected boolean declType_computed
      • declType_value

        protected TypeDecl declType_value
    • Constructor Detail

      • ArrayInit

        public ArrayInit()
      • ArrayInit

        public ArrayInit​(List<Expr> p0)
    • Method Detail

      • flushCache

        public void flushCache()
        Overrides:
        flushCache in class Expr
      • fullCopy

        public ArrayInit fullCopy()
        Create a deep copy of the AST subtree at this node. The copy is dangling, i.e. has no parent.
        Overrides:
        fullCopy in class ASTNode<ASTNode>
        Returns:
        dangling copy of the subtree at this node
      • init$Children

        public void init$Children()
        Initializes the child array to the correct size. Initializes List and Opt nta children.
        Overrides:
        init$Children in class Expr
      • numChildren

        protected int numChildren()
        Overrides:
        numChildren in class Expr
      • mayHaveRewrite

        public boolean mayHaveRewrite()
        Overrides:
        mayHaveRewrite in class Expr
      • setInitList

        public void setInitList​(List<Expr> list)
        Replaces the Init list.
        Parameters:
        list - The new list node to be used as the Init list.
      • getNumInit

        public int getNumInit()
        Retrieves the number of children in the Init list.
        Returns:
        Number of children in the Init list.
      • getNumInitNoTransform

        public int getNumInitNoTransform()
        Retrieves the number of children in the Init list. Calling this method will not trigger rewrites..
        Returns:
        Number of children in the Init list.
      • getInit

        public Expr getInit​(int i)
        Retrieves the element at index i in the Init list..
        Parameters:
        i - Index of the element to return.
        Returns:
        The element at position i in the Init list.
      • addInit

        public void addInit​(Expr node)
        Append an element to the Init list.
        Parameters:
        node - The element to append to the Init list.
      • addInitNoTransform

        public void addInitNoTransform​(Expr node)
      • setInit

        public void setInit​(Expr node,
                            int i)
        Replaces the Init list element at index i with the new node node.
        Parameters:
        node - The new node to replace the old list element.
        i - The list index of the node to be replaced.
      • getInits

        public List<Expr> getInits()
        Retrieves the Init list.
        Returns:
        The node representing the Init list.
      • getInitsNoTransform

        public List<Expr> getInitsNoTransform()
        Retrieves the Init list.

        This method does not invoke AST transformations.

        Returns:
        The node representing the Init list.
      • getInitList

        public List<Expr> getInitList()
        Retrieves the Init list.
        Returns:
        The node representing the Init list.
      • getInitListNoTransform

        public List<Expr> getInitListNoTransform()
        Retrieves the Init list.

        This method does not invoke AST transformations.

        Returns:
        The node representing the Init list.
      • computeDABefore

        public boolean computeDABefore​(int childIndex,
                                       Variable v)
      • computeDUbefore

        public boolean computeDUbefore​(int childIndex,
                                       Variable v)
      • expectedType

        public TypeDecl expectedType()