Package soot.JastAddJ

Class EnumConstant

    • Field Detail

      • getTypeAccess_computed

        protected boolean getTypeAccess_computed
      • getTypeAccess_value

        protected Access getTypeAccess_value
      • localMethodsSignatureMap_computed

        protected boolean localMethodsSignatureMap_computed
      • localMethodsSignatureMap_value

        protected HashMap localMethodsSignatureMap_value
    • Method Detail

      • fullCopy

        public EnumConstant 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 FieldDeclaration
        Returns:
        dangling copy of the subtree at this node
      • getNumBodyDecl

        public int getNumBodyDecl()
      • getBodyDecl

        public BodyDecl getBodyDecl​(int i)
      • 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 FieldDeclaration
      • setModifiers

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

        public Modifiers getModifiersNoTransform()
        Retrieves the Modifiers child.

        This method does not invoke AST transformations.

        Overrides:
        getModifiersNoTransform in class FieldDeclaration
        Returns:
        The current node used as the Modifiers child.
      • setID

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

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

        public void setArgList​(List<Expr> list)
        Replaces the Arg list.
        Parameters:
        list - The new list node to be used as the Arg list.
      • getNumArg

        public int getNumArg()
        Retrieves the number of children in the Arg list.
        Returns:
        Number of children in the Arg list.
      • getNumArgNoTransform

        public int getNumArgNoTransform()
        Retrieves the number of children in the Arg list. Calling this method will not trigger rewrites..
        Returns:
        Number of children in the Arg list.
      • getArg

        public Expr getArg​(int i)
        Retrieves the element at index i in the Arg list..
        Parameters:
        i - Index of the element to return.
        Returns:
        The element at position i in the Arg list.
      • addArg

        public void addArg​(Expr node)
        Append an element to the Arg list.
        Parameters:
        node - The element to append to the Arg list.
      • addArgNoTransform

        public void addArgNoTransform​(Expr node)
      • setArg

        public void setArg​(Expr node,
                           int i)
        Replaces the Arg 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.
      • getArgs

        public List<Expr> getArgs()
        Retrieves the Arg list.
        Returns:
        The node representing the Arg list.
      • getArgsNoTransform

        public List<Expr> getArgsNoTransform()
        Retrieves the Arg list.

        This method does not invoke AST transformations.

        Returns:
        The node representing the Arg list.
      • getArgList

        public List<Expr> getArgList()
        Retrieves the Arg list.
        Returns:
        The node representing the Arg list.
      • getArgListNoTransform

        public List<Expr> getArgListNoTransform()
        Retrieves the Arg list.

        This method does not invoke AST transformations.

        Returns:
        The node representing the Arg list.
      • setInitOpt

        public void setInitOpt​(Opt<Expr> opt)
        Replaces the optional node for the Init child. This is the Opt node containing the child Init, not the actual child!
        Overrides:
        setInitOpt in class FieldDeclaration
        Parameters:
        opt - The new node to be used as the optional node for the Init child.
      • hasInit

        public boolean hasInit()
        Check whether the optional Init child exists.
        Specified by:
        hasInit in interface Variable
        Overrides:
        hasInit in class FieldDeclaration
        Returns:
        true if the optional Init child exists, false if it does not.
      • getInit

        public Expr getInit()
        Retrieves the (optional) Init child.
        Specified by:
        getInit in interface Variable
        Overrides:
        getInit in class FieldDeclaration
        Returns:
        The Init child, if it exists. Returns null otherwise.
      • setInit

        public void setInit​(Expr node)
        Replaces the (optional) Init child.
        Overrides:
        setInit in class FieldDeclaration
        Parameters:
        node - The new node to be used as the Init child.
      • getInitOptNoTransform

        public Opt<Expr> getInitOptNoTransform()
        Retrieves the optional node for child Init. This is the Opt node containing the child Init, not the actual child!

        This method does not invoke AST transformations.

        Overrides:
        getInitOptNoTransform in class FieldDeclaration
        Returns:
        The optional node for child Init.
      • setTypeAccess

        public void setTypeAccess​(Access node)
        Replaces the TypeAccess child.
        Overrides:
        setTypeAccess in class FieldDeclaration
        Parameters:
        node - The new node to replace the TypeAccess child.
      • getTypeAccessNoTransform

        public Access getTypeAccessNoTransform()
        Retrieves the TypeAccess child.

        This method does not invoke AST transformations.

        Overrides:
        getTypeAccessNoTransform in class FieldDeclaration
        Returns:
        The current node used as the TypeAccess child.
      • getTypeAccessChildPosition

        protected int getTypeAccessChildPosition()
        Retrieves the child position of the optional child TypeAccess.
        Returns:
        The the child position of the optional child TypeAccess.
      • localMethodsSignature

        public SimpleSet localMethodsSignature​(String signature)
      • localMethodsSignatureMap

        public HashMap localMethodsSignatureMap()
      • implementsMethod

        public boolean implementsMethod​(MethodDecl method)