Package soot.JastAddJ

Class Dims

    • Constructor Detail

      • Dims

        public Dims()
      • Dims

        public Dims​(Opt<Expr> p0)
    • Method Detail

      • fullCopy

        public Dims 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 ASTNode<ASTNode>
      • setExprOpt

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

        public boolean hasExpr()
        Check whether the optional Expr child exists.
        Returns:
        true if the optional Expr child exists, false if it does not.
      • getExpr

        public Expr getExpr()
        Retrieves the (optional) Expr child.
        Returns:
        The Expr child, if it exists. Returns null otherwise.
      • setExpr

        public void setExpr​(Expr node)
        Replaces the (optional) Expr child.
        Parameters:
        node - The new node to be used as the Expr child.
      • getExprOpt

        public Opt<Expr> getExprOpt()
      • getExprOptNoTransform

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

        This method does not invoke AST transformations.

        Returns:
        The optional node for child Expr.