/*
* JavaInspect - Utility to visualize java software
* Copyright (C) 2013-2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
- *
+ *
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 3 of the GNU Lesser General Public License
* or later as published by the Free Software Foundation.
public class JavaFile {
public static final String UTF_8 = "UTF-8";
- private final List<Import> imports = new ArrayList<Import>();
+ public final List<Clazz> classes = new ArrayList<>();
+ final StringBuffer contents = new StringBuffer();
+ private final List<Import> imports = new ArrayList<>();
private final File file;
- public List<Clazz> classes = new ArrayList<Clazz>();
- StringBuffer contents = new StringBuffer();
private String packageName;
public JavaFile(final File file) throws IOException, InvalidSyntaxException {
final Tokenizer tokenizer = new Tokenizer(contents.toString());
// empty space
- tokenizer.addTerminator(" ", DROP);
+ tokenizer.addTerminator(" ", DROP);
tokenizer.addTerminator("\t", DROP);
tokenizer.addTerminator("\n", DROP);