Lines Matching refs:symbol
54 /** Map from symbol to the line numbers on which the symbol is defined. */
74 * Check if there is a tag for a symbol.
75 * @param symbol the symbol to check
76 * @return {@code true} iff there is a tag for {@code symbol}
78 public boolean hasSymbol(String symbol) {
79 return symbols.containsKey(symbol);
83 * Check whether the specified symbol is defined on the given line.
84 * @param symbol the symbol to look for
87 * @return {@code true} iff {@code symbol} is defined on the specified line
89 public boolean hasDefinitionAt(String symbol, int lineNumber, String[] strs) {
90 Set<Integer> lines = symbols.get(symbol);
99 for (Tag tag : line_map.sym_tags.get(symbol)) {
114 * symbol.
115 * @param symbol the symbol to count the occurrences of
116 * @return the number of times the specified symbol is defined
118 public int occurrences(String symbol) {
119 Set<Integer> lines = symbols.get(symbol);
147 /** The symbol used in the definition. */
148 public final String symbol;
154 protected Tag(int line, String symbol, String type, String text) {
156 this.symbol = symbol;
162 public void addTag(int line, String symbol, String type, String text) {
163 Tag new_tag = new Tag(line, symbol, type, text);
165 Set<Integer> lines = symbols.get(symbol);
168 symbols.put(symbol, lines);
181 Set<Tag> tags = line_map.sym_tags.get(symbol);
184 line_map.sym_tags.put(symbol, tags);