int treeSize() { int size = memSize(); if (this.optionalPackageDeclaration != null) { size += getPackage().treeSize(); } size += this.imports.listSize(); size += this.types.listSize(); // include disconnected comments if (this.optionalCommentList != null) { for (int i = 0; i < this.optionalCommentList.size(); i++) { Comment comment = (Comment) this.optionalCommentList.get(i); if (comment != null && comment.getParent() == null) { size += comment.treeSize(); } } } return size; }
int treeSize() { int size = memSize(); if (this.optionalPackageDeclaration != null) { size += getPackage().treeSize(); } size += this.imports.listSize(); size += this.types.listSize(); // include disconnected comments if (this.optionalCommentList != null) { for (int i = 0; i < this.optionalCommentList.size(); i++) { Comment comment = (Comment) this.optionalCommentList.get(i); if (comment != null && comment.getParent() == null) { size += comment.treeSize(); } } } return size; }
int treeSize() { int size = memSize(); if (this.optionalPackageDeclaration != null) { size += getPackage().treeSize(); } size += this.imports.listSize(); size += this.types.listSize(); // include disconnected comments if (this.optionalCommentList != null) { for (int i = 0; i < this.optionalCommentList.size(); i++) { Comment comment = (Comment) this.optionalCommentList.get(i); if (comment != null && comment.getParent() == null) { size += comment.treeSize(); } } } return size; }
int treeSize() { int size = memSize(); if (this.optionalPackageDeclaration != null) { size += getPackage().treeSize(); } size += this.imports.listSize(); size += this.types.listSize(); // include disconnected comments if (this.optionalCommentList != null) { for (int i = 0; i < this.optionalCommentList.size(); i++) { Comment comment = (Comment) this.optionalCommentList.get(i); if (comment != null && comment.getParent() == null) { size += comment.treeSize(); } } } return size; }
int treeSize() { int size = memSize(); if (this.module != null) { size += getModule().treeSize(); } if (this.optionalPackageDeclaration != null) { size += getPackage().treeSize(); } size += this.imports.listSize(); size += this.types.listSize(); // include disconnected comments if (this.optionalCommentList != null) { for (int i = 0; i < this.optionalCommentList.size(); i++) { Comment comment = (Comment) this.optionalCommentList.get(i); if (comment != null && comment.getParent() == null) { size += comment.treeSize(); } } } return size; }
@Override int treeSize() { int size = memSize(); if (this.module != null) { size += getModule().treeSize(); } if (this.optionalPackageDeclaration != null) { size += getPackage().treeSize(); } size += this.imports.listSize(); size += this.types.listSize(); // include disconnected comments if (this.optionalCommentList != null) { for (int i = 0; i < this.optionalCommentList.size(); i++) { Comment comment = (Comment) this.optionalCommentList.get(i); if (comment != null && comment.getParent() == null) { size += comment.treeSize(); } } } return size; }