Package soot.JastAddJ

Class Annotation

    • Field Detail

      • decl_computed

        protected boolean decl_computed
      • decl_value

        protected TypeDecl decl_value
    • Method Detail

      • fullCopy

        public Annotation 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 Modifier
        Returns:
        dangling copy of the subtree at this node
      • checkModifiers

        public void checkModifiers()
      • appendAsAttributeTo

        public void appendAsAttributeTo​(Collection list)
      • 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 Modifier
      • setID

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

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

        public void setAccess​(Access node)
        Replaces the Access child.
        Parameters:
        node - The new node to replace the Access child.
      • getAccess

        public Access getAccess()
        Retrieves the Access child.
        Returns:
        The current node used as the Access child.
      • getAccessNoTransform

        public Access getAccessNoTransform()
        Retrieves the Access child.

        This method does not invoke AST transformations.

        Returns:
        The current node used as the Access child.
      • setElementValuePairList

        public void setElementValuePairList​(List<ElementValuePair> list)
        Replaces the ElementValuePair list.
        Parameters:
        list - The new list node to be used as the ElementValuePair list.
      • getNumElementValuePair

        public int getNumElementValuePair()
        Retrieves the number of children in the ElementValuePair list.
        Returns:
        Number of children in the ElementValuePair list.
      • getNumElementValuePairNoTransform

        public int getNumElementValuePairNoTransform()
        Retrieves the number of children in the ElementValuePair list. Calling this method will not trigger rewrites..
        Returns:
        Number of children in the ElementValuePair list.
      • getElementValuePair

        public ElementValuePair getElementValuePair​(int i)
        Retrieves the element at index i in the ElementValuePair list..
        Parameters:
        i - Index of the element to return.
        Returns:
        The element at position i in the ElementValuePair list.
      • addElementValuePair

        public void addElementValuePair​(ElementValuePair node)
        Append an element to the ElementValuePair list.
        Parameters:
        node - The element to append to the ElementValuePair list.
      • addElementValuePairNoTransform

        public void addElementValuePairNoTransform​(ElementValuePair node)
      • setElementValuePair

        public void setElementValuePair​(ElementValuePair node,
                                        int i)
        Replaces the ElementValuePair 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.
      • getElementValuePairs

        public List<ElementValuePair> getElementValuePairs()
        Retrieves the ElementValuePair list.
        Returns:
        The node representing the ElementValuePair list.
      • getElementValuePairsNoTransform

        public List<ElementValuePair> getElementValuePairsNoTransform()
        Retrieves the ElementValuePair list.

        This method does not invoke AST transformations.

        Returns:
        The node representing the ElementValuePair list.
      • getElementValuePairList

        public List<ElementValuePair> getElementValuePairList()
        Retrieves the ElementValuePair list.
        Returns:
        The node representing the ElementValuePair list.
      • getElementValuePairListNoTransform

        public List<ElementValuePair> getElementValuePairListNoTransform()
        Retrieves the ElementValuePair list.

        This method does not invoke AST transformations.

        Returns:
        The node representing the ElementValuePair list.
      • checkOverride

        public void checkOverride()
      • isMetaAnnotation

        public boolean isMetaAnnotation()
      • mayUseAnnotationTarget

        public boolean mayUseAnnotationTarget​(String name)
      • enclosingBodyDecl

        public BodyDecl enclosingBodyDecl()