Package soot.JastAddJ

Class VarDeclStmt

    • Field Detail

      • canCompleteNormally_computed

        protected boolean canCompleteNormally_computed
      • canCompleteNormally_value

        protected boolean canCompleteNormally_value
    • Method Detail

      • flushCache

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

        public VarDeclStmt 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 Stmt
      • numChildren

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

        public boolean mayHaveRewrite()
        Overrides:
        mayHaveRewrite in class Stmt
      • setModifiers

        public void setModifiers​(Modifiers node)
        Replaces the Modifiers child.
        Parameters:
        node - The new node to replace the Modifiers child.
      • getModifiers

        public Modifiers getModifiers()
        Retrieves the Modifiers child.
        Returns:
        The current node used as the Modifiers child.
      • getModifiersNoTransform

        public Modifiers getModifiersNoTransform()
        Retrieves the Modifiers child.

        This method does not invoke AST transformations.

        Returns:
        The current node used as the Modifiers child.
      • setTypeAccess

        public void setTypeAccess​(Access node)
        Replaces the TypeAccess child.
        Parameters:
        node - The new node to replace the TypeAccess child.
      • getTypeAccess

        public Access getTypeAccess()
        Retrieves the TypeAccess child.
        Returns:
        The current node used as the TypeAccess child.
      • getTypeAccessNoTransform

        public Access getTypeAccessNoTransform()
        Retrieves the TypeAccess child.

        This method does not invoke AST transformations.

        Returns:
        The current node used as the TypeAccess child.
      • setVariableDeclList

        public void setVariableDeclList​(List<VariableDecl> list)
        Replaces the VariableDecl list.
        Parameters:
        list - The new list node to be used as the VariableDecl list.
      • getNumVariableDecl

        public int getNumVariableDecl()
        Retrieves the number of children in the VariableDecl list.
        Returns:
        Number of children in the VariableDecl list.
      • getNumVariableDeclNoTransform

        public int getNumVariableDeclNoTransform()
        Retrieves the number of children in the VariableDecl list. Calling this method will not trigger rewrites..
        Returns:
        Number of children in the VariableDecl list.
      • getVariableDecl

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

        public void addVariableDecl​(VariableDecl node)
        Append an element to the VariableDecl list.
        Parameters:
        node - The element to append to the VariableDecl list.
      • addVariableDeclNoTransform

        public void addVariableDeclNoTransform​(VariableDecl node)
      • setVariableDecl

        public void setVariableDecl​(VariableDecl node,
                                    int i)
        Replaces the VariableDecl 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.
      • getVariableDecls

        public List<VariableDecl> getVariableDecls()
        Retrieves the VariableDecl list.
        Returns:
        The node representing the VariableDecl list.
      • getVariableDeclsNoTransform

        public List<VariableDecl> getVariableDeclsNoTransform()
        Retrieves the VariableDecl list.

        This method does not invoke AST transformations.

        Returns:
        The node representing the VariableDecl list.
      • getVariableDeclList

        public List<VariableDecl> getVariableDeclList()
        Retrieves the VariableDecl list.
        Returns:
        The node representing the VariableDecl list.
      • getVariableDeclListNoTransform

        public List<VariableDecl> getVariableDeclListNoTransform()
        Retrieves the VariableDecl list.

        This method does not invoke AST transformations.

        Returns:
        The node representing the VariableDecl list.