protected void addInterfaceLines(NonreflectiveMethodDefinition method, InterfacePolicy policy) { method.addLine("// Interface Properties."); if (policy.isInterfaceChildDescriptor()) { for (Iterator<String> interfacesEnum = policy.getParentInterfaceNames().iterator(); interfacesEnum.hasNext();) { String parentInterfaceName = interfacesEnum.next(); method.addLine("descriptor.getInterfacePolicy().addParentInterface(" + parentInterfaceName + ".class);"); } } }
protected void addInterfaceLines(NonreflectiveMethodDefinition method, InterfacePolicy policy) { method.addLine("// Interface Properties."); if (policy.isInterfaceChildDescriptor()) { for (Iterator<String> interfacesEnum = policy.getParentInterfaceNames().iterator(); interfacesEnum.hasNext();) { String parentInterfaceName = interfacesEnum.next(); method.addLine("descriptor.getInterfacePolicy().addParentInterface(" + parentInterfaceName + ".class);"); } } }
/** * INTERNAL: * Return if the descriptor defines inheritance and is a child. */ public boolean isInterfaceChildDescriptor() { return hasInterfacePolicy() && getInterfacePolicy().isInterfaceChildDescriptor(); }
protected void addInterfaceLines(NonreflectiveMethodDefinition method, InterfacePolicy policy) { method.addLine("// Interface Properties."); if (policy.isInterfaceChildDescriptor()) { for (Enumeration interfacesEnum = policy.getParentInterfaceNames().elements(); interfacesEnum.hasMoreElements();) { String parentInterfaceName = (String)interfacesEnum.nextElement(); method.addLine("descriptor.getInterfacePolicy().addParentInterface(" + parentInterfaceName + ".class);"); } } }
/** * INTERNAL: * Return if the descriptor defines inheritance and is a child. */ public boolean isInterfaceChildDescriptor() { return hasInterfacePolicy() && getInterfacePolicy().isInterfaceChildDescriptor(); }
/** * INTERNAL: * Return if the descriptor defines inheritance and is a child. */ public boolean isInterfaceChildDescriptor() { return hasInterfacePolicy() && getInterfacePolicy().isInterfaceChildDescriptor(); }