soot.javaToJimple
Class CastInsertionVisitor

java.lang.Object
  extended by polyglot.visit.NodeVisitor
      extended by polyglot.visit.HaltingVisitor
          extended by polyglot.visit.ErrorHandlingVisitor
              extended by polyglot.visit.ContextVisitor
                  extended by polyglot.visit.AscriptionVisitor
                      extended by soot.javaToJimple.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
CastInsertionVisitor(polyglot.frontend.Job job, polyglot.types.TypeSystem ts, polyglot.ast.NodeFactory nf)
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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