private String suppressPackage(String name) { return suppressPackage(name, false); }
private String suppressPackage(String name) { return suppressPackage(name, false); }
private void appendNameAndId(Appendable appendable, SType<?> type) throws IOException { appendable.append(suppressPackage(type.getName())).append('@').append(Integer.toString(type.getTypeId())); }
private void appendNameAndId(Appendable appendable, SType<?> type) throws IOException { appendable.append(suppressPackage(type.getName())).append('@').append(Integer.toString(type.getTypeId())); }
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 debugAttributes(Appendable appendable) { try { Collection<SInstance> attrs = getAttributes(); if (! attrs.isEmpty()) { appendable.append(" {"); attrs.stream().forEach(attr -> { try { appendable.append(suppressPackage(attr.getAttributeInstanceInfo().getName(), true)).append("=") .append(attr.toStringDisplay()).append("; "); } catch (IOException ex) { LOGGER.log(Level.SEVERE, ex.getMessage(), ex); } }); appendable.append("}"); } } catch (IOException ex) { LOGGER.log(Level.SEVERE, ex.getMessage(), ex); } }
private void debugAttribute(Appendable appendable, SInstance attr) { try { if (!attr.getAttributeInstanceInfo().getRef().isResolved()) { appendable.append('?'); } appendable.append(suppressPackage(attr.getAttributeInstanceInfo().getName(), true)).append("=") .append(attr.toStringDisplay()).append("; "); } catch (IOException ex) { LOGGER.log(Level.SEVERE, ex.getMessage(), ex); } }