|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xalan.templates.RedundentExprEliminator.MultistepExprHolder
class RedundentExprEliminator.MultistepExprHolder
Since we want to sort multistep expressions by length, use a linked list with elements of type MultistepExprHolder.
| Field Summary | |
|---|---|
(package private) ExpressionOwner |
m_exprOwner
|
(package private) RedundentExprEliminator.MultistepExprHolder |
m_next
|
(package private) int |
m_stepCount
|
| Constructor Summary | |
|---|---|
RedundentExprEliminator.MultistepExprHolder(ExpressionOwner exprOwner,
int stepCount,
RedundentExprEliminator.MultistepExprHolder next)
Create a MultistepExprHolder. |
|
| Method Summary | |
|---|---|
(package private) RedundentExprEliminator.MultistepExprHolder |
addInSortedOrder(ExpressionOwner exprOwner,
int stepCount)
Add a new MultistepExprHolder in sorted order in the list. |
java.lang.Object |
clone()
Clone this object. |
protected void |
diagnose()
Print diagnostics out for the multistep list. |
(package private) int |
getLength()
Get the number of linked list items. |
(package private) RedundentExprEliminator.MultistepExprHolder |
unlink(RedundentExprEliminator.MultistepExprHolder itemToRemove)
Remove the given element from the list. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
ExpressionOwner m_exprOwner
final int m_stepCount
RedundentExprEliminator.MultistepExprHolder m_next
| Constructor Detail |
|---|
RedundentExprEliminator.MultistepExprHolder(ExpressionOwner exprOwner,
int stepCount,
RedundentExprEliminator.MultistepExprHolder next)
exprOwner - the owner of the expression we are holding.
It must hold a LocationPathIterator.stepCount - The number of steps in the location path.| Method Detail |
|---|
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedException
RedundentExprEliminator.MultistepExprHolder addInSortedOrder(ExpressionOwner exprOwner,
int stepCount)
exprOwner - the owner of the expression we are holding.
It must hold a LocationPathIterator.stepCount - The number of steps in the location path.
RedundentExprEliminator.MultistepExprHolder unlink(RedundentExprEliminator.MultistepExprHolder itemToRemove)
itemToRemove - The item to remove from the list.
int getLength()
protected void diagnose()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||