|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensolaris.opengrok.analysis.Definitions
public class Definitions
| Nested Class Summary | |
|---|---|
static class |
Definitions.Tag
Class that represents a single tag. |
| Method Summary | |
|---|---|
static Definitions |
deserialize(byte[] bytes)
Deserialize a binary representation of a Definitions object. |
java.util.Set<java.lang.String> |
getSymbols()
Get all symbols used in definitions. |
java.util.List<Definitions.Tag> |
getTags()
Get a list of all tags. |
boolean |
hasDefinitionAt(java.lang.String symbol,
int lineNumber)
Check whether the specified symbol is defined on the given line. |
boolean |
hasSymbol(java.lang.String symbol)
Check if there is a tag for a symbol. |
int |
numberOfSymbols()
Return the number of distinct symbols. |
int |
occurrences(java.lang.String symbol)
Return the number of occurrences of definitions with the specified symbol. |
byte[] |
serialize()
Create a binary representation of this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public java.util.Set<java.lang.String> getSymbols()
public boolean hasSymbol(java.lang.String symbol)
symbol - the symbol to check
true iff there is a tag for symbol
public boolean hasDefinitionAt(java.lang.String symbol,
int lineNumber)
symbol - the symbol to look forlineNumber - the line to check
true iff symbol is defined on the specified linepublic int occurrences(java.lang.String symbol)
symbol - the symbol to count the occurrences of
public int numberOfSymbols()
public java.util.List<Definitions.Tag> getTags()
public byte[] serialize()
throws java.io.IOException
java.io.IOException - if an error happens when writing to the array
public static Definitions deserialize(byte[] bytes)
throws java.io.IOException,
java.lang.ClassNotFoundException
Definitions object.
bytes - a byte array containing the Definitions object
Definitions object
java.io.IOException - if an I/O error happens when reading the array
java.lang.ClassNotFoundException - if the class definition for an object
stored in the byte array cannot be found
java.lang.ClassCastException - if the array contains an object of another
type than Definitions
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||