Package soot.JastAddJ

Class RawClassDecl

    • Field Detail

      • getArgumentList_computed

        protected boolean getArgumentList_computed
      • getArgumentList_value

        protected List getArgumentList_value
      • subtype_TypeDecl_values

        protected Map subtype_TypeDecl_values
      • instanceOf_TypeDecl_values

        protected Map instanceOf_TypeDecl_values
    • Constructor Detail

      • RawClassDecl

        public RawClassDecl()
    • Method Detail

      • fullCopy

        public RawClassDecl 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 ParClassDecl
        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 ParClassDecl
      • setModifiers

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

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

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

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

        public void setSuperClassAccessOpt​(Opt<Access> opt)
        Replaces the optional node for the SuperClassAccess child. This is the Opt node containing the child SuperClassAccess, not the actual child!
        Overrides:
        setSuperClassAccessOpt in class ParClassDecl
        Parameters:
        opt - The new node to be used as the optional node for the SuperClassAccess child.
      • hasSuperClassAccess

        public boolean hasSuperClassAccess()
        Check whether the optional SuperClassAccess child exists.
        Overrides:
        hasSuperClassAccess in class ParClassDecl
        Returns:
        true if the optional SuperClassAccess child exists, false if it does not.
      • getSuperClassAccess

        public Access getSuperClassAccess()
        Retrieves the (optional) SuperClassAccess child.
        Overrides:
        getSuperClassAccess in class ParClassDecl
        Returns:
        The SuperClassAccess child, if it exists. Returns null otherwise.
      • setSuperClassAccess

        public void setSuperClassAccess​(Access node)
        Replaces the (optional) SuperClassAccess child.
        Overrides:
        setSuperClassAccess in class ParClassDecl
        Parameters:
        node - The new node to be used as the SuperClassAccess child.
      • getSuperClassAccessOptNoTransform

        public Opt<Access> getSuperClassAccessOptNoTransform()
        Retrieves the optional node for child SuperClassAccess. This is the Opt node containing the child SuperClassAccess, not the actual child!

        This method does not invoke AST transformations.

        Overrides:
        getSuperClassAccessOptNoTransform in class ParClassDecl
        Returns:
        The optional node for child SuperClassAccess.
      • getSuperClassAccessOptChildPosition

        protected int getSuperClassAccessOptChildPosition()
        Retrieves the child position of the optional child SuperClassAccess.
        Overrides:
        getSuperClassAccessOptChildPosition in class ParClassDecl
        Returns:
        The the child position of the optional child SuperClassAccess.
      • setImplementsList

        public void setImplementsList​(List<Access> list)
        Replaces the Implements list.
        Overrides:
        setImplementsList in class ParClassDecl
        Parameters:
        list - The new list node to be used as the Implements list.
      • getNumImplements

        public int getNumImplements()
        Retrieves the number of children in the Implements list.
        Overrides:
        getNumImplements in class ParClassDecl
        Returns:
        Number of children in the Implements list.
      • getNumImplementsNoTransform

        public int getNumImplementsNoTransform()
        Retrieves the number of children in the Implements list. Calling this method will not trigger rewrites..
        Overrides:
        getNumImplementsNoTransform in class ParClassDecl
        Returns:
        Number of children in the Implements list.
      • getImplements

        public Access getImplements​(int i)
        Retrieves the element at index i in the Implements list..
        Overrides:
        getImplements in class ParClassDecl
        Parameters:
        i - Index of the element to return.
        Returns:
        The element at position i in the Implements list.
      • addImplements

        public void addImplements​(Access node)
        Append an element to the Implements list.
        Overrides:
        addImplements in class ParClassDecl
        Parameters:
        node - The element to append to the Implements list.
      • setImplements

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

        public List<Access> getImplementss()
        Retrieves the Implements list.
        Overrides:
        getImplementss in class ParClassDecl
        Returns:
        The node representing the Implements list.
      • getImplementssNoTransform

        public List<Access> getImplementssNoTransform()
        Retrieves the Implements list.

        This method does not invoke AST transformations.

        Overrides:
        getImplementssNoTransform in class ParClassDecl
        Returns:
        The node representing the Implements list.
      • getImplementsListNoTransform

        public List<Access> getImplementsListNoTransform()
        Retrieves the Implements list.

        This method does not invoke AST transformations.

        Overrides:
        getImplementsListNoTransform in class ParClassDecl
        Returns:
        The node representing the Implements list.
      • getImplementsListChildPosition

        protected int getImplementsListChildPosition()
        Retrieves the child position of the Implements list.
        Overrides:
        getImplementsListChildPosition in class ParClassDecl
        Returns:
        The the child position of the Implements list.
      • setBodyDeclList

        public void setBodyDeclList​(List<BodyDecl> list)
        Replaces the BodyDecl list.
        Overrides:
        setBodyDeclList in class ParClassDecl
        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 ParClassDecl
        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 ParClassDecl
        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 ParClassDecl
        Parameters:
        i - Index of the element to return.
        Returns:
        The element at position i in 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 ParClassDecl
        Parameters:
        node - The new node to replace the old list element.
        i - The list index of the node to be replaced.
      • getBodyDecls

        public List<BodyDecl> getBodyDecls()
        Retrieves the BodyDecl list.
        Overrides:
        getBodyDecls in class ParClassDecl
        Returns:
        The node representing the BodyDecl list.
      • getBodyDeclsNoTransform

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

        This method does not invoke AST transformations.

        Overrides:
        getBodyDeclsNoTransform in class ParClassDecl
        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 ParClassDecl
        Returns:
        The node representing the BodyDecl list.
      • getBodyDeclListChildPosition

        protected int getBodyDeclListChildPosition()
        Retrieves the child position of the BodyDecl list.
        Overrides:
        getBodyDeclListChildPosition in class ParClassDecl
        Returns:
        The the child position of the BodyDecl list.
      • setArgumentList

        public void setArgumentList​(List<Access> list)
        Replaces the Argument list.
        Overrides:
        setArgumentList in class ParClassDecl
        Parameters:
        list - The new list node to be used as the Argument list.
      • getNumArgument

        public int getNumArgument()
        Retrieves the number of children in the Argument list.
        Specified by:
        getNumArgument in interface ParTypeDecl
        Overrides:
        getNumArgument in class ParClassDecl
        Returns:
        Number of children in the Argument list.
      • getNumArgumentNoTransform

        public int getNumArgumentNoTransform()
        Retrieves the number of children in the Argument list. Calling this method will not trigger rewrites..
        Overrides:
        getNumArgumentNoTransform in class ParClassDecl
        Returns:
        Number of children in the Argument list.
      • getArgument

        public Access getArgument​(int i)
        Retrieves the element at index i in the Argument list..
        Specified by:
        getArgument in interface ParTypeDecl
        Overrides:
        getArgument in class ParClassDecl
        Parameters:
        i - Index of the element to return.
        Returns:
        The element at position i in the Argument list.
      • addArgument

        public void addArgument​(Access node)
        Append an element to the Argument list.
        Overrides:
        addArgument in class ParClassDecl
        Parameters:
        node - The element to append to the Argument list.
      • setArgument

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

        public List<Access> getArguments()
        Retrieves the Argument list.
        Overrides:
        getArguments in class ParClassDecl
        Returns:
        The node representing the Argument list.
      • getArgumentsNoTransform

        public List<Access> getArgumentsNoTransform()
        Retrieves the Argument list.

        This method does not invoke AST transformations.

        Overrides:
        getArgumentsNoTransform in class ParClassDecl
        Returns:
        The node representing the Argument list.
      • getArgumentListNoTransform

        public List<Access> getArgumentListNoTransform()
        Retrieves the Argument list.

        This method does not invoke AST transformations.

        Overrides:
        getArgumentListNoTransform in class ParClassDecl
        Returns:
        The node representing the Argument list.
      • getArgumentListChildPosition

        protected int getArgumentListChildPosition()
        Retrieves the child position of the Argument list.
        Returns:
        The the child position of the Argument list.
      • getArgumentList

        public List getArgumentList()
        Description copied from class: ParClassDecl
        Retrieves the Argument list.
        Overrides:
        getArgumentList in class ParClassDecl
        Returns:
        The node representing the Argument list.