private static int generatePushParam(ClassFileWriter cfw,int paramOffset,Class<?> paramType){
  if (!paramType.isPrimitive()) {
    cfw.addALoad(paramOffset);
    return 1;
  }
  String typeName=paramType.getName();
switch (typeName.charAt(0)) {
case 'z':
case 'b':
case 'c':
case 's':
case 'i':
    cfw.addILoad(paramOffset);
  return 1;
case 'l':
cfw.addLLoad(paramOffset);
return 2;
case 'f':
cfw.addFLoad(paramOffset);
return 1;
case 'd':
cfw.addDLoad(paramOffset);
return 2;
}
throw Kit.codeBug();
}

private static int generatePushParam ( ClassFileWriter cfw , int paramOffset , Class < ? > paramType ) { if ( ! paramType . isPrimitive ( ) ) { cfw . addALoad ( paramOffset ) ; return 1 ; } String typeName = paramType . getName ( ) ; switch ( typeName . charAt ( 0 ) ) { case 'z' : case 'b' : case 'c' : case 's' : case 'i' : cfw . addILoad ( paramOffset ) ; return 1 ; case 'l' : cfw . addLLoad ( paramOffset ) ; return 2 ; case 'f' : cfw . addFLoad ( paramOffset ) ; return 1 ; case 'd' : cfw . addDLoad ( paramOffset ) ; return 2 ; } throw Kit . codeBug ( ) ; }
generates code to push typed parameters onto the operand stack prior to a direct java method call .
