Package soot.JastAddJ

Class ResourceModifiers

  • All Implemented Interfaces:
    Cloneable, Iterable<ASTNode>

    public class ResourceModifiers
    extends Modifiers
    implements Cloneable
    Subclass of Modifiers for resource declarations. This subclass is added as a convenient method of making resource declarations implicitly final.
    • Field Detail

      • isFinal_computed

        protected boolean isFinal_computed
      • isFinal_value

        protected boolean isFinal_value
    • Constructor Detail

      • ResourceModifiers

        public ResourceModifiers()
      • ResourceModifiers

        public ResourceModifiers​(List<Modifier> p0)
    • Method Detail

      • fullCopy

        public ResourceModifiers 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 Modifiers
        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 Modifiers
      • setModifierList

        public void setModifierList​(List<Modifier> list)
        Replaces the Modifier list.
        Overrides:
        setModifierList in class Modifiers
        Parameters:
        list - The new list node to be used as the Modifier list.
      • getNumModifier

        public int getNumModifier()
        Retrieves the number of children in the Modifier list.
        Overrides:
        getNumModifier in class Modifiers
        Returns:
        Number of children in the Modifier list.
      • getNumModifierNoTransform

        public int getNumModifierNoTransform()
        Retrieves the number of children in the Modifier list. Calling this method will not trigger rewrites..
        Overrides:
        getNumModifierNoTransform in class Modifiers
        Returns:
        Number of children in the Modifier list.
      • getModifier

        public Modifier getModifier​(int i)
        Retrieves the element at index i in the Modifier list..
        Overrides:
        getModifier in class Modifiers
        Parameters:
        i - Index of the element to return.
        Returns:
        The element at position i in the Modifier list.
      • addModifier

        public void addModifier​(Modifier node)
        Append an element to the Modifier list.
        Overrides:
        addModifier in class Modifiers
        Parameters:
        node - The element to append to the Modifier list.
      • setModifier

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

        public List<Modifier> getModifiers()
        Retrieves the Modifier list.
        Overrides:
        getModifiers in class Modifiers
        Returns:
        The node representing the Modifier list.
      • getModifiersNoTransform

        public List<Modifier> getModifiersNoTransform()
        Retrieves the Modifier list.

        This method does not invoke AST transformations.

        Overrides:
        getModifiersNoTransform in class Modifiers
        Returns:
        The node representing the Modifier list.
      • getModifierList

        public List<Modifier> getModifierList()
        Retrieves the Modifier list.
        Overrides:
        getModifierList in class Modifiers
        Returns:
        The node representing the Modifier list.
      • getModifierListNoTransform

        public List<Modifier> getModifierListNoTransform()
        Retrieves the Modifier list.

        This method does not invoke AST transformations.

        Overrides:
        getModifierListNoTransform in class Modifiers
        Returns:
        The node representing the Modifier list.