Definitions.java revision 349
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* See LICENSE.txt included in this distribution for the specific
* language governing permissions and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at LICENSE.txt.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
public class Definitions {
/** Map from symbol to the line numbers on which the symbol is defined. */
/** List of all the tags. */
Definitions() {
}
/**
* Get all symbols used in definitions.
* @return a set containing all the symbols
*/
}
/**
* Check if there is a tag for a symbol.
* @param symbol the symbol to check
* @return {@code true} iff there is a tag for {@code symbol}
*/
}
/**
* Check whether the specified symbol is defined on the given line.
* @param symbol the symbol to look for
* @param lineNumber the line to check
* @return {@code true} iff {@code symbol} is defined on the specified line
*/
}
/**
* Return the number of occurrences of definitions with the specified
* symbol.
* @param symbol the symbol to count the occurrences of
* @return the number of times the specified symbol is defined
*/
}
/**
* Return the number of distinct symbols.
* @return number of distinct symbols
*/
public int numberOfSymbols() {
}
/**
* Get a list of all tags.
* @return all tags
*/
return tags;
}
/**
* Class that represents a single tag.
*/
public static class Tag {
/** Line number of the tag. */
public final int line;
/** The symbol used in the definition. */
/** The type of the tag. */
/** The full line on which the definition occurs. */
}
}
}
}
}