- public final int add(byte op, Object arg) { if(capacity == size) grow(); set(size,op,arg); return size++; }
- public final int add(byte op, boolean arg) { if(capacity == size) grow(); set(size,op,arg); return size++; }
- public final int add(byte op, int arg) { if(capacity == size) grow(); set(size,op,arg); return size++; }
+ /** Adds a bytecode, <i>op</i>, with argument <i>arg</i> to the method
+ @return The position of the new bytecode
+ */
+ public final int add(byte op, Object arg) { if(capacity == size) grow(); set(size, op, arg); return size++; }
+ /** Adds a bytecode with a boolean argument - equivalent to add(op, arg?1:0);
+ @return The position of the new bytecode
+ @see #add(byte, int)
+ */
+ public final int add(byte op, boolean arg) { if(capacity == size) grow(); set(size, op, arg); return size++; }
+ /** Adds a bytecode with an integer argument. This is equivalent to add(op, new Integer(arg)), but optimized to prevent the allocation when possible
+ @return The position of the new bytecode
+ @see #add(byte, Object)
+ */
+ public final int add(byte op, int arg) { if(capacity == size) grow(); set(size, op, arg); return size++; }