00001 package de.fub.bytecode.generic;
00002
00003 import java.io.*;
00004
00005
00006
00007
00008
00009
00010
00011
00012 public class NEW extends CPInstruction implements LoadClass, AllocationInstruction, ExceptionThrower {
00013
00014
00015
00016
00017 NEW() {}
00018 public NEW(int index) {
00019 super(NEW, index);
00020 }
00021 public Class[] getExceptions(){
00022 Class[] cs = new Class[2 + EXCS_CLASS_AND_INTERFACE_RESOLUTION.length];
00023
00024 System.arraycopy(EXCS_CLASS_AND_INTERFACE_RESOLUTION, 0,
00025 cs, 0, EXCS_CLASS_AND_INTERFACE_RESOLUTION.length);
00026 cs[EXCS_CLASS_AND_INTERFACE_RESOLUTION.length-1] = INSTANTIATION_ERROR;
00027 cs[EXCS_CLASS_AND_INTERFACE_RESOLUTION.length] = ILLEGAL_ACCESS_ERROR;
00028 return cs;
00029 }
00030 }