/** * Creates the short-form of the given prototype. * * @param prototype {@code non-null;} the prototype * @return {@code non-null;} the short form */ private static CstString makeShortForm(Prototype prototype) { StdTypeList parameters = prototype.getParameterTypes(); int size = parameters.size(); StringBuilder sb = new StringBuilder(size + 1); sb.append(shortFormCharFor(prototype.getReturnType())); for (int i = 0; i < size; i++) { sb.append(shortFormCharFor(parameters.getType(i))); } return new CstString(sb.toString()); }
/** * Creates the short-form of the given prototype. * * @param prototype {@code non-null;} the prototype * @return {@code non-null;} the short form */ private static CstString makeShortForm(Prototype prototype) { StdTypeList parameters = prototype.getParameterTypes(); int size = parameters.size(); StringBuilder sb = new StringBuilder(size + 1); sb.append(shortFormCharFor(prototype.getReturnType())); for (int i = 0; i < size; i++) { sb.append(shortFormCharFor(parameters.getType(i))); } return new CstString(sb.toString()); }
/** * Creates the short-form of the given prototype. * * @param prototype {@code non-null;} the prototype * @return {@code non-null;} the short form */ private static CstString makeShortForm(Prototype prototype) { StdTypeList parameters = prototype.getParameterTypes(); int size = parameters.size(); StringBuilder sb = new StringBuilder(size + 1); sb.append(shortFormCharFor(prototype.getReturnType())); for (int i = 0; i < size; i++) { sb.append(shortFormCharFor(parameters.getType(i))); } return new CstString(sb.toString()); }
/** * Creates the short-form of the given prototype. * * @param prototype {@code non-null;} the prototype * @return {@code non-null;} the short form */ private static CstUtf8 makeShortForm(Prototype prototype) { StdTypeList parameters = prototype.getParameterTypes(); int size = parameters.size(); StringBuilder sb = new StringBuilder(size + 1); sb.append(shortFormCharFor(prototype.getReturnType())); for (int i = 0; i < size; i++) { sb.append(shortFormCharFor(parameters.getType(i))); } return new CstUtf8(sb.toString()); }
/** * Creates the short-form of the given prototype. * * @param prototype {@code non-null;} the prototype * @return {@code non-null;} the short form */ private static CstString makeShortForm(Prototype prototype) { StdTypeList parameters = prototype.getParameterTypes(); int size = parameters.size(); StringBuilder sb = new StringBuilder(size + 1); sb.append(shortFormCharFor(prototype.getReturnType())); for (int i = 0; i < size; i++) { sb.append(shortFormCharFor(parameters.getType(i))); } return new CstString(sb.toString()); }
/** * Creates the short-form of the given prototype. * * @param prototype {@code non-null;} the prototype * @return {@code non-null;} the short form */ private static CstString makeShortForm(Prototype prototype) { StdTypeList parameters = prototype.getParameterTypes(); int size = parameters.size(); StringBuilder sb = new StringBuilder(size + 1); sb.append(shortFormCharFor(prototype.getReturnType())); for (int i = 0; i < size; i++) { sb.append(shortFormCharFor(parameters.getType(i))); } return new CstString(sb.toString()); }
/** * Creates the short-form of the given prototype. * * @param prototype {@code non-null;} the prototype * @return {@code non-null;} the short form */ private static CstString makeShortForm(Prototype prototype) { StdTypeList parameters = prototype.getParameterTypes(); int size = parameters.size(); StringBuilder sb = new StringBuilder(size + 1); sb.append(shortFormCharFor(prototype.getReturnType())); for (int i = 0; i < size; i++) { sb.append(shortFormCharFor(parameters.getType(i))); } return new CstString(sb.toString()); }
/** * Creates the short-form of the given prototype. * * @param prototype {@code non-null;} the prototype * @return {@code non-null;} the short form */ private static CstString makeShortForm(Prototype prototype) { StdTypeList parameters = prototype.getParameterTypes(); int size = parameters.size(); StringBuilder sb = new StringBuilder(size + 1); sb.append(shortFormCharFor(prototype.getReturnType())); for (int i = 0; i < size; i++) { sb.append(shortFormCharFor(parameters.getType(i))); } return new CstString(sb.toString()); }
/** {@inheritDoc} */ public void popArgs(Frame frame, Prototype prototype) { StdTypeList types = prototype.getParameterTypes(); int size = types.size(); // Use the above method to do the actual popping... popArgs(frame, size); // ...and then verify the popped types. for (int i = 0; i < size; i++) { if (! Merger.isPossiblyAssignableFrom(types.getType(i), args[i])) { throw new SimException("at stack depth " + (size - 1 - i) + ", expected type " + types.getType(i).toHuman() + " but found " + args[i].getType().toHuman()); } } }
/** {@inheritDoc} */ public void popArgs(Frame frame, Prototype prototype) { StdTypeList types = prototype.getParameterTypes(); int size = types.size(); // Use the above method to do the actual popping... popArgs(frame, size); // ...and then verify the popped types. for (int i = 0; i < size; i++) { if (! Merger.isPossiblyAssignableFrom(types.getType(i), args[i])) { throw new SimException("at stack depth " + (size - 1 - i) + ", expected type " + types.getType(i).toHuman() + " but found " + args[i].getType().toHuman()); } } }
/** {@inheritDoc} */ public void popArgs(Frame frame, Prototype prototype) { StdTypeList types = prototype.getParameterTypes(); int size = types.size(); // Use the above method to do the actual popping... popArgs(frame, size); // ...and then verify the popped types. for (int i = 0; i < size; i++) { if (! Merger.isPossiblyAssignableFrom(types.getType(i), args[i])) { throw new SimException("at stack depth " + (size - 1 - i) + ", expected type " + types.getType(i).toHuman() + " but found " + args[i].getType().toHuman()); } } }
/** {@inheritDoc} */ @Override public void popArgs(Frame frame, Prototype prototype) { StdTypeList types = prototype.getParameterTypes(); int size = types.size(); // Use the above method to do the actual popping... popArgs(frame, size); // ...and then verify the popped types. for (int i = 0; i < size; i++) { if (! Merger.isPossiblyAssignableFrom(types.getType(i), args[i])) { throw new SimException("at stack depth " + (size - 1 - i) + ", expected type " + types.getType(i).toHuman() + " but found " + args[i].getType().toHuman()); } } }
/** {@inheritDoc} */ public void popArgs(Frame frame, Prototype prototype) { StdTypeList types = prototype.getParameterTypes(); int size = types.size(); // Use the above method to do the actual popping... popArgs(frame, size); // ...and then verify the popped types. for (int i = 0; i < size; i++) { if (! Merger.isPossiblyAssignableFrom(types.getType(i), args[i])) { throw new SimException("at stack depth " + (size - 1 - i) + ", expected type " + types.getType(i).toHuman() + " but found " + args[i].getType().toHuman()); } } }
/** {@inheritDoc} */ @Override public void popArgs(Frame frame, Prototype prototype) { StdTypeList types = prototype.getParameterTypes(); int size = types.size(); // Use the above method to do the actual popping... popArgs(frame, size); // ...and then verify the popped types. for (int i = 0; i < size; i++) { if (! Merger.isPossiblyAssignableFrom(types.getType(i), args[i])) { throw new SimException("at stack depth " + (size - 1 - i) + ", expected type " + types.getType(i).toHuman() + " but found " + args[i].getType().toHuman()); } } }
sb.append(", "); sb.append(params.getType(i).toHuman());
sb.append(", "); sb.append(params.getType(i).toHuman());
sb.append(", "); sb.append(params.getType(i).toHuman());
sb.append(", "); sb.append(params.getType(i).toHuman());
sb.append(", "); sb.append(params.getType(i).toHuman());
sb.append(", "); sb.append(params.getType(i).toHuman());