Package soot.JastAddJ

Class ParMethodDecl

    • Field Detail

      • tokenGenericMethodDecl_GenericMethodDecl

        protected GenericMethodDecl tokenGenericMethodDecl_GenericMethodDecl
      • genericMethodDecl_computed

        protected boolean genericMethodDecl_computed
      • sourceMethodDecl_computed

        protected boolean sourceMethodDecl_computed
      • sourceMethodDecl_value

        protected MethodDecl sourceMethodDecl_value
      • moreSpecificThan_MethodDecl_values

        protected Map moreSpecificThan_MethodDecl_values
    • Method Detail

      • fullCopy

        public ParMethodDecl 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 MethodDecl
        Returns:
        dangling copy of the subtree at this node
      • collectErrors

        public void collectErrors()
        Description copied from class: ASTNode
        The collectErrors method is refined so that it calls the checkWarnings method on each ASTNode to report unchecked warnings.
        Overrides:
        collectErrors in class ASTNode<ASTNode>
      • numTypeParameter

        public int numTypeParameter()
      • typeParameter

        public TypeVariable typeParameter​(int index)
      • 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 MethodDecl
      • setModifiers

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

        public Modifiers getModifiers()
        Retrieves the Modifiers child.
        Overrides:
        getModifiers in class MethodDecl
        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 MethodDecl
        Returns:
        The current node used as the Modifiers child.
      • setTypeAccess

        public void setTypeAccess​(Access node)
        Replaces the TypeAccess child.
        Overrides:
        setTypeAccess in class MethodDecl
        Parameters:
        node - The new node to replace the TypeAccess child.
      • getTypeAccess

        public Access getTypeAccess()
        Retrieves the TypeAccess child.
        Overrides:
        getTypeAccess in class MethodDecl
        Returns:
        The current node used as the TypeAccess child.
      • getTypeAccessNoTransform

        public Access getTypeAccessNoTransform()
        Retrieves the TypeAccess child.

        This method does not invoke AST transformations.

        Overrides:
        getTypeAccessNoTransform in class MethodDecl
        Returns:
        The current node used as the TypeAccess child.
      • setID

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

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

        public int getNumParameter()
        Retrieves the number of children in the Parameter list.
        Overrides:
        getNumParameter in class MethodDecl
        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 MethodDecl
        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 MethodDecl
        Parameters:
        i - Index of the element to return.
        Returns:
        The element at position i in the Parameter list.
      • addParameter

        public void addParameter​(ParameterDeclaration node)
        Append an element to the Parameter list.
        Overrides:
        addParameter in class MethodDecl
        Parameters:
        node - The element to append to 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 MethodDecl
        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 MethodDecl
        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 MethodDecl
        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 MethodDecl
        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 MethodDecl
        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 MethodDecl
        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 MethodDecl
        Parameters:
        node - The new node to replace the old list element.
        i - The list index of the node to be replaced.
      • getExceptions

        public List<Access> getExceptions()
        Retrieves the Exception list.
        Overrides:
        getExceptions in class MethodDecl
        Returns:
        The node representing the Exception list.
      • getExceptionsNoTransform

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

        This method does not invoke AST transformations.

        Overrides:
        getExceptionsNoTransform in class MethodDecl
        Returns:
        The node representing the Exception list.
      • getExceptionList

        public List<Access> getExceptionList()
        Retrieves the Exception list.
        Overrides:
        getExceptionList in class MethodDecl
        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 MethodDecl
        Returns:
        The node representing the Exception list.
      • setBlockOpt

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

        public boolean hasBlock()
        Check whether the optional Block child exists.
        Overrides:
        hasBlock in class MethodDecl
        Returns:
        true if the optional Block child exists, false if it does not.
      • getBlock

        public Block getBlock()
        Retrieves the (optional) Block child.
        Overrides:
        getBlock in class MethodDecl
        Returns:
        The Block child, if it exists. Returns null otherwise.
      • setBlock

        public void setBlock​(Block node)
        Replaces the (optional) Block child.
        Overrides:
        setBlock in class MethodDecl
        Parameters:
        node - The new node to be used as the Block child.
      • getBlockOptNoTransform

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

        This method does not invoke AST transformations.

        Overrides:
        getBlockOptNoTransform in class MethodDecl
        Returns:
        The optional node for child Block.
      • 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.
      • setGenericMethodDecl

        public void setGenericMethodDecl​(GenericMethodDecl value)
        Replaces the lexeme GenericMethodDecl.
        Parameters:
        value - The new value for the lexeme GenericMethodDecl.
      • getGenericMethodDecl

        public GenericMethodDecl getGenericMethodDecl()
        Retrieves the value for the lexeme GenericMethodDecl.
        Returns:
        The value for the lexeme GenericMethodDecl.