|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | 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. |
Constructor Summary | |
StackGuard()
Constructor StackGuard |
|
StackGuard(ElemTemplateElement xslTemplate,
Node sourceXML)
Constructor StackGuard |
Method Summary | |
void |
checkForInfinateLoop(StackGuard guard)
Check if we are in an infinite loop |
boolean |
equals(java.lang.Object obj)
Overide equal method for StackGuard objects |
int |
getRecursionLimit()
Get the recursion limit. |
void |
pop()
Pop out Stack of StackGuard objects |
void |
print(java.io.PrintWriter pw)
Output diagnostics if in an infinite loop |
void |
push(ElemTemplateElement xslTemplate,
Node sourceXML)
Push in a StackGuard object mathing given template |
void |
setRecursionLimit(int limit)
Set the recursion limit. |
Methods inherited from class java.lang.Object |
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static int m_recursionLimit
Constructor Detail |
public StackGuard()
public StackGuard(ElemTemplateElement xslTemplate, Node sourceXML)
xslTemplate
- Current template nodesourceXML
- Source NodeMethod Detail |
public int getRecursionLimit()
public void setRecursionLimit(int limit)
limit
- The recursion limit.public boolean equals(java.lang.Object obj)
obj
- StackGuard object to comparepublic void print(java.io.PrintWriter pw)
pw
- Non-null PrintWriter instance to usepublic void checkForInfinateLoop(StackGuard guard) throws TransformerException
guard
- Current StackGuard object (matching current template)public void push(ElemTemplateElement xslTemplate, Node sourceXML) throws TransformerException
xslTemplate
- Current template being processedsourceXML
- Current Source Nodepublic void pop()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |