Package soot.JastAddJ

Class ByteType

    • Field Detail

      • narrowingConversionTo_TypeDecl_values

        protected Map narrowingConversionTo_TypeDecl_values
      • unaryNumericPromotion_computed

        protected boolean unaryNumericPromotion_computed
      • unaryNumericPromotion_value

        protected TypeDecl unaryNumericPromotion_value
      • boxed_computed

        protected boolean boxed_computed
      • boxed_value

        protected TypeDecl boxed_value
      • jvmName_computed

        protected boolean jvmName_computed
      • jvmName_value

        protected String jvmName_value
      • getSootType_computed

        protected boolean getSootType_computed
      • getSootType_value

        protected Type getSootType_value
    • Method Detail

      • fullCopy

        public ByteType 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 PrimitiveType
        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 IntegralType
      • setModifiers

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

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

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

        public String getID()
        Retrieves the value for the lexeme ID.
        Overrides:
        getID in class IntegralType
        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 IntegralType
        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 IntegralType
        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 IntegralType
        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 IntegralType
        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 IntegralType
        Returns:
        The optional node for child SuperClassAccess.
      • setBodyDeclList

        public void setBodyDeclList​(List<BodyDecl> list)
        Replaces the BodyDecl list.
        Overrides:
        setBodyDeclList in class IntegralType
        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 IntegralType
        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 IntegralType
        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 IntegralType
        Parameters:
        i - Index of the element to return.
        Returns:
        The element at position i in the BodyDecl list.
      • addBodyDecl

        public void addBodyDecl​(BodyDecl node)
        Append an element to the BodyDecl list.
        Overrides:
        addBodyDecl in class IntegralType
        Parameters:
        node - The element to append to 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 IntegralType
        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 IntegralType
        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 IntegralType
        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 IntegralType
        Returns:
        The node representing the BodyDecl list.
      • isByte

        public boolean isByte()
        Overrides:
        isByte in class TypeDecl