Class CastInsertionVisitor

  • All Implemented Interfaces:
    Cloneable, polyglot.util.Copy

    public class CastInsertionVisitor
    extends polyglot.visit.AscriptionVisitor
    • Field Summary

      • Fields inherited from class polyglot.visit.ContextVisitor

        context
      • Fields inherited from class polyglot.visit.ErrorHandlingVisitor

        error, job, nf, ts
    • Constructor Summary

      Constructors 
      Constructor Description
      CastInsertionVisitor​(polyglot.frontend.Job job, polyglot.types.TypeSystem ts, polyglot.ast.NodeFactory nf)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      polyglot.ast.Expr ascribe​(polyglot.ast.Expr e, polyglot.types.Type toType)  
      polyglot.ast.Node leaveCall​(polyglot.ast.Node old, polyglot.ast.Node n, polyglot.visit.NodeVisitor v)  
      • Methods inherited from class polyglot.visit.AscriptionVisitor

        enterCall, pop, toType
      • Methods inherited from class polyglot.visit.ContextVisitor

        addDecls, begin, context, context, enter, enterScope, leave, superEnter
      • Methods inherited from class polyglot.visit.ErrorHandlingVisitor

        catchErrors, enterCall, enterError, errorQueue, job, leaveCall, nodeFactory, typeSystem
      • Methods inherited from class polyglot.visit.HaltingVisitor

        bypass, bypass, bypassChildren, copy, override, visitChildren
      • Methods inherited from class polyglot.visit.NodeVisitor

        enter, finish, finish, leave, override, toString, visitEdge
    • Constructor Detail

      • CastInsertionVisitor

        public CastInsertionVisitor​(polyglot.frontend.Job job,
                                    polyglot.types.TypeSystem ts,
                                    polyglot.ast.NodeFactory nf)
    • Method Detail

      • ascribe

        public polyglot.ast.Expr ascribe​(polyglot.ast.Expr e,
                                         polyglot.types.Type toType)
        Overrides:
        ascribe in class polyglot.visit.AscriptionVisitor
      • leaveCall

        public polyglot.ast.Node leaveCall​(polyglot.ast.Node old,
                                           polyglot.ast.Node n,
                                           polyglot.visit.NodeVisitor v)
                                    throws polyglot.types.SemanticException
        Overrides:
        leaveCall in class polyglot.visit.AscriptionVisitor
        Throws:
        polyglot.types.SemanticException