Package soot.JastAddJ

Class CastExpr

    • Field Detail

      • type_computed

        protected boolean type_computed
      • type_value

        protected TypeDecl type_value
    • Constructor Detail

      • CastExpr

        public CastExpr()
      • CastExpr

        public CastExpr​(Access p0,
                        Expr p1)
    • Method Detail

      • flushCache

        public void flushCache()
        Overrides:
        flushCache in class Expr
      • fullCopy

        public CastExpr 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
      • checkWarnings

        public void checkWarnings()
        Description copied from class: ASTNode
        Checking of the SafeVarargs annotation is only needed for method declarations.
        Overrides:
        checkWarnings in class ASTNode<ASTNode>
      • 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 Expr
      • numChildren

        protected int numChildren()
        Overrides:
        numChildren in class Expr
      • mayHaveRewrite

        public boolean mayHaveRewrite()
        Overrides:
        mayHaveRewrite in class Expr
      • 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.
      • setExpr

        public void setExpr​(Expr node)
        Replaces the Expr child.
        Parameters:
        node - The new node to replace the Expr child.
      • getExpr

        public Expr getExpr()
        Retrieves the Expr child.
        Returns:
        The current node used as the Expr child.
      • getExprNoTransform

        public Expr getExprNoTransform()
        Retrieves the Expr child.

        This method does not invoke AST transformations.

        Returns:
        The current node used as the Expr child.
      • isConstant

        public boolean isConstant()
        Overrides:
        isConstant in class Expr
      • isSuperAccess

        public boolean isSuperAccess()
        Overrides:
        isSuperAccess in class Expr
      • isThisAccess

        public boolean isThisAccess()
        Overrides:
        isThisAccess in class Expr
      • withinSuppressWarnings

        public boolean withinSuppressWarnings​(String s)