Package org.apache.batik.dom.util
Class DocumentDescriptor
java.lang.Object
org.apache.batik.dom.util.DocumentDescriptor
This class contains informations about a document.
- Version:
- $Id: DocumentDescriptor.java 1733416 2016-03-03 07:07:13Z gadams $
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
The number of entriesprotected static final int
The table initial capacityprotected DocumentDescriptor.Entry[]
The underlying array -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getLocationColumn
(Element elt) Returns the location column in the source file of the end element.int
getLocationLine
(Element elt) Returns the location line in the source file of the end element.int
Returns the number of elements in the document.protected void
rehash()
Rehash the tableprotected void
void
setLocation
(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
-