Package soot.JastAddJ

Class ParTypeAccess

    • Field Detail

      • type_computed

        protected boolean type_computed
      • type_value

        protected TypeDecl type_value
    • Constructor Detail

      • ParTypeAccess

        public ParTypeAccess()
    • Method Detail

      • fullCopy

        public ParTypeAccess 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 ASTNode<ASTNode>
        Returns:
        dangling copy of the subtree at this node
      • isRaw

        public boolean isRaw()
      • 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 Access
      • setTypeAccess

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

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

        public Access getTypeAccessNoTransform()
        Retrieves the TypeAccess child.

        This method does not invoke AST transformations.

        Returns:
        The current node used as the TypeAccess child.
      • 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.
      • genericDecl

        public TypeDecl genericDecl()
      • isTypeAccess

        public boolean isTypeAccess()
        Overrides:
        isTypeAccess in class Expr
      • substituted

        public Access substituted​(Collection<TypeVariable> original,
                                  List<TypeVariable> substitution)
        Builds a copy of this Access node where all occurrences of type variables in the original type parameter list have been replaced by the substitution type parameters.
        Overrides:
        substituted in class Access
        Returns:
        the substituted Access node