Package soot.JastAddJ

Class ParConstructorDecl

    • Field Detail

      • genericConstructorDecl_computed

        protected boolean genericConstructorDecl_computed
      • sourceConstructorDecl_computed

        protected boolean sourceConstructorDecl_computed
      • sourceConstructorDecl_value

        protected ConstructorDecl sourceConstructorDecl_value
    • Method Detail

      • fullCopy

        public ParConstructorDecl 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 ConstructorDecl
        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 ConstructorDecl
      • setModifiers

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

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

        public Modifiers getModifiersNoTransform()
        Retrieves the Modifiers child.

        This method does not invoke AST transformations.

        Overrides:
        getModifiersNoTransform in class ConstructorDecl
        Returns:
        The current node used as the Modifiers child.
      • setID

        public void setID​(String value)
        Replaces the lexeme ID.
        Overrides:
        setID in class ConstructorDecl
        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 ConstructorDecl
      • getID

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

        public int getNumParameter()
        Retrieves the number of children in the Parameter list.
        Overrides:
        getNumParameter in class ConstructorDecl
        Returns:
        Number of children in the Parameter list.
      • getNumParameterNoTransform

        public int getNumParameterNoTransform()
        Retrieves the number of children in the Parameter list. Calling this method will not trigger rewrites..
        Overrides:
        getNumParameterNoTransform in class ConstructorDecl
        Returns:
        Number of children in the Parameter list.
      • getParameter

        public ParameterDeclaration getParameter​(int i)
        Retrieves the element at index i in the Parameter list..
        Overrides:
        getParameter in class ConstructorDecl
        Parameters:
        i - Index of the element to return.
        Returns:
        The element at position i in the Parameter list.
      • setParameter

        public void setParameter​(ParameterDeclaration node,
                                 int i)
        Replaces the Parameter list element at index i with the new node node.
        Overrides:
        setParameter in class ConstructorDecl
        Parameters:
        node - The new node to replace the old list element.
        i - The list index of the node to be replaced.
      • setExceptionList

        public void setExceptionList​(List<Access> list)
        Replaces the Exception list.
        Overrides:
        setExceptionList in class ConstructorDecl
        Parameters:
        list - The new list node to be used as the Exception list.
      • getNumException

        public int getNumException()
        Retrieves the number of children in the Exception list.
        Overrides:
        getNumException in class ConstructorDecl
        Returns:
        Number of children in the Exception list.
      • getNumExceptionNoTransform

        public int getNumExceptionNoTransform()
        Retrieves the number of children in the Exception list. Calling this method will not trigger rewrites..
        Overrides:
        getNumExceptionNoTransform in class ConstructorDecl
        Returns:
        Number of children in the Exception list.
      • getException

        public Access getException​(int i)
        Retrieves the element at index i in the Exception list..
        Overrides:
        getException in class ConstructorDecl
        Parameters:
        i - Index of the element to return.
        Returns:
        The element at position i in the Exception list.
      • addException

        public void addException​(Access node)
        Append an element to the Exception list.
        Overrides:
        addException in class ConstructorDecl
        Parameters:
        node - The element to append to the Exception list.
      • setException

        public void setException​(Access node,
                                 int i)
        Replaces the Exception list element at index i with the new node node.
        Overrides:
        setException in class ConstructorDecl
        Parameters:
        node - The new node to replace the old list element.
        i - The list index of the node to be replaced.
      • getExceptionsNoTransform

        public List<Access> getExceptionsNoTransform()
        Retrieves the Exception list.

        This method does not invoke AST transformations.

        Overrides:
        getExceptionsNoTransform in class ConstructorDecl
        Returns:
        The node representing the Exception list.
      • getExceptionListNoTransform

        public List<Access> getExceptionListNoTransform()
        Retrieves the Exception list.

        This method does not invoke AST transformations.

        Overrides:
        getExceptionListNoTransform in class ConstructorDecl
        Returns:
        The node representing the Exception list.
      • setConstructorInvocationOpt

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

        public boolean hasConstructorInvocation()
        Check whether the optional ConstructorInvocation child exists.
        Overrides:
        hasConstructorInvocation in class ConstructorDecl
        Returns:
        true if the optional ConstructorInvocation child exists, false if it does not.
      • getConstructorInvocation

        public Stmt getConstructorInvocation()
        Retrieves the (optional) ConstructorInvocation child.
        Overrides:
        getConstructorInvocation in class ConstructorDecl
        Returns:
        The ConstructorInvocation child, if it exists. Returns null otherwise.
      • setConstructorInvocation

        public void setConstructorInvocation​(Stmt node)
        Replaces the (optional) ConstructorInvocation child.
        Overrides:
        setConstructorInvocation in class ConstructorDecl
        Parameters:
        node - The new node to be used as the ConstructorInvocation child.
      • getConstructorInvocationOptNoTransform

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

        This method does not invoke AST transformations.

        Overrides:
        getConstructorInvocationOptNoTransform in class ConstructorDecl
        Returns:
        The optional node for child ConstructorInvocation.
      • setBlock

        public void setBlock​(Block node)
        Replaces the Block child.
        Overrides:
        setBlock in class ConstructorDecl
        Parameters:
        node - The new node to replace the Block child.
      • getBlock

        public Block getBlock()
        Retrieves the Block child.
        Overrides:
        getBlock in class ConstructorDecl
        Returns:
        The current node used as the Block child.
      • getBlockNoTransform

        public Block getBlockNoTransform()
        Retrieves the Block child.

        This method does not invoke AST transformations.

        Overrides:
        getBlockNoTransform in class ConstructorDecl
        Returns:
        The current node used as the Block child.
      • 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.