Package soot.JastAddJ

Class ArrayCreationExpr

    • Field Detail

      • type_computed

        protected boolean type_computed
      • type_value

        protected TypeDecl type_value
      • numArrays_computed

        protected boolean numArrays_computed
      • numArrays_value

        protected int numArrays_value
    • Constructor Detail

      • ArrayCreationExpr

        public ArrayCreationExpr()
    • Method Detail

      • fullCopy

        public ArrayCreationExpr 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 PrimaryExpr
      • 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.
      • setArrayInitOpt

        public void setArrayInitOpt​(Opt<ArrayInit> opt)
        Replaces the optional node for the ArrayInit child. This is the Opt node containing the child ArrayInit, not the actual child!
        Parameters:
        opt - The new node to be used as the optional node for the ArrayInit child.
      • hasArrayInit

        public boolean hasArrayInit()
        Check whether the optional ArrayInit child exists.
        Returns:
        true if the optional ArrayInit child exists, false if it does not.
      • getArrayInit

        public ArrayInit getArrayInit()
        Retrieves the (optional) ArrayInit child.
        Returns:
        The ArrayInit child, if it exists. Returns null otherwise.
      • setArrayInit

        public void setArrayInit​(ArrayInit node)
        Replaces the (optional) ArrayInit child.
        Parameters:
        node - The new node to be used as the ArrayInit child.
      • getArrayInitOptNoTransform

        public Opt<ArrayInit> getArrayInitOptNoTransform()
        Retrieves the optional node for child ArrayInit. This is the Opt node containing the child ArrayInit, not the actual child!

        This method does not invoke AST transformations.

        Returns:
        The optional node for child ArrayInit.
      • isDAafterCreation

        public boolean isDAafterCreation​(Variable v)
      • isDUafterCreation

        public boolean isDUafterCreation​(Variable v)
      • numArrays

        public int numArrays()