/** * Loads the given variable of primitive type onto the stack. * * Operand stack: * ... -> ..., value * * @param variableIndex the index of the variable to be loaded. * @param internalType the primitive type of the variable to be loaded. */ public CompactCodeAttributeComposer load(int variableIndex, char internalType) { switch (internalType) { case TYPE_BOOLEAN: case TYPE_BYTE: case TYPE_CHAR: case TYPE_SHORT: case TYPE_INT: return iload(variableIndex); case TYPE_LONG: return lload(variableIndex); case TYPE_FLOAT: return fload(variableIndex); case TYPE_DOUBLE: return dload(variableIndex); default: return aload(variableIndex); } }
/** * Loads the given variable of primitive type onto the stack. * * Operand stack: * ... -> ..., value * * @param variableIndex the index of the variable to be loaded. * @param internalType the primitive type of the variable to be loaded. */ public CompactCodeAttributeComposer load(int variableIndex, char internalType) { switch (internalType) { case TYPE_BOOLEAN: case TYPE_BYTE: case TYPE_CHAR: case TYPE_SHORT: case TYPE_INT: return iload(variableIndex); case TYPE_LONG: return lload(variableIndex); case TYPE_FLOAT: return fload(variableIndex); case TYPE_DOUBLE: return dload(variableIndex); default: return aload(variableIndex); } }
/** * Loads the given variable of primitive type onto the stack. * * Operand stack: * ... -> ..., value * * @param variableIndex the index of the variable to be loaded. * @param internalType the primitive type of the variable to be loaded. */ public CompactCodeAttributeComposer load(int variableIndex, char internalType) { switch (internalType) { case TYPE_BOOLEAN: case TYPE_BYTE: case TYPE_CHAR: case TYPE_SHORT: case TYPE_INT: return iload(variableIndex); case TYPE_LONG: return lload(variableIndex); case TYPE_FLOAT: return fload(variableIndex); case TYPE_DOUBLE: return dload(variableIndex); default: return aload(variableIndex); } }