/** * Returns all interfaces implemented by a bean that are eligible to be view interfaces * * @param beanClass The bean class * @return A collection of all potential view interfaces */ static Set<DotName> getPotentialViewInterfaces(ClassInfo beanClass) { DotName[] interfaces = beanClass.interfaces(); if (interfaces == null) { return Collections.emptySet(); } final Set<DotName> names = new HashSet<DotName>(); for (DotName dotName : interfaces) { String name = dotName.toString(); // EJB 3.1 FR 4.9.7 bullet 5.3 // & FR 5.4.2 if (name.equals(Serializable.class.getName()) || name.equals(Externalizable.class.getName()) || name.startsWith("javax.ejb.") || name.startsWith("groovy.lang.")) { continue; } names.add(dotName); } return names; } }
if (fromClassInfo.interfaces() != null) { for (DotName interfaceName : fromClassInfo.interfaces()) { if (isAssignableTo(interfaceName, to)) { return true;
/** * Returns all interfaces implemented by a bean that are eligible to be view interfaces * * @param beanClass The bean class * @return A collection of all potential view interfaces */ static Set<DotName> getPotentialViewInterfaces(ClassInfo beanClass) { DotName[] interfaces = beanClass.interfaces(); if (interfaces == null) { return Collections.emptySet(); } final Set<DotName> names = new HashSet<DotName>(); for (DotName dotName : interfaces) { String name = dotName.toString(); // EJB 3.1 FR 4.9.7 bullet 5.3 // & FR 5.4.2 if (name.equals(Serializable.class.getName()) || name.equals(Externalizable.class.getName()) || name.startsWith("javax.ejb.")) { continue; } names.add(dotName); } return names; } }
if (fromClassInfo.interfaces() != null) { for (DotName interfaceName : fromClassInfo.interfaces()) { if (isAssignableTo(interfaceName, to)) { return true;
addSubClasses( ci.superName(), ci ); if ( ci.interfaces() != null && ci.interfaces().length > 0 ) { addImplementors( ci.interfaces(), ci );
addSubClasses( ci.superName(), ci ); if ( ci.interfaces() != null && ci.interfaces().length > 0 ) { addImplementors( ci.interfaces(), ci );
if ( annClassInfo != null ) { superName = annClassInfo.superName(); interfaces = annClassInfo.interfaces(); access_flag = annClassInfo.flags();
if ( annClassInfo != null ) { superName = annClassInfo.superName(); interfaces = annClassInfo.interfaces(); access_flag = annClassInfo.flags();
addClassName(clazz.superName()); for (DotName intf: clazz.interfaces()) addClassName(intf);
DotName[] interfaces = clazz.interfaces(); stream.writePackedU32(interfaces.length); for (DotName intf: interfaces)