private void checkPrototype(Prototype proto) { checkDescriptor(proto.getReturnType().getDescriptor()); StdTypeList args = proto.getParameterTypes(); for (int i = 0; i < args.size(); i++) { checkDescriptor(args.get(i).getDescriptor()); } } private void checkDescriptor(String typeDescriptor) {
private void addDependencies(ConstantPool pool) { for (Constant constant : pool.getEntries()) { if (constant instanceof CstType) { checkDescriptor(((CstType) constant).getClassType()); } else if (constant instanceof CstFieldRef) { checkDescriptor(((CstFieldRef) constant).getType()); } else if (constant instanceof CstMethodRef) { Prototype proto = ((CstMethodRef) constant).getPrototype(); checkDescriptor(proto.getReturnType()); StdTypeList args = proto.getParameterTypes(); for (int i = 0; i < args.size(); i++) { checkDescriptor(args.get(i)); } } } }
/** {@inheritDoc} */ public int getWordCount() { int sz = size(); int result = 0; for (int i = 0; i < sz; i++) { result += get(i).getCategory(); } return result; }
/** {@inheritDoc} */ public int getWordCount() { int sz = size(); int result = 0; for (int i = 0; i < sz; i++) { result += get(i).getCategory(); } return result; }
/** {@inheritDoc} */ @Override public int getWordCount() { int sz = size(); int result = 0; for (int i = 0; i < sz; i++) { result += get(i).getCategory(); } return result; }
/** {@inheritDoc} */ public int getWordCount() { int sz = size(); int result = 0; for (int i = 0; i < sz; i++) { result += get(i).getCategory(); } return result; }
/** {@inheritDoc} */ public int getWordCount() { int sz = size(); int result = 0; for (int i = 0; i < sz; i++) { result += get(i).getCategory(); } return result; }
/** {@inheritDoc} */ public int getWordCount() { int sz = size(); int result = 0; for (int i = 0; i < sz; i++) { result += get(i).getCategory(); } return result; }
/** {@inheritDoc} */ @Override public int getWordCount() { int sz = size(); int result = 0; for (int i = 0; i < sz; i++) { result += get(i).getCategory(); } return result; }
/** {@inheritDoc} */ public int getWordCount() { int sz = size(); int result = 0; for (int i = 0; i < sz; i++) { result += get(i).getCategory(); } return result; }
/** * Initialize this frame with the method's parameters. Used for the first * frame. * * @param params Type list of method parameters. */ public void initializeWithParameters(StdTypeList params) { int at = 0; int sz = params.size(); for (int i = 0; i < sz; i++) { Type one = params.get(i); locals.set(at, one); at += one.getCategory(); } }
/** {@inheritDoc} */ public TypeList withAddedType(Type type) { int sz = size(); StdTypeList result = new StdTypeList(sz + 1); for (int i = 0; i < sz; i++) { result.set0(i, get0(i)); } result.set(sz, type); result.setImmutable(); return result; }
/** {@inheritDoc} */ public TypeList withAddedType(Type type) { int sz = size(); StdTypeList result = new StdTypeList(sz + 1); for (int i = 0; i < sz; i++) { result.set0(i, get0(i)); } result.set(sz, type); result.setImmutable(); return result; }
/** {@inheritDoc} */ @Override public TypeList withAddedType(Type type) { int sz = size(); StdTypeList result = new StdTypeList(sz + 1); for (int i = 0; i < sz; i++) { result.set0(i, get0(i)); } result.set(sz, type); result.setImmutable(); return result; }
/** {@inheritDoc} */ public TypeList withAddedType(Type type) { int sz = size(); StdTypeList result = new StdTypeList(sz + 1); for (int i = 0; i < sz; i++) { result.set0(i, get0(i)); } result.set(sz, type); result.setImmutable(); return result; }
/** {@inheritDoc} */ public TypeList withAddedType(Type type) { int sz = size(); StdTypeList result = new StdTypeList(sz + 1); for (int i = 0; i < sz; i++) { result.set0(i, get0(i)); } result.set(sz, type); result.setImmutable(); return result; }
/** {@inheritDoc} */ public TypeList withAddedType(Type type) { int sz = size(); StdTypeList result = new StdTypeList(sz + 1); for (int i = 0; i < sz; i++) { result.set0(i, get0(i)); } result.set(sz, type); result.setImmutable(); return result; }
/** {@inheritDoc} */ @Override public TypeList withAddedType(Type type) { int sz = size(); StdTypeList result = new StdTypeList(sz + 1); for (int i = 0; i < sz; i++) { result.set0(i, get0(i)); } result.set(sz, type); result.setImmutable(); return result; }
/** {@inheritDoc} */ public TypeList withAddedType(Type type) { int sz = size(); StdTypeList result = new StdTypeList(sz + 1); for (int i = 0; i < sz; i++) { result.set0(i, get0(i)); } result.set(sz, type); result.setImmutable(); return result; }
private void checkPrototype(Prototype proto) { checkDescriptor(proto.getReturnType().getDescriptor()); StdTypeList args = proto.getParameterTypes(); for (int i = 0; i < args.size(); i++) { checkDescriptor(args.get(i).getDescriptor()); } }