Package soot.JastAddJ

Class AnnotationDecl

    • Field Detail

      • getSuperInterfaceIdList_computed

        protected boolean getSuperInterfaceIdList_computed
      • getSuperInterfaceIdList_value

        protected List getSuperInterfaceIdList_value
      • containsElementOf_TypeDecl_values

        protected Map containsElementOf_TypeDecl_values
    • Method Detail

      • fullCopy

        public AnnotationDecl 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 InterfaceDecl
        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 InterfaceDecl
      • setModifiers

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

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

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

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

        public void setBodyDeclList​(List<BodyDecl> list)
        Replaces the BodyDecl list.
        Overrides:
        setBodyDeclList in class InterfaceDecl
        Parameters:
        list - The new list node to be used as the BodyDecl list.
      • getNumBodyDecl

        public int getNumBodyDecl()
        Retrieves the number of children in the BodyDecl list.
        Overrides:
        getNumBodyDecl in class InterfaceDecl
        Returns:
        Number of children in the BodyDecl list.
      • getNumBodyDeclNoTransform

        public int getNumBodyDeclNoTransform()
        Retrieves the number of children in the BodyDecl list. Calling this method will not trigger rewrites..
        Overrides:
        getNumBodyDeclNoTransform in class InterfaceDecl
        Returns:
        Number of children in the BodyDecl list.
      • getBodyDecl

        public BodyDecl getBodyDecl​(int i)
        Retrieves the element at index i in the BodyDecl list..
        Overrides:
        getBodyDecl in class InterfaceDecl
        Parameters:
        i - Index of the element to return.
        Returns:
        The element at position i in the BodyDecl list.
      • addBodyDecl

        public void addBodyDecl​(BodyDecl node)
        Append an element to the BodyDecl list.
        Overrides:
        addBodyDecl in class InterfaceDecl
        Parameters:
        node - The element to append to the BodyDecl list.
      • setBodyDecl

        public void setBodyDecl​(BodyDecl node,
                                int i)
        Replaces the BodyDecl list element at index i with the new node node.
        Overrides:
        setBodyDecl in class InterfaceDecl
        Parameters:
        node - The new node to replace the old list element.
        i - The list index of the node to be replaced.
      • getBodyDeclsNoTransform

        public List<BodyDecl> getBodyDeclsNoTransform()
        Retrieves the BodyDecl list.

        This method does not invoke AST transformations.

        Overrides:
        getBodyDeclsNoTransform in class InterfaceDecl
        Returns:
        The node representing the BodyDecl list.
      • getBodyDeclListNoTransform

        public List<BodyDecl> getBodyDeclListNoTransform()
        Retrieves the BodyDecl list.

        This method does not invoke AST transformations.

        Overrides:
        getBodyDeclListNoTransform in class InterfaceDecl
        Returns:
        The node representing the BodyDecl list.
      • setSuperInterfaceIdList

        public void setSuperInterfaceIdList​(List<Access> list)
        Replaces the SuperInterfaceId list.
        Overrides:
        setSuperInterfaceIdList in class InterfaceDecl
        Parameters:
        list - The new list node to be used as the SuperInterfaceId list.
      • getNumSuperInterfaceId

        public int getNumSuperInterfaceId()
        Retrieves the number of children in the SuperInterfaceId list.
        Overrides:
        getNumSuperInterfaceId in class InterfaceDecl
        Returns:
        Number of children in the SuperInterfaceId list.
      • getNumSuperInterfaceIdNoTransform

        public int getNumSuperInterfaceIdNoTransform()
        Retrieves the number of children in the SuperInterfaceId list. Calling this method will not trigger rewrites..
        Overrides:
        getNumSuperInterfaceIdNoTransform in class InterfaceDecl
        Returns:
        Number of children in the SuperInterfaceId list.
      • getSuperInterfaceId

        public Access getSuperInterfaceId​(int i)
        Retrieves the element at index i in the SuperInterfaceId list..
        Overrides:
        getSuperInterfaceId in class InterfaceDecl
        Parameters:
        i - Index of the element to return.
        Returns:
        The element at position i in the SuperInterfaceId list.
      • addSuperInterfaceId

        public void addSuperInterfaceId​(Access node)
        Append an element to the SuperInterfaceId list.
        Overrides:
        addSuperInterfaceId in class InterfaceDecl
        Parameters:
        node - The element to append to the SuperInterfaceId list.
      • setSuperInterfaceId

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

        public List<Access> getSuperInterfaceIds()
        Retrieves the SuperInterfaceId list.
        Overrides:
        getSuperInterfaceIds in class InterfaceDecl
        Returns:
        The node representing the SuperInterfaceId list.
      • getSuperInterfaceIdsNoTransform

        public List<Access> getSuperInterfaceIdsNoTransform()
        Retrieves the SuperInterfaceId list.

        This method does not invoke AST transformations.

        Overrides:
        getSuperInterfaceIdsNoTransform in class InterfaceDecl
        Returns:
        The node representing the SuperInterfaceId list.
      • getSuperInterfaceIdListNoTransform

        public List<Access> getSuperInterfaceIdListNoTransform()
        Retrieves the SuperInterfaceId list.

        This method does not invoke AST transformations.

        Overrides:
        getSuperInterfaceIdListNoTransform in class InterfaceDecl
        Returns:
        The node representing the SuperInterfaceId list.
      • getSuperInterfaceIdListChildPosition

        protected int getSuperInterfaceIdListChildPosition()
        Retrieves the child position of the SuperInterfaceId list.
        Returns:
        The the child position of the SuperInterfaceId list.
      • getSuperInterfaceIdList

        public List getSuperInterfaceIdList()
        Description copied from class: InterfaceDecl
        Retrieves the SuperInterfaceId list.
        Overrides:
        getSuperInterfaceIdList in class InterfaceDecl
        Returns:
        The node representing the SuperInterfaceId list.
      • containsElementOf

        public boolean containsElementOf​(TypeDecl typeDecl)