Package soot.JastAddJ

Class EnumInstanceExpr

    • Field Detail

      • getAccess_computed

        protected boolean getAccess_computed
      • getAccess_value

        protected Access getAccess_value
      • getArgList_computed

        protected boolean getArgList_computed
      • getArgList_value

        protected List<Expr> getArgList_value
    • Constructor Detail

      • EnumInstanceExpr

        public EnumInstanceExpr()
      • EnumInstanceExpr

        public EnumInstanceExpr​(Opt<TypeDecl> p0)
    • Method Detail

      • fullCopy

        public EnumInstanceExpr 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 ClassInstanceExpr
        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 ClassInstanceExpr
      • setTypeDeclOpt

        public void setTypeDeclOpt​(Opt<TypeDecl> opt)
        Replaces the optional node for the TypeDecl child. This is the Opt node containing the child TypeDecl, not the actual child!
        Overrides:
        setTypeDeclOpt in class ClassInstanceExpr
        Parameters:
        opt - The new node to be used as the optional node for the TypeDecl child.
      • hasTypeDecl

        public boolean hasTypeDecl()
        Check whether the optional TypeDecl child exists.
        Overrides:
        hasTypeDecl in class ClassInstanceExpr
        Returns:
        true if the optional TypeDecl child exists, false if it does not.
      • getTypeDecl

        public TypeDecl getTypeDecl()
        Retrieves the (optional) TypeDecl child.
        Overrides:
        getTypeDecl in class ClassInstanceExpr
        Returns:
        The TypeDecl child, if it exists. Returns null otherwise.
      • setTypeDecl

        public void setTypeDecl​(TypeDecl node)
        Replaces the (optional) TypeDecl child.
        Overrides:
        setTypeDecl in class ClassInstanceExpr
        Parameters:
        node - The new node to be used as the TypeDecl child.
      • getTypeDeclOptNoTransform

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

        This method does not invoke AST transformations.

        Overrides:
        getTypeDeclOptNoTransform in class ClassInstanceExpr
        Returns:
        The optional node for child TypeDecl.
      • setAccess

        public void setAccess​(Access node)
        Replaces the Access child.
        Overrides:
        setAccess in class ClassInstanceExpr
        Parameters:
        node - The new node to replace the Access child.
      • getAccessNoTransform

        public Access getAccessNoTransform()
        Retrieves the Access child.

        This method does not invoke AST transformations.

        Overrides:
        getAccessNoTransform in class ClassInstanceExpr
        Returns:
        The current node used as the Access child.
      • getAccessChildPosition

        protected int getAccessChildPosition()
        Retrieves the child position of the optional child Access.
        Returns:
        The the child position of the optional child Access.
      • setArgList

        public void setArgList​(List<Expr> list)
        Replaces the Arg list.
        Overrides:
        setArgList in class ClassInstanceExpr
        Parameters:
        list - The new list node to be used as the Arg list.
      • getNumArg

        public int getNumArg()
        Retrieves the number of children in the Arg list.
        Overrides:
        getNumArg in class ClassInstanceExpr
        Returns:
        Number of children in the Arg list.
      • getNumArgNoTransform

        public int getNumArgNoTransform()
        Retrieves the number of children in the Arg list. Calling this method will not trigger rewrites..
        Overrides:
        getNumArgNoTransform in class ClassInstanceExpr
        Returns:
        Number of children in the Arg list.
      • getArg

        public Expr getArg​(int i)
        Retrieves the element at index i in the Arg list..
        Overrides:
        getArg in class ClassInstanceExpr
        Parameters:
        i - Index of the element to return.
        Returns:
        The element at position i in the Arg list.
      • addArg

        public void addArg​(Expr node)
        Append an element to the Arg list.
        Overrides:
        addArg in class ClassInstanceExpr
        Parameters:
        node - The element to append to the Arg list.
      • setArg

        public void setArg​(Expr node,
                           int i)
        Replaces the Arg list element at index i with the new node node.
        Overrides:
        setArg in class ClassInstanceExpr
        Parameters:
        node - The new node to replace the old list element.
        i - The list index of the node to be replaced.
      • getArgsNoTransform

        public List<Expr> getArgsNoTransform()
        Retrieves the Arg list.

        This method does not invoke AST transformations.

        Overrides:
        getArgsNoTransform in class ClassInstanceExpr
        Returns:
        The node representing the Arg list.
      • getArgListNoTransform

        public List<Expr> getArgListNoTransform()
        Retrieves the Arg list.

        This method does not invoke AST transformations.

        Overrides:
        getArgListNoTransform in class ClassInstanceExpr
        Returns:
        The node representing the Arg list.
      • getArgListChildPosition

        protected int getArgListChildPosition()
        Retrieves the child position of the Arg list.
        Returns:
        The the child position of the Arg list.