Package soot.JastAddJ

Class AnnotationMethodDecl

    • Method Detail

      • fullCopy

        public AnnotationMethodDecl 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
      • 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.
      • setDefaultValueOpt

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

        public boolean hasDefaultValue()
        Check whether the optional DefaultValue child exists.
        Returns:
        true if the optional DefaultValue child exists, false if it does not.
      • getDefaultValue

        public ElementValue getDefaultValue()
        Retrieves the (optional) DefaultValue child.
        Returns:
        The DefaultValue child, if it exists. Returns null otherwise.
      • setDefaultValue

        public void setDefaultValue​(ElementValue node)
        Replaces the (optional) DefaultValue child.
        Parameters:
        node - The new node to be used as the DefaultValue child.
      • getDefaultValueOptNoTransform

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

        This method does not invoke AST transformations.

        Returns:
        The optional node for child DefaultValue.