2 * JavaInspect - Utility to visualize java software
3 * Copyright (C) 2013-2015, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of version 3 of the GNU Lesser General Public License
7 * or later as published by the Free Software Foundation.
10 package eu.svjatoslav.inspector.java.methods;
12 import eu.svjatoslav.commons.string.tokenizer.InvalidSyntaxException;
13 import eu.svjatoslav.commons.string.tokenizer.Tokenizer;
14 import eu.svjatoslav.commons.string.tokenizer.TokenizerMatch;
16 public class Annotation {
20 public Annotation(final Tokenizer tokenizer) throws InvalidSyntaxException {
22 name = tokenizer.getNextToken().token;
24 if (!tokenizer.probeNextToken("("))
30 final TokenizerMatch token = tokenizer.getNextToken();
35 if ("(".equals(token.token))
37 if (")".equals(token.token))