|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xalan.templates.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 | |
(package private) |
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. |
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 Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
- if the object's class does not
support the Cloneable
interface. Subclasses
that override the clone
method can also
throw this exception to indicate that an instance cannot
be cloned.Cloneable
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 |