void doExceptions(DataInputStream in, int access_flags) throws IOException { int exception_count = in.readUnsignedShort(); for (int i = 0; i < exception_count; i++) { int index = in.readUnsignedShort(); if (api != null && (Modifier.isPublic(access_flags) || Modifier.isProtected(access_flags))) { ClassConstant cc = (ClassConstant) pool[index]; String descr = (String) pool[cc.cname]; TypeRef clazz = analyzer.getTypeRef(descr); referTo(clazz, access_flags); } } }
void doExceptions(DataInput in, int access_flags) throws IOException { int exception_count = in.readUnsignedShort(); for (int i = 0; i < exception_count; i++) { int index = in.readUnsignedShort(); ClassConstant cc = (ClassConstant) pool[index]; TypeRef clazz = analyzer.getTypeRef(cc.getName()); referTo(clazz, access_flags); } }
void doExceptions(DataInputStream in, int access_flags) throws IOException { int exception_count = in.readUnsignedShort(); for (int i = 0; i < exception_count; i++) { int index = in.readUnsignedShort(); ClassConstant cc = (ClassConstant) pool[index]; TypeRef clazz = analyzer.getTypeRef(cc.getName()); referTo(clazz, access_flags); } }
void doExceptions(DataInput in, int access_flags) throws IOException { int exception_count = in.readUnsignedShort(); for (int i = 0; i < exception_count; i++) { int index = in.readUnsignedShort(); ClassConstant cc = (ClassConstant) pool[index]; TypeRef clazz = analyzer.getTypeRef(cc.getName()); referTo(clazz, access_flags); } }
void doExceptions(DataInputStream in, int access_flags) throws IOException { int exception_count = in.readUnsignedShort(); for (int i = 0; i < exception_count; i++) { int index = in.readUnsignedShort(); ClassConstant cc = (ClassConstant) pool[index]; TypeRef clazz = analyzer.getTypeRef(cc.getName()); referTo(clazz, access_flags); } }
private void classConstRef(int lastReference) { Object o = pool[lastReference]; if (o == null) return; if (o instanceof ClassConstant) { ClassConstant cc = (ClassConstant) o; if (cc.referred) return; cc.referred = true; String name = cc.getName(); if (name != null) { TypeRef tr = analyzer.getTypeRef(name); referTo(tr, 0); } } } }
private void classConstRef(int lastReference) { Object o = pool[lastReference]; if (o == null) return; if (o instanceof ClassConstant) { ClassConstant cc = (ClassConstant) o; if (cc.referred) return; cc.referred = true; String name = cc.getName(); if (name != null) { TypeRef tr = analyzer.getTypeRef(name); referTo(tr, 0); } } } }
private void classConstRef(int index) { Object o = pool[index]; if (o == null) { return; } if (o instanceof ClassConstant) { ClassConstant cc = (ClassConstant) o; if (cc.referred) { return; } cc.referred = true; String name = cc.getName(); if (name != null) { TypeRef tr = analyzer.getTypeRef(name); referTo(tr, 0); } } }
private void classConstRef(int index) { Object o = pool[index]; if (o == null) { return; } if (o instanceof ClassConstant) { ClassConstant cc = (ClassConstant) o; if (cc.referred) { return; } cc.referred = true; String name = cc.getName(); if (name != null) { TypeRef tr = analyzer.getTypeRef(name); referTo(tr, 0); } } }
referTo(type_index, 0); hasRuntimeAnnotations = true; if (api != null && (Modifier.isPublic(access_flags) || Modifier.isProtected(access_flags)))
int type_name_index = in.readUnsignedShort(); if (policy == RetentionPolicy.RUNTIME) { referTo(type_name_index, 0); // field descriptor if (api != null && (Modifier.isPublic(access_flags) || Modifier.isProtected(access_flags))) { TypeRef name = analyzer.getTypeRef((String) pool[type_name_index]); TypeRef name = analyzer.getTypeRef((String) pool[class_info_index]); if (policy == RetentionPolicy.RUNTIME) { referTo(name, 0); if (api != null && (Modifier.isPublic(access_flags) || Modifier.isProtected(access_flags))) { api.add(name.getPackageRef());
referTo(type_index, 0); hasRuntimeAnnotations = true; if (api != null && (Modifier.isPublic(access_flags) || Modifier.isProtected(access_flags)))
referTo(type_index, 0); hasRuntimeAnnotations = true; if (api != null && (Modifier.isPublic(access_flags) || Modifier.isProtected(access_flags)))
int type_name_index = in.readUnsignedShort(); if (policy == RetentionPolicy.RUNTIME) { referTo(type_name_index, 0); if (api != null && (Modifier.isPublic(access_flags) || Modifier.isProtected(access_flags))) { TypeRef name = analyzer.getTypeRef((String) pool[type_name_index]); int class_info_index = in.readUnsignedShort(); if (policy == RetentionPolicy.RUNTIME) { referTo(class_info_index, 0); if (api != null && (Modifier.isPublic(access_flags) || Modifier.isProtected(access_flags))) { TypeRef name = analyzer.getTypeRef((String) pool[class_info_index]);
cd.addReference(ref); referTo(ref, modifiers); } else { if ("+-*BCDFIJSZV".indexOf(c) < 0)
cd.addReference(ref); referTo(ref, modifiers); } else { if ("+-*BCDFIJSZV".indexOf(c) < 0)
cd.addReference(ref); referTo(ref, modifiers); } else { if ("+-*BCDFIJSZV".indexOf(c) < 0)
/** * This method parses method or field descriptors and calls * {@link #referTo(TypeRef, int)} for any types found therein. * * @param descriptor The to be parsed descriptor * @param modifiers * @see "https://docs.oracle.com/javase/specs/jvms/se9/html/jvms-4.html#jvms-4.3" */ public void parseDescriptor(String descriptor, int modifiers) { char c = descriptor.charAt(0); if (c != '(' && c != 'L' && c != '[' && c != '<' && c != 'T') { return; } Signature sig = (c == '(' || c == '<') ? analyzer.getMethodSignature(descriptor) : analyzer.getFieldSignature(descriptor); Set<String> binaryRefs = sig.erasedBinaryReferences(); for (String binary : binaryRefs) { TypeRef ref = analyzer.getTypeRef(binary); if (cd != null) { cd.addReference(ref); } referTo(ref, modifiers); } }
/** * This method parses method or field descriptors and calls * {@link #referTo(TypeRef, int)} for any types found therein. * * @param descriptor The to be parsed descriptor * @param modifiers * @see "https://docs.oracle.com/javase/specs/jvms/se9/html/jvms-4.html#jvms-4.3" */ public void parseDescriptor(String descriptor, int modifiers) { char c = descriptor.charAt(0); if (c != '(' && c != 'L' && c != '[' && c != '<' && c != 'T') { return; } Signature sig = (c == '(' || c == '<') ? analyzer.getMethodSignature(descriptor) : analyzer.getFieldSignature(descriptor); Set<String> binaryRefs = sig.erasedBinaryReferences(); for (String binary : binaryRefs) { TypeRef ref = analyzer.getTypeRef(binary); if (cd != null) { cd.addReference(ref); } referTo(ref, modifiers); } }
cd.addReference(ref); referTo(ref, access_flags);