public void print(String prefix, boolean includeDerived) { System.out.println(prefix + "[" + this.getId() + "]" + this._toString(includeDerived)); ElementReference source = this.getSource(); if (source != null) { System.out.println(prefix + " source:" + source.toString(includeDerived)); } ElementReference type = this.getType(); if (type != null) { System.out.println(prefix + " type:"); type.print(prefix + " ", includeDerived); } }
public void print(String prefix, boolean includeDerived) { super.print(prefix, includeDerived); if (includeDerived) { Collection<AssignedSource> assignmentBefore = this.getAssignmentBefore(); if (assignmentBefore != null && assignmentBefore.size() > 0) { System.out.println(prefix + " /assignmentBefore:"); for (Object _object : assignmentBefore.toArray()) { AssignedSource _assignmentBefore = (AssignedSource) _object; System.out.println(prefix + " " + _assignmentBefore.toString(includeDerived)); } } } if (includeDerived) { Collection<AssignedSource> assignmentAfter = this.getAssignmentAfter(); if (assignmentAfter != null && assignmentAfter.size() > 0) { System.out.println(prefix + " /assignmentAfter:"); for (Object _object : assignmentAfter.toArray()) { AssignedSource _assignmentAfter = (AssignedSource) _object; System.out.println(prefix + " " + _assignmentAfter.toString(includeDerived)); } } } Expression index = this.getIndex(); if (index != null) { System.out.println(prefix + " index:"); index.print(prefix + " ", includeDerived); } if (includeDerived) { ElementReference referent = this.getReferent(); if (referent != null) { System.out.println(prefix + " /referent:" + referent.toString(includeDerived)); } } if (includeDerived) { ElementReference type = this.getType(); if (type != null) { System.out.println(prefix + " /type:" + type.toString(includeDerived)); } } }