curcuru 2003/02/13 08:48:58
Modified: java/xpath_rwapi/src/org/apache/xpath/rwapi/impl Tag: xslt20
KindTestImpl.java StepExprImpl.java
Log:
Update toString() to include useful instance data
Revision Changes Path
No revision
No revision
1.1.2.5 +11 -0
xml-xalan/java/xpath_rwapi/src/org/apache/xpath/rwapi/impl/Attic/KindTestImpl.java
Index: KindTestImpl.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/xpath_rwapi/src/org/apache/xpath/rwapi/impl/Attic/KindTestImpl.java,v
retrieving revision 1.1.2.4
retrieving revision 1.1.2.5
diff -u -r1.1.2.4 -r1.1.2.5
--- KindTestImpl.java 12 Feb 2003 16:14:54 -0000 1.1.2.4
+++ KindTestImpl.java 13 Feb 2003 16:48:58 -0000 1.1.2.5
@@ -228,4 +228,15 @@
{
m_kindTest = kindTest;
}
+
+ /**
+ * Override to print out useful instance data.
+ * @see org.apache.xpath.rwapi.impl.parser.SimpleNode#toString()
+ */
+ public String toString()
+ {
+ return XPathTreeConstants.jjtNodeName[id] + " "
+ + getClass() + " "
+ + getString(false);
+ }
}
1.1.2.6 +10 -1
xml-xalan/java/xpath_rwapi/src/org/apache/xpath/rwapi/impl/Attic/StepExprImpl.java
Index: StepExprImpl.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/xpath_rwapi/src/org/apache/xpath/rwapi/impl/Attic/StepExprImpl.java,v
retrieving revision 1.1.2.5
retrieving revision 1.1.2.6
diff -u -r1.1.2.5 -r1.1.2.6
--- StepExprImpl.java 12 Feb 2003 16:14:54 -0000 1.1.2.5
+++ StepExprImpl.java 13 Feb 2003 16:48:58 -0000 1.1.2.6
@@ -440,5 +440,14 @@
}
}
-
+ /**
+ * Override to print out useful instance data.
+ * @see org.apache.xpath.rwapi.impl.parser.SimpleNode#toString()
+ */
+ public String toString()
+ {
+ return XPathTreeConstants.jjtNodeName[id] + " "
+ + getClass() + " "
+ + ((m_axisType == -1) ? "InvalidAxis" :
StepExprImpl.FULL_AXIS_NAME[m_axisType]);
+ }
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]