public String inherit(final Set<Element> members, TypeRef name) throws Exception { if (name.isObject()) { if (OBJECT.isEmpty()) { Clazz c = analyzer.findClass(name);
public String inherit(final Set<Element> members, TypeRef name) throws Exception { if (name.isObject()) { if (OBJECT.isEmpty()) { Clazz c = analyzer.findClass(name);
public String inherit(final Set<Element> members, TypeRef name) throws Exception { if (name.isObject()) { if (OBJECT.isEmpty()) { Clazz c = analyzer.findClass(name);
if (!(className.isObject() || isModule())) { throw new IOException("Class does not have a super class and is not java.lang.Object or module-info");
if (!(className.isObject() || isModule())) { throw new IOException("Class does not have a super class and is not java.lang.Object or module-info");
private void getCovariantReturns(Collection<Element> elements, TypeRef type, String generics) throws Exception { if (type == null || type.isObject()) return;
private void getCovariantReturns(Collection<Element> elements, TypeRef type) throws Exception { if (type == null || type.isObject()) return;
private void getCovariantReturns(Collection<Element> elements, TypeRef type, String generics) throws Exception { if (type == null || type.isObject()) return;
public String inherit(final Set<Element> members, TypeRef name) throws Exception { if (name.isObject()) { if (OBJECT.isEmpty()) { Clazz c = analyzer.findClass(name);
public String inherit(final Set<Element> members, TypeRef name) throws Exception { if (name.isObject()) { if (OBJECT.isEmpty()) { Clazz c = analyzer.findClass(name);
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); } }
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); } }
@Override public void extendsClass(TypeRef name) throws Exception { String comment = null; if (!clazz.isInterface()) comment = inherit(members, name); Clazz c = analyzer.findClass(name); if ((c == null || c.isPublic()) && !name.isObject()) members.add(new Element(Type.EXTENDS, name.getFQN(), null, MICRO, MAJOR, comment)); }
@Override public void extendsClass(TypeRef name) throws Exception { String comment = null; if (!clazz.isInterface()) comment = inherit(members, name); Clazz c = analyzer.findClass(name); if ((c == null || c.isPublic()) && !name.isObject()) members.add(new Element(Type.EXTENDS, name.getFQN(), null, MICRO, MAJOR, comment)); }
@Override public void extendsClass(TypeRef name) throws Exception { String comment = null; if (!clazz.isInterface()) comment = inherit(members, name); Clazz c = analyzer.findClass(name); if ((c == null || c.isPublic()) && !name.isObject()) members.add(new Element(EXTENDS, name.getFQN(), null, MICRO, MAJOR, comment)); }
@Override public void extendsClass(TypeRef name) throws Exception { String comment = null; if (!clazz.isInterface()) comment = inherit(members, name); Clazz c = analyzer.findClass(name); if ((c == null || c.isPublic()) && !name.isObject()) members.add(new Element(EXTENDS, name.getFQN(), null, MICRO, MAJOR, comment)); }
@Override public void extendsClass(TypeRef name) throws Exception { String comment = null; if (!clazz.isInterface()) comment = inherit(members, name); Clazz c = analyzer.findClass(name); if ((c == null || c.isPublic()) && !name.isObject()) members.add(new Element(Type.EXTENDS, name.getFQN(), null, MICRO, MAJOR, comment)); }