Jode 1.90-CVS
Build Aug 6, 2004

net.sf.jode.flow
Class CreateCheckNull

java.lang.Object
  extended bynet.sf.jode.flow.CreateCheckNull

public class CreateCheckNull
extends java.lang.Object


Constructor Summary
CreateCheckNull()
           
 
Method Summary
static boolean transformJavac(InstructionContainer ic, StructuredBlock last)
          Transforms the code DUP POP.getClass() to a CheckNullOperator.
static boolean transformJikes(IfThenElseBlock ifBlock, StructuredBlock last)
          Transforms the code DUP if (POP == null) { throw null } to a CheckNullOperator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateCheckNull

public CreateCheckNull()
Method Detail

transformJavac

public static boolean transformJavac(InstructionContainer ic,
                                     StructuredBlock last)
Transforms the code
   DUP
   POP.getClass()
 
to a CheckNullOperator. This is what javac generates when it calls ".new" on an operand.


transformJikes

public static boolean transformJikes(IfThenElseBlock ifBlock,
                                     StructuredBlock last)
Transforms the code
   DUP
   if (POP == null) {
       throw null
   }
 
to a CheckNullOperator. This is what jikes generates when it calls ".new" on an operand.


Jode 1.90-CVS
Build Aug 6, 2004

Copyright © 1998-2004 by Jochen Hoenicke.