Class DocumentDescriptor
java.lang.Object
org.apache.batik.dom.util.DocumentDescriptor
This class contains informations about a document.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intThe number of entriesprotected static final intThe table initial capacityprotected DocumentDescriptor.Entry[]The underlying array -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetLocationColumn(Element elt) Returns the location column in the source file of the end element.intgetLocationLine(Element elt) Returns the location line in the source file of the end element.intReturns the number of elements in the document.protected voidrehash()Rehash the tableprotected voidvoidsetLocation(Element elt, int line, int col) Sets the location in the source file of the end element.
-
Field Details
-
INITIAL_CAPACITY
protected static final int INITIAL_CAPACITYThe table initial capacity- See Also:
-
table
The underlying array -
count
protected int countThe number of entries
-
-
Constructor Details
-
DocumentDescriptor
public DocumentDescriptor()Creates a new table.
-
-
Method Details
-
getNumberOfElements
public int getNumberOfElements()Returns the number of elements in the document. -
getLocationLine
Returns the location line in the source file of the end element.- Returns:
- zero if the information is unknown.
-
getLocationColumn
Returns the location column in the source file of the end element.- Returns:
- zero if the information is unknown.
-
setLocation
Sets the location in the source file of the end element. -
rehash
protected void rehash()Rehash the table -
removeEntry
-