*
* 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
*
* 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
import eu.svjatoslav.commons.string.tokenizer.InvalidSyntaxException;
import eu.svjatoslav.commons.string.tokenizer.Tokenizer;
import eu.svjatoslav.commons.string.tokenizer.TokenizerMatch;
import eu.svjatoslav.commons.string.tokenizer.InvalidSyntaxException;
import eu.svjatoslav.commons.string.tokenizer.Tokenizer;
import eu.svjatoslav.commons.string.tokenizer.TokenizerMatch;
- private final String packageName;
- private final String className;
- private final boolean isInterface;
+ private final String packageName;
+ private final String className;
+ private final boolean isInterface;
- public ClassReference superClass;
- public List<ClassReference> implementedInterfaces = new ArrayList<ClassReference>();
+ public ClassReference superClass;
+ public List<ClassReference> implementedInterfaces = new ArrayList<ClassReference>();
- public Clazz(final String packageName, final String className,
- final Tokenizer tokenizer, final boolean isInterface)
- throws InvalidSyntaxException {
+ public Clazz(final String packageName, final String className,
+ final Tokenizer tokenizer, final boolean isInterface)
+ throws InvalidSyntaxException {
- this.packageName = packageName;
- this.className = className;
- this.isInterface = isInterface;
+ this.packageName = packageName;
+ this.className = className;
+ this.isInterface = isInterface;
- if ("implements".equals(match.token)) {
- while (true) {
- implementedInterfaces.add(new ClassReference(tokenizer));
+ if ("implements".equals(match.token)) {
+ while (true) {
+ implementedInterfaces.add(new ClassReference(tokenizer));
- if (implementedInterfaces.size() > 0) {
- result.append(" implements: ");
- for (final ClassReference classReference : implementedInterfaces)
- result.appendEnumeration(classReference.toString());
- result.append("\n");
- }
+ if (implementedInterfaces.size() > 0) {
+ result.append(" implements: ");
+ for (final ClassReference classReference : implementedInterfaces)
+ result.appendEnumeration(classReference.toString());
+ result.append("\n");
+ }