Package soot.JastAddJ

Class ElementArrayValue

    • Constructor Detail

      • ElementArrayValue

        public ElementArrayValue()
    • Method Detail

      • fullCopy

        public ElementArrayValue 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 ElementValue
      • setElementValueList

        public void setElementValueList​(List<ElementValue> list)
        Replaces the ElementValue list.
        Parameters:
        list - The new list node to be used as the ElementValue list.
      • getNumElementValue

        public int getNumElementValue()
        Retrieves the number of children in the ElementValue list.
        Returns:
        Number of children in the ElementValue list.
      • getNumElementValueNoTransform

        public int getNumElementValueNoTransform()
        Retrieves the number of children in the ElementValue list. Calling this method will not trigger rewrites..
        Returns:
        Number of children in the ElementValue list.
      • getElementValue

        public ElementValue getElementValue​(int i)
        Retrieves the element at index i in the ElementValue list..
        Parameters:
        i - Index of the element to return.
        Returns:
        The element at position i in the ElementValue list.
      • addElementValue

        public void addElementValue​(ElementValue node)
        Append an element to the ElementValue list.
        Parameters:
        node - The element to append to the ElementValue list.
      • addElementValueNoTransform

        public void addElementValueNoTransform​(ElementValue node)
      • setElementValue

        public void setElementValue​(ElementValue node,
                                    int i)
        Replaces the ElementValue 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.
      • getElementValues

        public List<ElementValue> getElementValues()
        Retrieves the ElementValue list.
        Returns:
        The node representing the ElementValue list.
      • getElementValuesNoTransform

        public List<ElementValue> getElementValuesNoTransform()
        Retrieves the ElementValue list.

        This method does not invoke AST transformations.

        Returns:
        The node representing the ElementValue list.
      • getElementValueList

        public List<ElementValue> getElementValueList()
        Retrieves the ElementValue list.
        Returns:
        The node representing the ElementValue list.
      • getElementValueListNoTransform

        public List<ElementValue> getElementValueListNoTransform()
        Retrieves the ElementValue list.

        This method does not invoke AST transformations.

        Returns:
        The node representing the ElementValue list.