|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.apache.xalan.transformer.StackGuard
Class to guard against recursion getting too deep.
This class is based on an implementation from the Apache XML Project. In future releases the XML parser, XSLT processor, and associated classes will likely be updated to be based on a later version of the Apache implementations. Since Apache does not guarantee backwards compatibility between versions of their software, we cannot guarantee backwards compatibility of any of the classes contained in the weblogic.apache package or sub-packages.
Field Summary | |
static int |
m_recursionLimit
Used for infinite loop check. |
Constructor Summary | |
StackGuard()
Constructor StackGuard |
|
StackGuard(ElemTemplateElement xslTemplate,
org.w3c.dom.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,
org.w3c.dom.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 |
clone,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static int m_recursionLimit
Constructor Detail |
public StackGuard()
public StackGuard(ElemTemplateElement xslTemplate, org.w3c.dom.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 javax.xml.transform.TransformerException
guard
- Current StackGuard object (matching current template)public void push(ElemTemplateElement xslTemplate, org.w3c.dom.Node sourceXML) throws javax.xml.transform.TransformerException
xslTemplate
- Current template being processedsourceXML
- Current Source Nodepublic void pop()
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs61 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |