|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xalan.transformer.StackGuard
Class to guard against recursion getting too deep.
Field Summary | |
static int |
m_recursionLimit
Used for infinite loop check. |
(package private) TransformerImpl |
m_transformer
|
Constructor Summary | |
StackGuard(TransformerImpl transformerImpl)
Constructor StackGuard |
Method Summary | |
void |
checkForInfinateLoop()
Check if we are in an infinite loop |
int |
countLikeTemplates(ElemTemplate templ,
int pos)
Overide equal method for StackGuard objects |
private ElemTemplate |
getNextMatchOrNamedTemplate(int pos)
Get the next named or match template down from and including the given position. |
int |
getRecursionLimit()
Get the recursion limit. |
void |
setRecursionLimit(int limit)
Set the recursion limit. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static int m_recursionLimit
TransformerImpl m_transformer
Constructor Detail |
public StackGuard(TransformerImpl transformerImpl)
Method Detail |
public int getRecursionLimit()
public void setRecursionLimit(int limit)
limit
- The recursion limit.public int countLikeTemplates(ElemTemplate templ, int pos)
private ElemTemplate getNextMatchOrNamedTemplate(int pos)
pos
- the current index position in the stack.
public void checkForInfinateLoop() throws javax.xml.transform.TransformerException
javax.xml.transform.TransformerException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |