/** * returns true if the descriptor represents a long or a double */ public static boolean isWide(String descriptor) { if (!isPrimitive(descriptor)) { return false; } char c = descriptor.charAt(0); if (c == 'D' || c == 'J') { return true; } return false; }
/** * returns true if the descriptor represents a long or a double */ public static boolean isWide(String descriptor) { if (!isPrimitive(descriptor)) { return false; } char c = descriptor.charAt(0); if (c == 'D' || c == 'J') { return true; } return false; }
/** * returns true if the descriptor represents a long or a double */ public static boolean isWide(String descriptor) { if (!isPrimitive(descriptor)) { return false; } char c = descriptor.charAt(0); if (c == 'D' || c == 'J') { return true; } return false; }
/** * returns true if the descriptor represents a long or a double */ public static boolean isWide(String descriptor) { if (!isPrimitive(descriptor)) { return false; } char c = descriptor.charAt(0); if (c == 'D' || c == 'J') { return true; } return false; }
/** * returns true if the descriptor represents a long or a double */ public static boolean isWide(String descriptor) { if (!isPrimitive(descriptor)) { return false; } char c = descriptor.charAt(0); if (c == 'D' || c == 'J') { return true; } return false; }
public static StackEntry of(String descriptor, ConstPool pool) { String desc = descriptor.replace('.', '/'); if(!DescriptorUtils.isPrimitive(desc)) { return new StackEntry(StackEntryType.OBJECT, desc, pool); }else { char ret = desc.charAt(0); switch (ret) { case 'I': case 'Z': case 'S': case 'B': case 'C': return new StackEntry(StackEntryType.INT, desc); case 'F': return new StackEntry(StackEntryType.FLOAT, desc); case 'D': return new StackEntry(StackEntryType.DOUBLE, desc); case 'J': return new StackEntry(StackEntryType.LONG, desc); } } throw new RuntimeException("Unknown descriptor: " + desc); }
public static StackEntry of(String descriptor, ConstPool pool) { String desc = descriptor.replace('.', '/'); if(!DescriptorUtils.isPrimitive(desc)) { return new StackEntry(StackEntryType.OBJECT, desc, pool); }else { char ret = desc.charAt(0); switch (ret) { case 'I': case 'Z': case 'S': case 'B': case 'C': return new StackEntry(StackEntryType.INT, desc); case 'F': return new StackEntry(StackEntryType.FLOAT, desc); case 'D': return new StackEntry(StackEntryType.DOUBLE, desc); case 'J': return new StackEntry(StackEntryType.LONG, desc); } } throw new RuntimeException("Unknown descriptor: " + desc); }
public static StackEntry of(String descriptor, ConstPool pool) { String desc = descriptor.replace('.', '/'); if(!DescriptorUtils.isPrimitive(desc)) { return new StackEntry(StackEntryType.OBJECT, desc, pool); }else { char ret = desc.charAt(0); switch (ret) { case 'I': case 'Z': case 'S': case 'B': case 'C': return new StackEntry(StackEntryType.INT, desc); case 'F': return new StackEntry(StackEntryType.FLOAT, desc); case 'D': return new StackEntry(StackEntryType.DOUBLE, desc); case 'J': return new StackEntry(StackEntryType.LONG, desc); } } throw new RuntimeException("Unknown descriptor: " + desc); }
public static StackEntry of(String descriptor, ConstPool pool) { String desc = descriptor.replace('.', '/'); if(!DescriptorUtils.isPrimitive(desc)) { return new StackEntry(StackEntryType.OBJECT, desc, pool); }else { char ret = desc.charAt(0); switch (ret) { case 'I': case 'Z': case 'S': case 'B': case 'C': return new StackEntry(StackEntryType.INT, desc); case 'F': return new StackEntry(StackEntryType.FLOAT, desc); case 'D': return new StackEntry(StackEntryType.DOUBLE, desc); case 'J': return new StackEntry(StackEntryType.LONG, desc); } } throw new RuntimeException("Unknown descriptor: " + desc); }
public static StackEntry of(String descriptor, ConstPool pool) { if(!DescriptorUtils.isPrimitive(descriptor)) { return new StackEntry(StackEntryType.OBJECT, descriptor, pool); }else { char ret = descriptor.charAt(0); switch (ret) { case 'I': case 'Z': case 'S': case 'B': case 'C': return new StackEntry(StackEntryType.INT, descriptor); case 'F': return new StackEntry(StackEntryType.FLOAT, descriptor); case 'D': return new StackEntry(StackEntryType.DOUBLE, descriptor); case 'J': return new StackEntry(StackEntryType.LONG, descriptor); } } throw new RuntimeException("Unknown descriptor: " + descriptor); }
} else if (isPrimitive(methodInfo.getReturnType())) { Boxing.unbox(b, classMethod.getReturnType()); b.returnInstruction();
} else if (isPrimitive(methodInfo.getReturnType())) { Boxing.unbox(b, classMethod.getReturnType()); b.returnInstruction();
} else if (isPrimitive(methodInfo.getReturnType())) { Boxing.unbox(b, classMethod.getReturnType()); b.returnInstruction();
} else if (isPrimitive(methodInfo.getReturnType())) { Boxing.unbox(b, classMethod.getReturnType()); b.returnInstruction();
} else if (isPrimitive(methodInfo.getReturnType())) { Boxing.unbox(b, classMethod.getReturnType()); b.returnInstruction();
} else if (isPrimitive(methodInfo.getReturnType())) { Boxing.unbox(b, classMethod.getReturnType()); b.returnInstruction();
} else if (isPrimitive(methodInfo.getReturnType())) { Boxing.unbox(b, classMethod.getReturnType()); b.returnInstruction();
} else if (isPrimitive(methodInfo.getReturnType())) { Boxing.unbox(b, classMethod.getReturnType()); b.returnInstruction();
} else if (isPrimitive(methodInfo.getReturnType())) { Boxing.unbox(b, classMethod.getReturnType()); b.returnInstruction();
if (methodInfo.getReturnType().equals(BytecodeUtils.VOID_CLASS_DESCRIPTOR)) { } else if (isPrimitive(methodInfo.getReturnType())) { Boxing.unbox(b, methodInfo.getReturnType()); } else {