Package soot.JastAddJ

Class ParConstructorAccess

    • Constructor Detail

      • ParConstructorAccess

        public ParConstructorAccess()
    • Method Detail

      • fullCopy

        public ParConstructorAccess 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 ConstructorAccess
        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 ConstructorAccess
      • setID

        public void setID​(String value)
        Replaces the lexeme ID.
        Overrides:
        setID in class ConstructorAccess
        Parameters:
        value - The new value for the lexeme ID.
      • setID

        public void setID​(Symbol symbol)
        JastAdd-internal setter for lexeme ID using the Beaver parser.
        Overrides:
        setID in class ConstructorAccess
      • getID

        public String getID()
        Retrieves the value for the lexeme ID.
        Overrides:
        getID in class ConstructorAccess
        Returns:
        The value for the lexeme ID.
      • setArgList

        public void setArgList​(List<Expr> list)
        Replaces the Arg list.
        Overrides:
        setArgList in class ConstructorAccess
        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 ConstructorAccess
        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 ConstructorAccess
        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 ConstructorAccess
        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 ConstructorAccess
        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 ConstructorAccess
        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 ConstructorAccess
        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 ConstructorAccess
        Returns:
        The node representing the Arg list.
      • setTypeArgumentList

        public void setTypeArgumentList​(List<Access> list)
        Replaces the TypeArgument list.
        Parameters:
        list - The new list node to be used as the TypeArgument list.
      • getNumTypeArgument

        public int getNumTypeArgument()
        Retrieves the number of children in the TypeArgument list.
        Returns:
        Number of children in the TypeArgument list.
      • getNumTypeArgumentNoTransform

        public int getNumTypeArgumentNoTransform()
        Retrieves the number of children in the TypeArgument list. Calling this method will not trigger rewrites..
        Returns:
        Number of children in the TypeArgument list.
      • getTypeArgument

        public Access getTypeArgument​(int i)
        Retrieves the element at index i in the TypeArgument list..
        Parameters:
        i - Index of the element to return.
        Returns:
        The element at position i in the TypeArgument list.
      • addTypeArgument

        public void addTypeArgument​(Access node)
        Append an element to the TypeArgument list.
        Parameters:
        node - The element to append to the TypeArgument list.
      • addTypeArgumentNoTransform

        public void addTypeArgumentNoTransform​(Access node)
      • setTypeArgument

        public void setTypeArgument​(Access node,
                                    int i)
        Replaces the TypeArgument 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.
      • getTypeArguments

        public List<Access> getTypeArguments()
        Retrieves the TypeArgument list.
        Returns:
        The node representing the TypeArgument list.
      • getTypeArgumentsNoTransform

        public List<Access> getTypeArgumentsNoTransform()
        Retrieves the TypeArgument list.

        This method does not invoke AST transformations.

        Returns:
        The node representing the TypeArgument list.
      • getTypeArgumentList

        public List<Access> getTypeArgumentList()
        Retrieves the TypeArgument list.
        Returns:
        The node representing the TypeArgument list.
      • getTypeArgumentListNoTransform

        public List<Access> getTypeArgumentListNoTransform()
        Retrieves the TypeArgument list.

        This method does not invoke AST transformations.

        Returns:
        The node representing the TypeArgument list.