/** * Stores the primitve value on top of the stack in the variable with given * index. * * Operand stack: * ..., value -> ... * * @param variableIndex the index of the variable where to store the * value. * @param internalType the primitive type of the value to be stored. */ public CompactCodeAttributeComposer store(int variableIndex, char internalType) { switch (internalType) { case TYPE_BOOLEAN: case TYPE_BYTE: case TYPE_CHAR: case TYPE_SHORT: case TYPE_INT: return istore(variableIndex); case TYPE_LONG: return lstore(variableIndex); case TYPE_FLOAT: return fstore(variableIndex); case TYPE_DOUBLE: return dstore(variableIndex); default: return astore(variableIndex); } }
/** * Stores the primitve value on top of the stack in the variable with given * index. * * Operand stack: * ..., value -> ... * * @param variableIndex the index of the variable where to store the * value. * @param internalType the primitive type of the value to be stored. */ public CompactCodeAttributeComposer store(int variableIndex, char internalType) { switch (internalType) { case TYPE_BOOLEAN: case TYPE_BYTE: case TYPE_CHAR: case TYPE_SHORT: case TYPE_INT: return istore(variableIndex); case TYPE_LONG: return lstore(variableIndex); case TYPE_FLOAT: return fstore(variableIndex); case TYPE_DOUBLE: return dstore(variableIndex); default: return astore(variableIndex); } }
/** * Stores the primitve value on top of the stack in the variable with given * index. * * Operand stack: * ..., value -> ... * * @param variableIndex the index of the variable where to store the * value. * @param internalType the primitive type of the value to be stored. */ public CompactCodeAttributeComposer store(int variableIndex, char internalType) { switch (internalType) { case TYPE_BOOLEAN: case TYPE_BYTE: case TYPE_CHAR: case TYPE_SHORT: case TYPE_INT: return istore(variableIndex); case TYPE_LONG: return lstore(variableIndex); case TYPE_FLOAT: return fstore(variableIndex); case TYPE_DOUBLE: return dstore(variableIndex); default: return astore(variableIndex); } }