00001 package de.fub.bytecode.generic;
00002
00003 import de.fub.bytecode.Constants;
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 public class PUTSTATIC extends FieldInstruction implements ExceptionThrower {
00015
00016
00017
00018
00019 PUTSTATIC() {}
00020 public PUTSTATIC(int index) {
00021 super(Constants.PUTSTATIC, index);
00022 }
00023 public int consumeStack(ConstantPoolGen cpg) { return getFieldSize(cpg); }
00024 public Class[] getExceptions(){
00025 Class[] cs = new Class[1 + EXCS_FIELD_AND_METHOD_RESOLUTION.length];
00026
00027 System.arraycopy(EXCS_FIELD_AND_METHOD_RESOLUTION, 0,
00028 cs, 0, EXCS_FIELD_AND_METHOD_RESOLUTION.length);
00029 cs[EXCS_FIELD_AND_METHOD_RESOLUTION.length] = INCOMPATIBLE_CLASS_CHANGE_ERROR;
00030
00031 return cs;
00032 }
00033 }