public class DocumentDescriptor
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected class |
DocumentDescriptor.Entry
To manage collisions
|
Modifier and Type | Field and Description |
---|---|
protected int |
count
The number of entries
|
protected static int |
INITIAL_CAPACITY
The table initial capacity
|
protected DocumentDescriptor.Entry[] |
table
The underlying array
|
Constructor and Description |
---|
DocumentDescriptor()
Creates a new table.
|
Modifier and Type | Method and Description |
---|---|
int |
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 |
getNumberOfElements()
Returns the number of elements in the document.
|
protected void |
rehash()
Rehash the table
|
protected void |
removeEntry(DocumentDescriptor.Entry e) |
void |
setLocation(Element elt,
int line,
int col)
Sets the location in the source file of the end element.
|
protected static final int INITIAL_CAPACITY
protected DocumentDescriptor.Entry[] table
protected int count
public int getNumberOfElements()
public int getLocationLine(Element elt)
public int getLocationColumn(Element elt)
public void setLocation(Element elt, int line, int col)
protected void rehash()
protected void removeEntry(DocumentDescriptor.Entry e)
Copyright © 2022 Apache Software Foundation. All Rights Reserved.