private void debugAttributesDefined(Appendable appendable, int level) { attributesDefined.getAttributes().stream().filter(att -> !getLocalTypeOptional(att.getNameSimple()) .isPresent()).forEach(att -> { try { pad(appendable, level + 1).append("att ").append(suppressPackage(att.getName())) .append(':').append(suppressPackage(att.getSuperType().getName())).append( att.isSelfReference() ? " SELF" : "").append('\n'); } catch (IOException ex) { LOGGER.log(Level.SEVERE, ex.getMessage(), ex); } }); }
private void debugAttributesDefined(Appendable appendable, int level) { AttributeDefinitionManager.getStaticAttributes(attributesDefined).stream().filter(att -> !getLocalTypeOptional( att.getNameSimple()).isPresent()).forEach(att -> { try { pad(appendable, level + 1).append("att ").append(suppressPackage(att.getName())).append(':').append( suppressPackage(att.getSuperType().getName())).append(att.isSelfReference() ? " SELF" : "") .append('\n'); } catch (IOException ex) { LOGGER.log(Level.SEVERE, ex.getMessage(), ex); } }); }
private void debugTypeHeaderAttribute(Appendable appendable) throws IOException { appendable.append("defAtt ").append(getNameSimple()).append('@').append(Integer.toString(getTypeId())); SType<?> owner = getAttrInternalRef().getOwner(); if (owner != null && owner != getParentScope()) { appendable.append(" for "); appendNameAndId(appendable, owner); } if (isSelfReference()) { appendable.append(" (SELF)"); } }
private void debugTypeHeaderAttribute(Appendable appendable) throws IOException { appendable.append("defAtt ").append(getNameSimple()).append('@').append(Integer.toString(getTypeId())); SType<?> owner = getAttributeDefinitionInfo().getOwner(); if (owner != null && owner != getParentScope()) { appendable.append(" for "); appendNameAndId(appendable, owner); } if (isSelfReference()) { appendable.append(" (SELF)"); } }
private void debugTypeHeader(Appendable appendable) throws IOException { if (isAttribute()) { debugTypeHeaderAttribute(appendable); } else { debugTypeHeaderNormalType(appendable); } if (superType != null && (!isAttribute() || !isSelfReference())) { appendable.append(" extend "); appendNameAndId(appendable, superType); if (this.isList()) { STypeList<?, ?> list = (STypeList<?, ?>) this; if (list.getElementsType() != null) { appendable.append(" of "); appendNameAndId(appendable, list.getElementsType()); } } } }
private void debugTypeHeader(Appendable appendable) throws IOException { if (isAttribute()) { debugTypeHeaderAttribute(appendable); } else { debugTypeHeaderNormalType(appendable); } if (superType != null && (! isAttribute() || !isSelfReference())) { appendable.append(" extend "); appendNameAndId(appendable, superType); if (this.isList()) { STypeList<?, ?> lista = (STypeList<?, ?>) this; if (lista.getElementsType() != null) { appendable.append(" of "); appendNameAndId(appendable, lista.getElementsType()); } } } }