private Element getReturn(TypeRef type) { if (!type.isPrimitive()) { return type.isObject() ? OBJECT_R : new Element(RETURN, type.getFQN()); } switch (type.getBinary() .charAt(0)) { case 'V' : return VOID_R; case 'Z' : return BOOLEAN_R; case 'S' : return SHORT_R; case 'I' : return INT_R; case 'B' : return BYTE_R; case 'C' : return CHAR_R; case 'J' : return LONG_R; case 'F' : return FLOAT_R; case 'D' : return DOUBLE_R; default : throw new IllegalArgumentException("Unknown primitive " + type); } }
.getClassRef(); if (!type.isPrimitive()) { if (Class.class.getName() .equals(type.getFQN())) { isClass = true; } else { if (r.isAnnotation()) { analyzer.warning("Nested annotation type found in field %s, %s", defined.getName(), type.getFQN()); return;
/** * Set location information for a type. */ public void setTypeLocation(SetLocation location, TypeRef type) throws Exception { String sf = getSourceFileFor(type); if (sf != null) { File sff = IO.getFile(sf); if (sff != null) { String names[] = { type.getShorterName(), type.getFQN(), type.getShortName() .replace('$', '.') }; for (String name : names) { FileLine fl = Processor.findHeader(sff, Pattern.compile("(class|interface)\\s*" + name, Pattern.DOTALL)); if (fl != null) fl.set(location); } } location.file(sf); } }
return instr.matches(getClassName().getDottedOnly()) ^ instr.isNegated();
.getPath(); if (!calculatedPath.equals(relativePath)) { classspace.put(clazz.getClassName(), clazz); PackageRef packageRef = clazz.getClassName() .getPackageRef(); learnPackage(jar, prefix, packageRef, contained);
if (instr.matches(getClassName().getDottedOnly())) return !instr.isNegated(); return false; if (instr.matches(interfaces[i].getDottedOnly())) return !instr.isNegated(); return false; if (instr.matches(zuper.getDottedOnly())) return !instr.isNegated(); break; if (instr.matches(annotation.getFQN())) return !instr.isNegated();
return instr.matches(getClassName().getDottedOnly()) ^ instr.isNegated();
if (instr.matches(getClassName().getDottedOnly())) return !instr.isNegated(); return false; if (instr.matches(interfaces[i].getDottedOnly())) return !instr.isNegated(); return false; if (instr.matches(zuper.getDottedOnly())) return !instr.isNegated(); break; if (instr.matches(annotation.getFQN())) return !instr.isNegated();
PackageRef packageRef = typeRef.getPackageRef(); String sourcePath = typeRef.getSourcePath(); String packagePath = packageRef.getPath();
PackageRef packageRef = typeRef.getPackageRef(); String sourcePath = typeRef.getSourcePath(); String packagePath = packageRef.getPath();
if (instr.matches(getClassName().getDottedOnly())) return !instr.isNegated(); return false; if (instr.matches(interfaces[i].getDottedOnly())) return !instr.isNegated(); return false; if (instr.matches(zuper.getDottedOnly())) return !instr.isNegated(); break; if (instr.matches(annotation.getFQN())) return !instr.isNegated();
PackageRef packageRef = typeRef.getPackageRef(); String sourcePath = typeRef.getSourcePath(); String packagePath = packageRef.getPath();
PackageRef packageRef = typeRef.getPackageRef(); String sourcePath = typeRef.getSourcePath(); String packagePath = packageRef.getPath();
Class<?> typeClass = null; TypeRef type = defined.getType() .getClassRef(); if (!type.isPrimitive()) { if (type == analyzer.getTypeRef("java/lang/Class")) { isClass = true; analyzer .warning("Nested annotation type found in member %s, %s", name, type.getFQN()) .details(details); return; } else { analyzer .exception(e, "Exception looking at annotation %s applied to type %s", typeRef.getFQN(), className.getFQN()) .details(details); typeClass = wrappers.get(type.getFQN());
PackageRef packageRef = typeRef.getPackageRef(); String sourcePath = typeRef.getSourcePath(); String packagePath = packageRef.getPath();
.getClassRef(); if (!type.isPrimitive()) { if (Class.class.getName() .equals(type.getFQN())) { isClass = true; } else { if (r.isAnnotation()) { analyzer.warning("Nested annotation type found in field %s, %s", defined.getName(), type.getFQN()); return;
TypeRef type = defined.getType().getClassRef(); if (!type.isPrimitive()) { if (type == m_analyzer.getTypeRef("java/lang/Class")) { isClass = true; if (r.isAnnotation()) { m_logger.warn("Nested annotation type found in member %s, %s", defined.getName(), type.getFQN()); return; m_logger.debug("PropertyType: type.getFQN()=%s", type.getFQN()); typeClass = m_types.get(type.getFQN());
TypeRef type = defined.getType().getClassRef(); if (!type.isPrimitive()) { if (Class.class.getName().equals(type.getFQN())) { isClass = true; } else { Clazz r = analyzer.findClass(type); if (r.isAnnotation()) { analyzer.warning("Nested annotation type found in field % s, %s", defined.getName(), type.getFQN()); return; } else if ("char".equals(type.getFQN())) { isCharacter = true;
next.setProperty("@class", current.getFQN()); next.setProperty("@class-short", current.getClassName() .getShortName()); PackageRef pref = current.getClassName() .getPackageRef(); next.setProperty("@package", pref.getFQN()); Attrs info = analyzer.getClasspathExports()
TypeRef type = defined.getType().getClassRef(); if (!type.isPrimitive()) { if (Class.class.getName().equals(type.getFQN())) { isClass = true; } else { Clazz r = analyzer.findClass(type); if (r.isAnnotation()) { analyzer.warning("Nested annotation type found in field % s, %s", defined.getName(), type.getFQN()); return; } else if ("char".equals(type.getFQN())) { isCharacter = true;